Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion astrbot/core/astr_main_agent_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
TOOL_CALL_PROMPT = (
"When using tools: "
"never return an empty response; "
"briefly explain the purpose before calling a tool; "
"give concise progress updates while working and a short final "
"summary with changed files, verification, and any caveats; "
"run relevant checks when practical, and clearly say when a check was not run."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The string literal on line 30 is implicitly concatenated with the string literal on line 31. Because line 30 does not end with a semicolon or space (e.g., ; ), the two instructions will merge into: ...clearly say when a check was not run.follow the tool schema exactly.... Adding a semicolon and space at the end of line 30 ensures the instructions remain distinct and clear for the LLM.

Suggested change
"run relevant checks when practical, and clearly say when a check was not run."
"run relevant checks when practical, and clearly say when a check was not run; "

"follow the tool schema exactly and do not invent parameters; "
"after execution, briefly summarize the result for the user; "
"keep the conversation style consistent."
Expand Down
Loading