Clarify close_agent tool description (#14269)

- clarify the `close_agent` tool description so it nudges models to
close agents they no longer need
- keep the change scoped to the tool spec text only

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-03-10 16:25:08 -07:00
committed by Michael Bolin
parent b1dddcb76e
commit ce1d9abf11

View File

@@ -1205,8 +1205,7 @@ fn create_close_agent_tool() -> ToolSpec {
ToolSpec::Function(ResponsesApiTool {
name: "close_agent".to_string(),
description: "Close an agent when it is no longer needed and return its last known status."
.to_string(),
description: "Close an agent when it is no longer needed and return its last known status. Don't keep agents open for too long if they are not needed anymore.".to_string(),
strict: false,
parameters: JsonSchema::Object {
properties,