@standardagents/spec 0.45.3 → 0.45.5
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/dist/index.d.ts +27 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2151,7 +2151,11 @@ interface ThreadMessageChunkEvent {
|
|
|
2151
2151
|
type: 'message_chunk';
|
|
2152
2152
|
/** The assistant message these fragments belong to. */
|
|
2153
2153
|
message_id: string;
|
|
2154
|
-
/**
|
|
2154
|
+
/**
|
|
2155
|
+
* Depth of the message identified by `message_id`: 0 = top-level thread,
|
|
2156
|
+
* 1+ = nested (sub-prompt). A connection receives the frame only when its
|
|
2157
|
+
* `depth` is at least this value.
|
|
2158
|
+
*/
|
|
2155
2159
|
depth: number;
|
|
2156
2160
|
/** The next fragment of visible content. */
|
|
2157
2161
|
chunk: string;
|
|
@@ -2174,7 +2178,11 @@ interface ThreadReasoningChunkEvent {
|
|
|
2174
2178
|
type: 'reasoning_chunk';
|
|
2175
2179
|
/** The assistant message this reasoning accompanies. */
|
|
2176
2180
|
message_id: string;
|
|
2177
|
-
/**
|
|
2181
|
+
/**
|
|
2182
|
+
* Depth of the message identified by `message_id`: 0 = top-level thread,
|
|
2183
|
+
* 1+ = nested (sub-prompt). An opted-in connection receives the frame only
|
|
2184
|
+
* when its `depth` is at least this value.
|
|
2185
|
+
*/
|
|
2178
2186
|
depth: number;
|
|
2179
2187
|
/** The next fragment of internal reasoning. */
|
|
2180
2188
|
chunk: string;
|
|
@@ -2602,7 +2610,8 @@ interface ExecutionState {
|
|
|
2602
2610
|
* Abort signal for cancellation.
|
|
2603
2611
|
*
|
|
2604
2612
|
* Can be used to abort fetch requests or other async operations
|
|
2605
|
-
* when the execution is cancelled.
|
|
2613
|
+
* when the execution is cancelled. The signal is also aborted when the
|
|
2614
|
+
* thread is deleted while the execution is in flight.
|
|
2606
2615
|
*/
|
|
2607
2616
|
readonly abortSignal: AbortSignal;
|
|
2608
2617
|
/**
|
|
@@ -3094,7 +3103,8 @@ interface ThreadState {
|
|
|
3094
3103
|
* for real-time updates, progress notifications, or custom data.
|
|
3095
3104
|
*
|
|
3096
3105
|
* @param event - Event name
|
|
3097
|
-
* @param data - Event data (must be JSON-serializable)
|
|
3106
|
+
* @param data - Event data (must be JSON-serializable). An `undefined`
|
|
3107
|
+
* value reaches clients as `data: null` on the event frame.
|
|
3098
3108
|
*/
|
|
3099
3109
|
emit(event: string, data: unknown): void;
|
|
3100
3110
|
/**
|
|
@@ -4259,9 +4269,11 @@ interface ReasoningConfig {
|
|
|
4259
4269
|
*/
|
|
4260
4270
|
exclude?: boolean;
|
|
4261
4271
|
/**
|
|
4262
|
-
*
|
|
4263
|
-
* When true,
|
|
4264
|
-
*
|
|
4272
|
+
* Supply the persisted reasoning of earlier assistant messages on later requests.
|
|
4273
|
+
* When true or unset, the runtime sends the stored reasoning text and
|
|
4274
|
+
* provider-specific reasoning data back to the model with each earlier message.
|
|
4275
|
+
* When false, the runtime does not send it. The reasoning stays in the message record.
|
|
4276
|
+
* @default true
|
|
4265
4277
|
*/
|
|
4266
4278
|
include?: boolean;
|
|
4267
4279
|
}
|
|
@@ -4329,7 +4341,7 @@ interface PromptDefinition<N extends string = string, S extends ToolArgs = ToolA
|
|
|
4329
4341
|
* Tool calling strategy for the LLM.
|
|
4330
4342
|
*
|
|
4331
4343
|
* - `auto`: Model decides when to call tools (default)
|
|
4332
|
-
* - `none`:
|
|
4344
|
+
* - `none`: The model must not call tools (definitions may still be sent)
|
|
4333
4345
|
* - `required`: Force the model to call at least one tool
|
|
4334
4346
|
*
|
|
4335
4347
|
* @default 'auto'
|
|
@@ -4526,8 +4538,8 @@ declare function definePrompt<N extends string, S extends ToolArgs = never>(opti
|
|
|
4526
4538
|
*/
|
|
4527
4539
|
interface SubagentRelationship<Agent extends string = StandardAgentSpec.Agents> {
|
|
4528
4540
|
/**
|
|
4529
|
-
* Which agent definition to instantiate.
|
|
4530
|
-
* `exposeAsTool: true
|
|
4541
|
+
* Which agent definition to instantiate. Any agent is eligible;
|
|
4542
|
+
* `exposeAsTool: true` marks an agent as designed for composition.
|
|
4531
4543
|
*/
|
|
4532
4544
|
readonly agent: Agent;
|
|
4533
4545
|
/**
|
|
@@ -4996,6 +5008,11 @@ interface AgentDefinition<N extends string = string, Prompt extends string = Sta
|
|
|
4996
5008
|
* (handoffs, invokeTool, thread resumption) and their threads remain
|
|
4997
5009
|
* visible; UIs use this flag to keep them out of top-level agent lists
|
|
4998
5010
|
* and pickers so one logical product agent doesn't show up N times.
|
|
5011
|
+
*
|
|
5012
|
+
* The agent list route reports the flag on every entry. A request with
|
|
5013
|
+
* `primary=true` returns only primary agents; a request without it
|
|
5014
|
+
* returns non-primary agents too. The filter never changes which agents
|
|
5015
|
+
* a caller may create a thread for.
|
|
4999
5016
|
*/
|
|
5000
5017
|
readonly primary?: boolean;
|
|
5001
5018
|
/**
|