From 7ed73db1da9422aa5106c0839cd841204459d294 Mon Sep 17 00:00:00 2001 From: Sameh Abouelsaad Date: Sun, 21 Dec 2025 19:43:21 +0200 Subject: [PATCH] fix: consolidate explanation fields into question/answer fields in LLM prompts and examples. --- agent/README.md | 2 -- agent/pkg/llm/prompts.go | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/agent/README.md b/agent/README.md index 0e43ce2..de8d89a 100644 --- a/agent/README.md +++ b/agent/README.md @@ -281,7 +281,6 @@ Use this format when required information is missing: ```json { "question": "Which directory would you like to explore?", - "explanation": "I need this information to proceed" } ``` @@ -292,7 +291,6 @@ Use this format for the final response to the user: ```json { "answer": "Here are the files in your directory: file1.txt, file2.go, README.md", - "explanation": "Showing directory contents" } ``` diff --git a/agent/pkg/llm/prompts.go b/agent/pkg/llm/prompts.go index f4be82e..02d772e 100644 --- a/agent/pkg/llm/prompts.go +++ b/agent/pkg/llm/prompts.go @@ -20,15 +20,13 @@ Use this format when you need to execute a tool (action/function): ### Question Format Use this format when you lack required information to proceed: { - "question": "The specific information or data that is missing?", - "explanation": "Why this information is required to complete the user's request." + "question": "The specific information or data that is missing? Include context and reasoning for why this is needed." } ### Final Answer Format Use this format for your complete, final response to the user: { - "answer": "Your complete, formatted response to the user here.", - "explanation": "Relevant context, reasoning, or command results supporting the answer." + "answer": "Your complete response. Include any necessary context, reasoning, or command results directly here." }