Matching CBv9
This commit is contained in:
jif
2026-06-05 11:10:32 +02:00
committed by GitHub
Unverified
parent 5f4d06ef18
commit 6dc28ba6e0
2 changed files with 6 additions and 1 deletions
@@ -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))