test(subagent): sync wait guidance across SDK and Web snapshots

This commit is contained in:
Dudu-0223
2026-11-03 12:26:34 +08:00
parent c3fda8ed51
commit bed550f81e
24 changed files with 39 additions and 39 deletions
@@ -699,7 +699,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -776,7 +776,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -811,7 +811,7 @@
"properties": {
"queries": {
"type": "array",
"description": "1–4 search queries; their results are merged.",
"description": "1–10 search queries; their results are merged.",
"items": {
"type": "string"
}
@@ -760,7 +760,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -311,7 +311,7 @@ interface ToolArgsMap {
/** Required only with action blocked: the concrete condition that persisted across rounds and blocks progress. */
blocked_reason?: string;
} & Record<string, JsonValue>;
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending. */
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop. */
wait_agent: {
/** Wait duration in milliseconds, from 10000 through 3600000. Defaults to 30000. */
timeout_ms?: number;
@@ -760,7 +760,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -795,7 +795,7 @@
"properties": {
"queries": {
"type": "array",
"description": "1–4 search queries; their results are merged.",
"description": "1–10 search queries; their results are merged.",
"items": {
"type": "string"
}
@@ -1709,7 +1709,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -1744,7 +1744,7 @@
"properties": {
"queries": {
"type": "array",
"description": "1–4 search queries; their results are merged.",
"description": "1–10 search queries; their results are merged.",
"items": {
"type": "string"
}
@@ -2657,7 +2657,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -2692,7 +2692,7 @@
"properties": {
"queries": {
"type": "array",
"description": "1–4 search queries; their results are merged.",
"description": "1–10 search queries; their results are merged.",
"items": {
"type": "string"
}
@@ -3605,7 +3605,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -3640,7 +3640,7 @@
"properties": {
"queries": {
"type": "array",
"description": "1–4 search queries; their results are merged.",
"description": "1–10 search queries; their results are merged.",
"items": {
"type": "string"
}
@@ -4553,7 +4553,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -4588,7 +4588,7 @@
"properties": {
"queries": {
"type": "array",
"description": "1–4 search queries; their results are merged.",
"description": "1–10 search queries; their results are merged.",
"items": {
"type": "string"
}
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -511,7 +511,7 @@
"properties": {
"queries": {
"type": "array",
"description": "1–4 search queries; their results are merged.",
"description": "1–10 search queries; their results are merged.",
"items": {
"type": "string"
}
@@ -1125,7 +1125,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -1160,7 +1160,7 @@
"properties": {
"queries": {
"type": "array",
"description": "1–4 search queries; their results are merged.",
"description": "1–10 search queries; their results are merged.",
"items": {
"type": "string"
}
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -526,7 +526,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -505,7 +505,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -251,7 +251,7 @@ interface ToolArgsMap {
/** Required only with action blocked: the concrete condition that persisted across rounds and blocks progress. */
blocked_reason?: string;
} & Record<string, JsonValue>;
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending. */
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop. */
wait_agent: {
/** Wait duration in milliseconds, from 10000 through 3600000. Defaults to 30000. */
timeout_ms?: number;
@@ -476,7 +476,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -789,7 +789,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -1783,7 +1783,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -789,7 +789,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -299,7 +299,7 @@ interface ToolArgsMap {
/** Required only with action blocked: the concrete condition that persisted across rounds and blocks progress. */
blocked_reason?: string;
} & Record<string, JsonValue>;
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending. */
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop. */
wait_agent: {
/** Wait duration in milliseconds, from 10000 through 3600000. Defaults to 30000. */
timeout_ms?: number;
@@ -307,7 +307,7 @@ interface ToolArgsMap {
/** Required only with action blocked: the concrete condition that persisted across rounds and blocks progress. */
blocked_reason?: string;
} & Record<string, JsonValue>;
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending. */
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop. */
wait_agent: {
/** Wait duration in milliseconds, from 10000 through 3600000. Defaults to 30000. */
timeout_ms?: number;
@@ -789,7 +789,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -1783,7 +1783,7 @@
},
{
"name": "wait_agent",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending.",
"description": "Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop.",
"parameters": {
"type": "object",
"properties": {
@@ -290,7 +290,7 @@ interface ToolArgsMap {
/** Required only with action blocked: the concrete condition that persisted across rounds and blocks progress. */
blocked_reason?: string;
} & Record<string, JsonValue>;
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately when that input is already pending. */
/** Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if input is pending. When called from code, wait once, then finish execution so messages can be delivered. Do not loop. */
wait_agent: {
/** Wait duration in milliseconds, from 10000 through 3600000. Defaults to 30000. */
timeout_ms?: number;