From 189aa92182d8a0d33061d6b22c206d1235beb90f Mon Sep 17 00:00:00 2001 From: ducoterra Date: Wed, 2 Sep 2026 13:32:58 -0400 Subject: [PATCH] fix tool descriptions to prevent incorrect tool calls --- app/rag/agent.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/rag/agent.py b/app/rag/agent.py index be2e397..e702a63 100644 --- a/app/rag/agent.py +++ b/app/rag/agent.py @@ -136,16 +136,14 @@ AGENT_TOOLS: list[dict[str, Any]] = [ "type": "string", "description": ( "The document's source, as shown after 'source: ' in the " - "list_documents output (e.g. 'Homelab' from " - "'source: Homelab | path: homelab/aws-route53.md')." + "list_documents output." ), }, "path": { "type": "string", "description": ( "The document's path, as shown after 'path: ' in the " - "list_documents output (e.g. 'homelab/aws-route53.md' from " - "'source: Homelab | path: homelab/aws-route53.md')." + "list_documents output." ), }, }, @@ -179,16 +177,14 @@ AGENT_TOOLS: list[dict[str, Any]] = [ "type": "string", "description": ( "The document's source, as shown after 'source: ' in the " - "list_documents output (e.g. 'Homelab' from " - "'source: Homelab | path: homelab/aws-route53.md')." + "list_documents output." ), }, "path": { "type": "string", "description": ( "The document's path, as shown after 'path: ' in the " - "list_documents output (e.g. 'homelab/aws-route53.md' from " - "'source: Homelab | path: homelab/aws-route53.md')." + "list_documents output." ), }, },