mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
2 files changed
+6
-1
No files matched your search
@@ -207,7 +207,7 @@ pub fn create_followup_task_tool() -> ToolSpec {
|
|||||||
|
|
||||||
ToolSpec::Function(ResponsesApiTool {
|
ToolSpec::Function(ResponsesApiTool {
|
||||||
name: "followup_task".to_string(),
|
name: "followup_task".to_string(),
|
||||||
description: "Send a follow-up task to an existing non-root target agent and trigger a turn in that target. If the target is currently mid-turn, the message is queued and will be used to start the target's next turn, after the current turn completes."
|
description: "Send a follow-up task to an existing non-root target agent and trigger a turn if it is idle. If the target is already running, deliver the task promptly at message boundaries while sampling, or after the pending tool call completes."
|
||||||
.to_string(),
|
.to_string(),
|
||||||
strict: false,
|
strict: false,
|
||||||
defer_loading: None,
|
defer_loading: None,
|
||||||
|
|||||||
@@ -296,6 +296,7 @@ fn send_message_tool_requires_message_and_has_no_output_schema() {
|
|||||||
fn followup_task_tool_requires_message_and_has_no_output_schema() {
|
fn followup_task_tool_requires_message_and_has_no_output_schema() {
|
||||||
let ToolSpec::Function(ResponsesApiTool {
|
let ToolSpec::Function(ResponsesApiTool {
|
||||||
name,
|
name,
|
||||||
|
description,
|
||||||
parameters,
|
parameters,
|
||||||
output_schema,
|
output_schema,
|
||||||
..
|
..
|
||||||
@@ -304,6 +305,10 @@ fn followup_task_tool_requires_message_and_has_no_output_schema() {
|
|||||||
panic!("followup_task should be a function tool");
|
panic!("followup_task should be a function tool");
|
||||||
};
|
};
|
||||||
assert_eq!(name, "followup_task");
|
assert_eq!(name, "followup_task");
|
||||||
|
assert_eq!(
|
||||||
|
description,
|
||||||
|
"Send a follow-up task to an existing non-root target agent and trigger a turn if it is idle. If the target is already running, deliver the task promptly at message boundaries while sampling, or after the pending tool call completes."
|
||||||
|
);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parameters.schema_type,
|
parameters.schema_type,
|
||||||
Some(JsonSchemaType::Single(JsonSchemaPrimitiveType::Object))
|
Some(JsonSchemaType::Single(JsonSchemaPrimitiveType::Object))
|
||||||
|
|||||||
Reference in new issue
Block a user