mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
clean up instructions (#22543)
rm behavioral steering in tool docs for code mode.
This commit is contained in:
@@ -2265,9 +2265,8 @@ fn code_mode_only_exec_description_includes_full_nested_tool_details() {
|
||||
|
||||
assert!(!description.contains("Enabled nested tools:"));
|
||||
assert!(!description.contains("Nested tool reference:"));
|
||||
assert!(description.starts_with(
|
||||
"Use `exec/wait` tool to run all other tools, do not attempt to use any other tools directly"
|
||||
));
|
||||
assert!(description.starts_with("Run JavaScript code to orchestrate/compose tool calls"));
|
||||
assert!(!description.contains("do not attempt to use any other tools directly"));
|
||||
assert!(description.contains("### `update_plan`"));
|
||||
assert!(description.contains("### `view_image`"));
|
||||
}
|
||||
|
||||
@@ -1441,6 +1441,11 @@ async fn code_mode_only_can_expose_multi_agent_v2_as_normal_tools() {
|
||||
};
|
||||
assert!(!exec.description.contains("spawn_agent"));
|
||||
assert!(!exec.description.contains("wait_agent"));
|
||||
assert!(
|
||||
!exec
|
||||
.description
|
||||
.contains("do not attempt to use any other tools directly")
|
||||
);
|
||||
|
||||
let spawn_agent = find_tool(&model_visible_specs, "spawn_agent");
|
||||
let ToolSpec::Function(spawn_agent) = spawn_agent else {
|
||||
|
||||
Reference in New Issue
Block a user