mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
@@ -207,7 +207,7 @@ pub fn create_followup_task_tool() -> ToolSpec {
|
||||
|
||||
ToolSpec::Function(ResponsesApiTool {
|
||||
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(),
|
||||
strict: false,
|
||||
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() {
|
||||
let ToolSpec::Function(ResponsesApiTool {
|
||||
name,
|
||||
description,
|
||||
parameters,
|
||||
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");
|
||||
};
|
||||
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!(
|
||||
parameters.schema_type,
|
||||
Some(JsonSchemaType::Single(JsonSchemaPrimitiveType::Object))
|
||||
|
||||
Reference in New Issue
Block a user