refactor(tools): streamline built-in tool descriptions (#6201)
* refactor(tools): streamline built-in tool descriptions * refactor(tools): retain actionable schema details
This commit is contained in:
1 parent
30e43aec82
commit
6b90e400e4
13 files changed
+68
-136
No files matched your search
@@ -204,10 +204,10 @@ class TestMessageToolSchema:
|
||||
def test_schema_discourages_current_chat_replies(self) -> None:
|
||||
tool = MessageTool()
|
||||
|
||||
assert "For a normal reply, including a scheduled reminder or report, answer naturally instead" in tool.description
|
||||
assert "nanobot delivers the final reply to the current chat" in tool.description
|
||||
assert "generate_image creates images in the current chat" in tool.description
|
||||
assert "For normal replies, including scheduled reminders and reports, answer directly" in tool.description
|
||||
assert "the final reply is delivered to the current chat automatically" in tool.description
|
||||
assert "deliver generated images via media" in tool.description
|
||||
assert (
|
||||
"Do not use this for a normal reply in the current chat"
|
||||
in tool.parameters["properties"]["content"]["description"]
|
||||
"Use artifact paths returned by generate_image"
|
||||
in tool.parameters["properties"]["media"]["description"]
|
||||
)
|
||||
@@ -16,7 +16,7 @@ def test_coding_tool_descriptions_steer_editing_priority() -> None:
|
||||
|
||||
assert "default tool for code edits" in apply_patch
|
||||
assert "multi-file" in apply_patch
|
||||
assert "dry_run=true" in apply_patch
|
||||
assert "without writing files" in ApplyPatchTool().parameters["properties"]["dry_run"]["description"]
|
||||
assert "edit_file only for small exact replacements" in apply_patch
|
||||
|
||||
assert "small, exact replacement" in edit_file
|
||||
|
||||
Reference in new issue
Block a user