@deepagents/experimental 5.0.0 → 6.1.0
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/README.md +30 -11
- package/dist/index.js +1453 -459
- package/dist/index.js.map +4 -4
- package/dist/zukhruf/agent.d.ts +9 -4
- package/dist/zukhruf/agent.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/agent-tool-context.d.ts +6 -0
- package/dist/zukhruf/collaboration/agent-tool-context.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts +4 -0
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/interrupt-agent.d.ts +234 -0
- package/dist/zukhruf/collaboration/interrupt-agent.d.ts.map +1 -0
- package/dist/zukhruf/{list-agents.d.ts → collaboration/list-agents.d.ts} +1 -1
- package/dist/zukhruf/collaboration/list-agents.d.ts.map +1 -0
- package/dist/zukhruf/{message-tools.d.ts → collaboration/message-tools.d.ts} +84 -88
- package/dist/zukhruf/collaboration/message-tools.d.ts.map +1 -0
- package/dist/zukhruf/{spawn-agent.d.ts → collaboration/spawn-agent.d.ts} +55 -43
- package/dist/zukhruf/collaboration/spawn-agent.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/wait-agent.d.ts +253 -0
- package/dist/zukhruf/collaboration/wait-agent.d.ts.map +1 -0
- package/dist/zukhruf/{agent-control-plane.d.ts → control-plane/agent-control-plane.d.ts} +17 -5
- package/dist/zukhruf/control-plane/agent-control-plane.d.ts.map +1 -0
- package/dist/zukhruf/{agent-declaration-registry.d.ts → control-plane/agent-declaration-registry.d.ts} +1 -1
- package/dist/zukhruf/control-plane/agent-declaration-registry.d.ts.map +1 -0
- package/dist/zukhruf/{agent-directory.d.ts → control-plane/agent-directory.d.ts} +2 -1
- package/dist/zukhruf/control-plane/agent-directory.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/agent-history-forker.d.ts +10 -0
- package/dist/zukhruf/control-plane/agent-history-forker.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/agent-path.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/agent-status-projector.d.ts +50 -0
- package/dist/zukhruf/control-plane/agent-status-projector.d.ts.map +1 -0
- package/dist/zukhruf/{agent-thread.d.ts → control-plane/agent-thread.d.ts} +1 -1
- package/dist/zukhruf/control-plane/agent-thread.d.ts.map +1 -0
- package/dist/zukhruf/{agent-turn-id.d.ts → control-plane/agent-turn-id.d.ts} +2 -1
- package/dist/zukhruf/control-plane/agent-turn-id.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/fork-turns.d.ts +4 -0
- package/dist/zukhruf/control-plane/fork-turns.d.ts.map +1 -0
- package/dist/zukhruf/index.d.ts +6 -6
- package/dist/zukhruf/index.d.ts.map +1 -1
- package/dist/zukhruf/index.js +1453 -459
- package/dist/zukhruf/index.js.map +4 -4
- package/dist/zukhruf/mailbox/coordinator.d.ts +4 -0
- package/dist/zukhruf/mailbox/coordinator.d.ts.map +1 -1
- package/dist/zukhruf/multi-agent-v2-config.d.ts +32 -0
- package/dist/zukhruf/multi-agent-v2-config.d.ts.map +1 -0
- package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts +16 -4
- package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/queue/turn-queue.d.ts +35 -6
- package/dist/zukhruf/queue/turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/render-turn.d.ts +9 -0
- package/dist/zukhruf/render-turn.d.ts.map +1 -0
- package/dist/zukhruf/{agent-runtime.d.ts → runtime/agent-runtime.d.ts} +24 -13
- package/dist/zukhruf/runtime/agent-runtime.d.ts.map +1 -0
- package/dist/zukhruf/runtime/agent-skills.d.ts +9 -0
- package/dist/zukhruf/runtime/agent-skills.d.ts.map +1 -0
- package/dist/zukhruf/{agent-turn-executor.d.ts → runtime/agent-turn-executor.d.ts} +5 -3
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts.map +1 -0
- package/dist/zukhruf/{approval-controller.d.ts → runtime/approval-controller.d.ts} +19 -8
- package/dist/zukhruf/runtime/approval-controller.d.ts.map +1 -0
- package/dist/zukhruf/runtime/approval-job-id.d.ts +3 -0
- package/dist/zukhruf/runtime/approval-job-id.d.ts.map +1 -0
- package/dist/zukhruf/sandbox/define.d.ts +4 -3
- package/dist/zukhruf/sandbox/define.d.ts.map +1 -1
- package/dist/zukhruf/tool.d.ts +18 -6
- package/dist/zukhruf/tool.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/zukhruf/agent-control-plane.d.ts.map +0 -1
- package/dist/zukhruf/agent-declaration-registry.d.ts.map +0 -1
- package/dist/zukhruf/agent-directory.d.ts.map +0 -1
- package/dist/zukhruf/agent-path.d.ts.map +0 -1
- package/dist/zukhruf/agent-runtime.d.ts.map +0 -1
- package/dist/zukhruf/agent-status-projector.d.ts +0 -32
- package/dist/zukhruf/agent-status-projector.d.ts.map +0 -1
- package/dist/zukhruf/agent-thread.d.ts.map +0 -1
- package/dist/zukhruf/agent-tool-context.d.ts +0 -6
- package/dist/zukhruf/agent-tool-context.d.ts.map +0 -1
- package/dist/zukhruf/agent-turn-executor.d.ts.map +0 -1
- package/dist/zukhruf/agent-turn-id.d.ts.map +0 -1
- package/dist/zukhruf/approval-controller.d.ts.map +0 -1
- package/dist/zukhruf/approval-mutex.d.ts +0 -5
- package/dist/zukhruf/approval-mutex.d.ts.map +0 -1
- package/dist/zukhruf/list-agents.d.ts.map +0 -1
- package/dist/zukhruf/message-tools.d.ts.map +0 -1
- package/dist/zukhruf/spawn-agent.d.ts.map +0 -1
- package/dist/zukhruf/sqlite-approval-mutex.d.ts +0 -17
- package/dist/zukhruf/sqlite-approval-mutex.d.ts.map +0 -1
- /package/dist/zukhruf/{agent-path.d.ts → control-plane/agent-path.d.ts} +0 -0
package/dist/zukhruf/agent.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { generateText } from 'ai';
|
|
2
2
|
import type { AgentModel, AgentSandbox, ContextFragment } from '@deepagents/context';
|
|
3
|
+
import type { ZukhrufToolSet } from './tool.ts';
|
|
3
4
|
/**
|
|
4
5
|
* Sandboxes are per-chat: the factory receives the conversation identity so
|
|
5
6
|
* the backend can be named by `chatId` and re-attached across turns, workers,
|
|
@@ -9,6 +10,10 @@ export interface SandboxContext {
|
|
|
9
10
|
chatId: string;
|
|
10
11
|
userId: string;
|
|
11
12
|
}
|
|
13
|
+
export type ZukhrufSandbox = AgentSandbox & {
|
|
14
|
+
/** Absolute directory containing this conversation's files and skills. Omit to disable discovery. */
|
|
15
|
+
readonly workingDirectory?: string;
|
|
16
|
+
};
|
|
12
17
|
export interface AgentDeclaration {
|
|
13
18
|
/**
|
|
14
19
|
* Stable declaration identity persisted in conversation metadata.
|
|
@@ -17,14 +22,14 @@ export interface AgentDeclaration {
|
|
|
17
22
|
*/
|
|
18
23
|
name: string;
|
|
19
24
|
model: AgentModel;
|
|
20
|
-
sandbox: (context: SandboxContext) => Promise<
|
|
25
|
+
sandbox: (context: SandboxContext) => Promise<ZukhrufSandbox>;
|
|
21
26
|
instructions: ContextFragment[];
|
|
22
|
-
tools?:
|
|
27
|
+
tools?: ZukhrufToolSet;
|
|
23
28
|
subagents?: AgentDeclaration[];
|
|
24
29
|
telemetry?: Parameters<typeof generateText>[0]['telemetry'];
|
|
25
30
|
}
|
|
26
31
|
export interface DefinedAgentDeclaration extends AgentDeclaration {
|
|
27
|
-
tools:
|
|
32
|
+
tools: ZukhrufToolSet;
|
|
28
33
|
subagents: AgentDeclaration[];
|
|
29
34
|
}
|
|
30
35
|
export declare function defineAgent(declaration: AgentDeclaration): DefinedAgentDeclaration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/zukhruf/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/zukhruf/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAEvC,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG;IAC1C,qGAAqG;IACrG,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACpC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9D,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D,KAAK,EAAE,cAAc,CAAC;IACtB,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED,wBAAgB,WAAW,CACzB,WAAW,EAAE,gBAAgB,GAC5B,uBAAuB,CAUzB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AgentActor, AgentControlPlane } from '../control-plane/agent-control-plane.ts';
|
|
2
|
+
export interface AgentToolContext extends Record<string, unknown> {
|
|
3
|
+
controlPlane: AgentControlPlane;
|
|
4
|
+
actor: AgentActor;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=agent-tool-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tool-context.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/collaboration/agent-tool-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EAClB,MAAM,yCAAyC,CAAC;AAEjD,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/D,YAAY,EAAE,iBAAiB,CAAC;IAChC,KAAK,EAAE,UAAU,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collaboration-tools.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/collaboration/collaboration-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,IAAI,CAAC;AAExC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AASlF,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,8BAA8B,GACrC,OAAO,CAsBT"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { type ListedAgentStatus } from '../control-plane/agent-status-projector.ts';
|
|
2
|
+
import type { AgentToolContext } from './agent-tool-context.ts';
|
|
3
|
+
export declare const interruptAgentTool: ({
|
|
4
|
+
title?: string;
|
|
5
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
6
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
7
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
8
|
+
target: string;
|
|
9
|
+
}>;
|
|
10
|
+
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
11
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
12
|
+
target: string;
|
|
13
|
+
}, NoInfer<AgentToolContext>> | undefined;
|
|
14
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
15
|
+
onInputDelta?: ((options: {
|
|
16
|
+
inputTextDelta: string;
|
|
17
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
18
|
+
onInputAvailable?: ((options: {
|
|
19
|
+
input: {
|
|
20
|
+
target: string;
|
|
21
|
+
};
|
|
22
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
23
|
+
toModelOutput?: ((options: {
|
|
24
|
+
toolCallId: string;
|
|
25
|
+
input: {
|
|
26
|
+
target: string;
|
|
27
|
+
};
|
|
28
|
+
output: NoInfer<{
|
|
29
|
+
previous_status: ListedAgentStatus;
|
|
30
|
+
}>;
|
|
31
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
34
|
+
previous_status: ListedAgentStatus;
|
|
35
|
+
}> | undefined;
|
|
36
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
37
|
+
target: string;
|
|
38
|
+
}, {
|
|
39
|
+
previous_status: ListedAgentStatus;
|
|
40
|
+
}, NoInfer<AgentToolContext>>;
|
|
41
|
+
} & {
|
|
42
|
+
description?: string | ((options: {
|
|
43
|
+
context: NoInfer<AgentToolContext>;
|
|
44
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
45
|
+
}) => string) | undefined;
|
|
46
|
+
strict?: boolean;
|
|
47
|
+
inputExamples?: {
|
|
48
|
+
input: NoInfer<{
|
|
49
|
+
target: string;
|
|
50
|
+
}>;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
id?: never;
|
|
53
|
+
isProviderExecuted?: never;
|
|
54
|
+
args?: never;
|
|
55
|
+
supportsDeferredResults?: never;
|
|
56
|
+
} & {
|
|
57
|
+
type?: undefined | "function";
|
|
58
|
+
} & {
|
|
59
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
60
|
+
target: string;
|
|
61
|
+
}, {
|
|
62
|
+
previous_status: ListedAgentStatus;
|
|
63
|
+
}, NoInfer<AgentToolContext>>;
|
|
64
|
+
}) | ({
|
|
65
|
+
title?: string;
|
|
66
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
67
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
68
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
69
|
+
target: string;
|
|
70
|
+
}>;
|
|
71
|
+
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
72
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
73
|
+
target: string;
|
|
74
|
+
}, NoInfer<AgentToolContext>> | undefined;
|
|
75
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
76
|
+
onInputDelta?: ((options: {
|
|
77
|
+
inputTextDelta: string;
|
|
78
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
79
|
+
onInputAvailable?: ((options: {
|
|
80
|
+
input: {
|
|
81
|
+
target: string;
|
|
82
|
+
};
|
|
83
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
84
|
+
toModelOutput?: ((options: {
|
|
85
|
+
toolCallId: string;
|
|
86
|
+
input: {
|
|
87
|
+
target: string;
|
|
88
|
+
};
|
|
89
|
+
output: NoInfer<{
|
|
90
|
+
previous_status: ListedAgentStatus;
|
|
91
|
+
}>;
|
|
92
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
93
|
+
} & {
|
|
94
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
95
|
+
previous_status: ListedAgentStatus;
|
|
96
|
+
}> | undefined;
|
|
97
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
98
|
+
target: string;
|
|
99
|
+
}, {
|
|
100
|
+
previous_status: ListedAgentStatus;
|
|
101
|
+
}, NoInfer<AgentToolContext>>;
|
|
102
|
+
} & {
|
|
103
|
+
description?: string | ((options: {
|
|
104
|
+
context: NoInfer<AgentToolContext>;
|
|
105
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
106
|
+
}) => string) | undefined;
|
|
107
|
+
strict?: boolean;
|
|
108
|
+
inputExamples?: {
|
|
109
|
+
input: NoInfer<{
|
|
110
|
+
target: string;
|
|
111
|
+
}>;
|
|
112
|
+
}[] | undefined;
|
|
113
|
+
id?: never;
|
|
114
|
+
isProviderExecuted?: never;
|
|
115
|
+
args?: never;
|
|
116
|
+
supportsDeferredResults?: never;
|
|
117
|
+
} & {
|
|
118
|
+
type: "dynamic";
|
|
119
|
+
} & {
|
|
120
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
121
|
+
target: string;
|
|
122
|
+
}, {
|
|
123
|
+
previous_status: ListedAgentStatus;
|
|
124
|
+
}, NoInfer<AgentToolContext>>;
|
|
125
|
+
}) | ({
|
|
126
|
+
title?: string;
|
|
127
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
128
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
129
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
130
|
+
target: string;
|
|
131
|
+
}>;
|
|
132
|
+
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
133
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
134
|
+
target: string;
|
|
135
|
+
}, NoInfer<AgentToolContext>> | undefined;
|
|
136
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
137
|
+
onInputDelta?: ((options: {
|
|
138
|
+
inputTextDelta: string;
|
|
139
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
140
|
+
onInputAvailable?: ((options: {
|
|
141
|
+
input: {
|
|
142
|
+
target: string;
|
|
143
|
+
};
|
|
144
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
145
|
+
toModelOutput?: ((options: {
|
|
146
|
+
toolCallId: string;
|
|
147
|
+
input: {
|
|
148
|
+
target: string;
|
|
149
|
+
};
|
|
150
|
+
output: NoInfer<{
|
|
151
|
+
previous_status: ListedAgentStatus;
|
|
152
|
+
}>;
|
|
153
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
154
|
+
} & {
|
|
155
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
156
|
+
previous_status: ListedAgentStatus;
|
|
157
|
+
}> | undefined;
|
|
158
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
159
|
+
target: string;
|
|
160
|
+
}, {
|
|
161
|
+
previous_status: ListedAgentStatus;
|
|
162
|
+
}, NoInfer<AgentToolContext>>;
|
|
163
|
+
} & {
|
|
164
|
+
type: "provider";
|
|
165
|
+
id: `${string}.${string}`;
|
|
166
|
+
args: Record<string, unknown>;
|
|
167
|
+
description?: never;
|
|
168
|
+
strict?: never;
|
|
169
|
+
inputExamples?: never;
|
|
170
|
+
} & {
|
|
171
|
+
isProviderExecuted: false;
|
|
172
|
+
supportsDeferredResults?: never;
|
|
173
|
+
} & {
|
|
174
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
175
|
+
target: string;
|
|
176
|
+
}, {
|
|
177
|
+
previous_status: ListedAgentStatus;
|
|
178
|
+
}, NoInfer<AgentToolContext>>;
|
|
179
|
+
}) | ({
|
|
180
|
+
title?: string;
|
|
181
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
182
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
183
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
184
|
+
target: string;
|
|
185
|
+
}>;
|
|
186
|
+
contextSchema?: import("ai").FlexibleSchema<AgentToolContext> | undefined;
|
|
187
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
188
|
+
target: string;
|
|
189
|
+
}, NoInfer<AgentToolContext>> | undefined;
|
|
190
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
191
|
+
onInputDelta?: ((options: {
|
|
192
|
+
inputTextDelta: string;
|
|
193
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
194
|
+
onInputAvailable?: ((options: {
|
|
195
|
+
input: {
|
|
196
|
+
target: string;
|
|
197
|
+
};
|
|
198
|
+
} & import("ai").ToolExecutionOptions<NoInfer<AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
199
|
+
toModelOutput?: ((options: {
|
|
200
|
+
toolCallId: string;
|
|
201
|
+
input: {
|
|
202
|
+
target: string;
|
|
203
|
+
};
|
|
204
|
+
output: NoInfer<{
|
|
205
|
+
previous_status: ListedAgentStatus;
|
|
206
|
+
}>;
|
|
207
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
208
|
+
} & {
|
|
209
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
210
|
+
previous_status: ListedAgentStatus;
|
|
211
|
+
}> | undefined;
|
|
212
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
213
|
+
target: string;
|
|
214
|
+
}, {
|
|
215
|
+
previous_status: ListedAgentStatus;
|
|
216
|
+
}, NoInfer<AgentToolContext>>;
|
|
217
|
+
} & {
|
|
218
|
+
type: "provider";
|
|
219
|
+
id: `${string}.${string}`;
|
|
220
|
+
args: Record<string, unknown>;
|
|
221
|
+
description?: never;
|
|
222
|
+
strict?: never;
|
|
223
|
+
inputExamples?: never;
|
|
224
|
+
} & {
|
|
225
|
+
isProviderExecuted: true;
|
|
226
|
+
supportsDeferredResults?: boolean;
|
|
227
|
+
} & {
|
|
228
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
229
|
+
target: string;
|
|
230
|
+
}, {
|
|
231
|
+
previous_status: ListedAgentStatus;
|
|
232
|
+
}, NoInfer<AgentToolContext>>;
|
|
233
|
+
});
|
|
234
|
+
//# sourceMappingURL=interrupt-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interrupt-agent.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/collaboration/interrupt-agent.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAkBhE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;6BAEV,iBAAiB;;;;;yBAAjB,iBAAiB;;;;;yBAAjB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;yBAAjB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAjB,iBAAiB;;;;;yBAAjB,iBAAiB;;;;;yBAAjB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;yBAAjB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAjB,iBAAiB;;;;;yBAAjB,iBAAiB;;;;;yBAAjB,iBAAiB;;;;;;;;;;;;;;;;yBAAjB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAjB,iBAAiB;;;;;yBAAjB,iBAAiB;;;;;yBAAjB,iBAAiB;;;;;;;;;;;;;;;;yBAAjB,iBAAiB;;EASpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-agents.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/collaboration/list-agents.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAmBhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEf,WAAW,EAAE;;;;;gBAAb,WAAW,EAAE;;;;;gBAAb,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;gBAAb,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAb,WAAW,EAAE;;;;;gBAAb,WAAW,EAAE;;;;;gBAAb,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;gBAAb,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAb,WAAW,EAAE;;;;;gBAAb,WAAW,EAAE;;;;;gBAAb,WAAW,EAAE;;;;;;;;;;;;;;;;gBAAb,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAb,WAAW,EAAE;;;;;gBAAb,WAAW,EAAE;;;;;gBAAb,WAAW,EAAE;;;;;;;;;;;;;;;;gBAAb,WAAW,EAAE;;EASvB,CAAC"}
|