mirror of
https://github.com/openai/codex.git
synced 2026-05-03 21:01:55 +03:00
feat: add interrupt capabilities to send_input (#9276)
This commit is contained in:
@@ -478,6 +478,15 @@ fn create_send_input_tool() -> ToolSpec {
|
||||
description: Some("Message to send to the agent.".to_string()),
|
||||
},
|
||||
);
|
||||
properties.insert(
|
||||
"interrupt".to_string(),
|
||||
JsonSchema::Boolean {
|
||||
description: Some(
|
||||
"When true, interrupt the agent's current task before sending the message. When false (default), the message will be processed when the agent is done on its current task."
|
||||
.to_string(),
|
||||
),
|
||||
},
|
||||
);
|
||||
|
||||
ToolSpec::Function(ResponsesApiTool {
|
||||
name: "send_input".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user