Refactor local knowledge context API endpoint and update agent reason string

This commit is contained in:
2026-06-16 23:31:59 +02:00
parent 14923a26e6
commit 77ba8aa771
2 changed files with 3 additions and 5 deletions

View File

@@ -154,7 +154,7 @@ def _fast_path(
if library_slug and mentions_knowledge:
knowledge = _manifest_by_slug(manifests, "knowledge-answer")
if knowledge:
return _workflow_result(knowledge, confidence=0.95, reason="The request explicitly refers to the selected knowledge database.")
return _workflow_result(knowledge, confidence=0.95, reason="The request explicitly refers to local knowledge.")
if _GREETING_RE.match(text):
direct = _manifest_by_slug(manifests, "input-output")