@standardagents/spec 0.45.2 → 0.45.4
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 +33 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -105,11 +105,11 @@ declare global {
|
|
|
105
105
|
*/
|
|
106
106
|
type Tools = keyof ToolRegistry extends never ? string : keyof ToolRegistry;
|
|
107
107
|
/**
|
|
108
|
-
* Provider-executed tool reference stored by
|
|
108
|
+
* Provider-executed tool reference stored by Standard Agents Builder prompts.
|
|
109
109
|
*/
|
|
110
110
|
type ProviderCallable = `provider:${string}`;
|
|
111
111
|
/**
|
|
112
|
-
* MCP tool reference stored by
|
|
112
|
+
* MCP tool reference stored by Standard Agents Builder prompts.
|
|
113
113
|
*/
|
|
114
114
|
type McpCallable = `mcp:${string}`;
|
|
115
115
|
/**
|
|
@@ -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
|
/**
|
|
@@ -2910,7 +2919,7 @@ interface ThreadState {
|
|
|
2910
2919
|
* 2. Agent definition
|
|
2911
2920
|
* 3. Prompt definition
|
|
2912
2921
|
* 4. User account
|
|
2913
|
-
* 5.
|
|
2922
|
+
* 5. Standard Agents Builder instance
|
|
2914
2923
|
*
|
|
2915
2924
|
* @throws If the variable is not defined in any source
|
|
2916
2925
|
*/
|
|
@@ -2934,8 +2943,8 @@ interface ThreadState {
|
|
|
2934
2943
|
* Resolve the display/redaction type for an environment value.
|
|
2935
2944
|
*
|
|
2936
2945
|
* Resolution follows the same order as `env()`:
|
|
2937
|
-
* thread, agent definition, prompt definition, user account,
|
|
2938
|
-
* User-account and
|
|
2946
|
+
* thread, agent definition, prompt definition, user account, Standard Agents Builder instance.
|
|
2947
|
+
* User-account and Standard Agents Builder-instance env stores may persist per-key
|
|
2939
2948
|
* `text` / `secret` metadata; agent/prompt defaults remain `secret` unless
|
|
2940
2949
|
* overridden by thread state.
|
|
2941
2950
|
*
|
|
@@ -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'
|
|
@@ -4377,7 +4389,7 @@ interface PromptDefinition<N extends string = string, S extends ToolArgs = ToolA
|
|
|
4377
4389
|
tools?: (StandardAgentSpec.Callables | SubpromptConfig | PromptToolConfig)[];
|
|
4378
4390
|
/**
|
|
4379
4391
|
* Environment values provided by this prompt.
|
|
4380
|
-
* Prompt values override user-account and
|
|
4392
|
+
* Prompt values override user-account and Standard Agents Builder-instance defaults.
|
|
4381
4393
|
* Agent and thread values override prompt values.
|
|
4382
4394
|
*/
|
|
4383
4395
|
env?: Record<string, string>;
|
|
@@ -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
|
/**
|