feat: adjust chat tool response (#1512)

This commit is contained in:
Wendy Tang
2025-03-04 14:57:17 -08:00
committed by GitHub
parent fb05929ca5
commit 38d5357c98
+8 -7
View File
@@ -319,13 +319,14 @@ impl Agent for TruncateAgent {
message_tool_response = message_tool_response.with_tool_response( message_tool_response = message_tool_response.with_tool_response(
request.id.clone(), request.id.clone(),
Ok(vec![Content::text( Ok(vec![Content::text(
"The following tool call was skipped in Goose chat mode. \ "Let the user know the tool call was skipped in Goose chat mode. \
In chat mode, you cannot run tool calls, instead, you can \ DO NOT apologize for skipping the tool call. DO NOT say sorry. \
only provide a detailed plan to the user. Provide an \ Provide an explanation of what the tool call would do, structured as a \
explanation of the proposed tool call as if it were a plan. \ plan for the user. Again, DO NOT apologize. \
Only if the user asks, provide a short explanation to the \ **Example Plan:**\n \
user that they could consider running the tool above on \ 1. **Identify Task Scope** - Determine the purpose and expected outcome.\n \
their own or with a different goose mode." 2. **Outline Steps** - Break down the steps.\n \
If needed, adjust the explanation based on user preferences or questions."
)]), )]),
); );
} }