Changeset 0.29.0 (#195)
This commit is contained in:
@@ -847,6 +847,10 @@ func (h *KnowledgeBaseHandler) userCanAccess(kb *models.KnowledgeBase, userID st
|
||||
// BuildKBHint returns a system prompt fragment listing active KBs for a
|
||||
// channel, or empty string if none are active. Called by the completion
|
||||
// handler to nudge the LLM to use kb_search.
|
||||
//
|
||||
// Deprecated: v0.29.0 — replaced by filters.KBInjectFilter in the
|
||||
// pre-completion filter chain. Kept for backward compatibility with
|
||||
// any callers outside the main completion path. Will be removed in v0.30.0.
|
||||
func BuildKBHint(ctx context.Context, stores store.Stores, channelID, userID, personaID string) string {
|
||||
teamIDs, _ := stores.Teams.GetUserTeamIDs(ctx, userID)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user