@asterism-app/builtin-api 0.26.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/tools.ts +4 -3
package/package.json
CHANGED
package/src/tools.ts
CHANGED
|
@@ -113,12 +113,13 @@ export const See = defineTool({
|
|
|
113
113
|
export const Wait = defineTool({
|
|
114
114
|
id: builtin.name("tool.wait"),
|
|
115
115
|
name: "wait",
|
|
116
|
-
description: "Wait until a resource reaches its resting state,
|
|
116
|
+
description: "Wait until a resource reaches its resting state, with an optional timeout.",
|
|
117
117
|
guidelines: [
|
|
118
118
|
"The resource implementation defines its resting state. A resource already at rest returns immediately.",
|
|
119
|
+
"Normally omit timeout and wait for completion or cancellation. Specify it only when the task has an explicit time limit.",
|
|
119
120
|
"Timeout or cancellation ends only the wait; the resource continues its own work. The result reports the observed state.",
|
|
120
121
|
],
|
|
121
122
|
argsSchema: z.strictObject({
|
|
122
|
-
timeout: z.number().positive().max(2147483).describe("
|
|
123
|
-
}).describe("
|
|
123
|
+
timeout: z.number().positive().max(2147483).optional().describe("Optional maximum wait in seconds; omitted means no timeout."),
|
|
124
|
+
}).describe("Wait with an optional time limit."),
|
|
124
125
|
});
|