From 37a3751bbf34bd43b6a9ed0510bd77f06b45871f Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Fri, 18 Jul 2025 16:01:58 +0000 Subject: [PATCH] enhance(message_tool): update ask function description to include task completion instruction and expand usage scenarios --- backend/agent/tools/message_tool.py | 2 +- backend/services/llm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/agent/tools/message_tool.py b/backend/agent/tools/message_tool.py index 1a2f4900..6c216cab 100644 --- a/backend/agent/tools/message_tool.py +++ b/backend/agent/tools/message_tool.py @@ -18,7 +18,7 @@ class MessageTool(Tool): "type": "function", "function": { "name": "ask", - "description": "Ask user a question and wait for response. Use for: 1) Requesting clarification on ambiguous requirements, 2) Seeking confirmation before proceeding with high-impact changes, 3) Gathering additional information needed to complete a task, 4) Offering options and requesting user preference, 5) Validating assumptions when critical to task success. IMPORTANT: Use this tool only when user input is essential to proceed. Always provide clear context and options when applicable. Include relevant attachments when the question relates to specific files or resources.", + "description": "Ask user a question and wait for response. Use for: 1) Requesting clarification on ambiguous requirements, 2) Seeking confirmation before proceeding with high-impact changes, 3) Gathering additional information needed to complete a task, 4) Offering options and requesting user preference, 5) Validating assumptions when critical to task success, 6) Call this tool when you finish your task, before calling the complete tool. IMPORTANT: Use this tool only when user input is essential to proceed. Always provide clear context and options when applicable. Include relevant attachments when the question relates to specific files or resources.", "parameters": { "type": "object", "properties": { diff --git a/backend/services/llm.py b/backend/services/llm.py index 7045294c..794d3de1 100644 --- a/backend/services/llm.py +++ b/backend/services/llm.py @@ -236,7 +236,7 @@ def prepare_params( if is_kimi_k2: params["provider"] = { - "order": ["groq", "together/fp8"] + "order": ["groq", "baseten/fp8", "deepinfra/fp4", "together/fp8"] } if is_anthropic and use_thinking: