@standardagents/builder 0.11.7 → 0.11.9
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/built-in-routes.js +163 -39
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/index.js +18 -18
- package/dist/index.d.ts +8 -3
- package/dist/index.js +300 -70
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +102 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -421,6 +421,11 @@ interface FlowState {
|
|
|
421
421
|
queue: FlowCall[];
|
|
422
422
|
pendingHandoff?: {
|
|
423
423
|
agentId: string;
|
|
424
|
+
args?: Record<string, unknown>;
|
|
425
|
+
toolConfig?: {
|
|
426
|
+
initUserMessageProperty?: string;
|
|
427
|
+
initAttachmentsProperty?: string;
|
|
428
|
+
};
|
|
424
429
|
};
|
|
425
430
|
stream: StreamManager;
|
|
426
431
|
context: Record<string, unknown>;
|
|
@@ -3208,7 +3213,7 @@ declare class FlowStateSdk {
|
|
|
3208
3213
|
* The tool will be executed as part of the normal flow processing.
|
|
3209
3214
|
*
|
|
3210
3215
|
* @param flow - The current FlowState
|
|
3211
|
-
* @param toolName - The name of the tool to call
|
|
3216
|
+
* @param toolName - The name of the tool to call (autocompletes from available tools)
|
|
3212
3217
|
* @param args - The arguments to pass to the tool
|
|
3213
3218
|
*
|
|
3214
3219
|
* @example
|
|
@@ -3216,7 +3221,7 @@ declare class FlowStateSdk {
|
|
|
3216
3221
|
* FlowStateSdk.queueTool(flow, "search_user", { email: "user@example.com" });
|
|
3217
3222
|
* ```
|
|
3218
3223
|
*/
|
|
3219
|
-
static queueTool(flow: FlowState, toolName:
|
|
3224
|
+
static queueTool(flow: FlowState, toolName: StandardAgentSpec.Callables, args?: Record<string, unknown>): void;
|
|
3220
3225
|
/**
|
|
3221
3226
|
* Inject a message into the thread without triggering execution
|
|
3222
3227
|
*
|
|
@@ -3373,7 +3378,7 @@ declare class FlowStateSdk {
|
|
|
3373
3378
|
* They delegate to the static methods above.
|
|
3374
3379
|
*/
|
|
3375
3380
|
interface FlowStateWithSdk extends FlowState {
|
|
3376
|
-
queueTool: (toolName:
|
|
3381
|
+
queueTool: (toolName: StandardAgentSpec.Callables, args?: Record<string, unknown>) => void;
|
|
3377
3382
|
injectMessage: (options: InjectMessageOptions) => Promise<Message>;
|
|
3378
3383
|
getMessages: (limit?: number, offset?: number, order?: "asc" | "desc") => Promise<Message[]>;
|
|
3379
3384
|
reloadHistory: () => Promise<Message[]>;
|