@deepagents/experimental 7.10.0 → 7.10.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/README.md +16 -4
- package/dist/index.js +862 -671
- package/dist/index.js.map +4 -4
- package/dist/zukhruf/collaboration/capability.d.ts +22 -0
- package/dist/zukhruf/collaboration/capability.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/code-mode-tools.d.ts +13 -0
- package/dist/zukhruf/collaboration/code-mode-tools.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/direct-messaging.d.ts +466 -0
- package/dist/zukhruf/collaboration/direct-messaging.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/direct-tools.d.ts +14 -0
- package/dist/zukhruf/collaboration/direct-tools.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/spawn-agent.d.ts +26 -26
- package/dist/zukhruf/collaboration/spawning.d.ts +325 -0
- package/dist/zukhruf/collaboration/spawning.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/supervision.d.ts +478 -0
- package/dist/zukhruf/collaboration/supervision.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/team.d.ts +1549 -0
- package/dist/zukhruf/collaboration/team.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/tool-exposure.d.ts +29 -0
- package/dist/zukhruf/collaboration/tool-exposure.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/tool-namespace.d.ts +7 -0
- package/dist/zukhruf/collaboration/tool-namespace.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/wait-bounds.d.ts +12 -0
- package/dist/zukhruf/collaboration/wait-bounds.d.ts.map +1 -0
- package/dist/zukhruf/collaboration/waiting.d.ts +262 -0
- package/dist/zukhruf/collaboration/waiting.d.ts.map +1 -0
- package/dist/zukhruf/control-plane/agent-history-forker.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/fork-turns.d.ts +4 -3
- package/dist/zukhruf/control-plane/fork-turns.d.ts.map +1 -1
- package/dist/zukhruf/index.d.ts +11 -1
- package/dist/zukhruf/index.d.ts.map +1 -1
- package/dist/zukhruf/index.js +863 -672
- package/dist/zukhruf/index.js.map +4 -4
- package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts.map +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/index.js +142 -141
- package/dist/zukhruf/plugins/conversation-scheduling/index.js.map +4 -4
- package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts.map +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts.map +1 -1
- package/dist/zukhruf/plugins/schedules/index.js +141 -140
- package/dist/zukhruf/plugins/schedules/index.js.map +4 -4
- package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts +1 -1
- package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts.map +1 -1
- package/dist/zukhruf/plugins/uploads/http.js +2 -9
- package/dist/zukhruf/plugins/uploads/http.js.map +2 -2
- package/dist/zukhruf/queue/turn-queue.d.ts +2 -2
- package/dist/zukhruf/queue/turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/runtime/agent-runtime.d.ts +5 -4
- package/dist/zukhruf/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts +3 -3
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts.map +1 -1
- package/dist/zukhruf/runtime/approval-controller.d.ts +3 -3
- package/dist/zukhruf/runtime/approval-controller.d.ts.map +1 -1
- package/dist/zukhruf/runtime/conversation-status/projector.d.ts.map +1 -1
- package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts +3 -5
- package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts +0 -1832
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts.map +0 -1
- package/dist/zukhruf/multi-agent-config.d.ts +0 -37
- package/dist/zukhruf/multi-agent-config.d.ts.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ToolSet } from 'ai';
|
|
2
|
+
/** Whose collaboration guidance: the root agent's or a sub-agent's. */
|
|
3
|
+
export type Role = 'root' | 'subagent';
|
|
4
|
+
/** The name guidance uses for a collaboration tool on the team's exposure. */
|
|
5
|
+
export type ToolNamer = (toolName: string) => string;
|
|
6
|
+
/** The sentences one capability adds to a role's collaboration guidance. */
|
|
7
|
+
export interface Guidance {
|
|
8
|
+
/** Sentences that open the description of what the team can do. */
|
|
9
|
+
readonly intro?: string;
|
|
10
|
+
/** Clauses of the team's "Use …" sentence, one per tool it explains. */
|
|
11
|
+
readonly uses?: readonly string[];
|
|
12
|
+
/** Sentences that follow the "Use …" sentence. */
|
|
13
|
+
readonly notes?: string;
|
|
14
|
+
/** A paragraph after the sentences every team shares. */
|
|
15
|
+
readonly outro?: string;
|
|
16
|
+
}
|
|
17
|
+
/** One part of a team's collaboration: its tools and its own guidance. */
|
|
18
|
+
export interface Capability {
|
|
19
|
+
readonly tools: ToolSet;
|
|
20
|
+
guidance(role: Role, name: ToolNamer): Guidance;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=capability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability.d.ts","sources":["../../../src/zukhruf/collaboration/capability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAElC,uEAAuE;AACvE,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,UAAU,CAAC;AAEvC,8EAA8E;AAC9E,MAAM,MAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;AAErD,4EAA4E;AAC5E,MAAM,WAAW,QAAQ;IACvB,mEAAmE;IACnE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,kDAAkD;IAClD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,0EAA0E;AAC1E,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;CACjD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Tool, ToolSet } from 'ai';
|
|
2
|
+
import { ToolExposure, type ToolSurface } from './tool-exposure.ts';
|
|
3
|
+
/** The collaboration tools are callable only from the AI SDK `code_mode` tool. */
|
|
4
|
+
export declare class CodeModeTools extends ToolExposure {
|
|
5
|
+
toolName(name: string): string;
|
|
6
|
+
callLine(toolNames: readonly string[]): string;
|
|
7
|
+
tool<TOOL extends Tool>(collaborationTool: TOOL): TOOL;
|
|
8
|
+
surface<TOOLS extends ToolSet>(collaborationTools: TOOLS): ToolSurface<TOOLS>;
|
|
9
|
+
callerContext<CONTEXT>(context: CONTEXT): {
|
|
10
|
+
code_mode: CONTEXT;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=code-mode-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-mode-tools.d.ts","sources":["../../../src/zukhruf/collaboration/code-mode-tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEpE,kFAAkF;AAClF,qBAAa,aAAc,SAAQ,YAAY;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7B;IAED,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAE7C;IAED,IAAI,CAAC,IAAI,SAAS,IAAI,EAAE,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAErD;IAED,OAAO,CAAC,KAAK,SAAS,OAAO,EAC3B,kBAAkB,EAAE,KAAK,GACxB,WAAW,CAAC,KAAK,CAAC,CAepB;IAED,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAE/D;CACF"}
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import type { Capability, Guidance, Role, ToolNamer } from './capability.ts';
|
|
2
|
+
/** Messages another agent directly: `send_message` and `followup_task`. */
|
|
3
|
+
export declare class DirectMessaging implements Capability {
|
|
4
|
+
readonly tools: {
|
|
5
|
+
send_message: ({
|
|
6
|
+
deferLoading?: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
9
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
10
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
11
|
+
target: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}>;
|
|
14
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
15
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
16
|
+
target: string;
|
|
17
|
+
message: string;
|
|
18
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
19
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
20
|
+
onInputDelta?: ((options: {
|
|
21
|
+
inputTextDelta: string;
|
|
22
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
23
|
+
onInputAvailable?: ((options: {
|
|
24
|
+
input: {
|
|
25
|
+
target: string;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
29
|
+
toModelOutput?: ((options: {
|
|
30
|
+
toolCallId: string;
|
|
31
|
+
input: {
|
|
32
|
+
target: string;
|
|
33
|
+
message: string;
|
|
34
|
+
};
|
|
35
|
+
output: string;
|
|
36
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
outputSchema?: import("ai").FlexibleSchema<string> | undefined;
|
|
39
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
40
|
+
target: string;
|
|
41
|
+
message: string;
|
|
42
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
43
|
+
} & {
|
|
44
|
+
description?: string | ((options: {
|
|
45
|
+
context: NoInfer<import("./agent-tool-context.ts").AgentToolContext>;
|
|
46
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
47
|
+
}) => string) | undefined;
|
|
48
|
+
strict?: boolean;
|
|
49
|
+
inputExamples?: {
|
|
50
|
+
input: NoInfer<{
|
|
51
|
+
target: string;
|
|
52
|
+
message: string;
|
|
53
|
+
}>;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
id?: never;
|
|
56
|
+
isProviderExecuted?: never;
|
|
57
|
+
args?: never;
|
|
58
|
+
supportsDeferredResults?: never;
|
|
59
|
+
} & {
|
|
60
|
+
type?: undefined | 'function';
|
|
61
|
+
} & {
|
|
62
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
63
|
+
target: string;
|
|
64
|
+
message: string;
|
|
65
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
66
|
+
}) | ({
|
|
67
|
+
deferLoading?: boolean;
|
|
68
|
+
title?: string;
|
|
69
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
70
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
71
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
72
|
+
target: string;
|
|
73
|
+
message: string;
|
|
74
|
+
}>;
|
|
75
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
76
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
77
|
+
target: string;
|
|
78
|
+
message: string;
|
|
79
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
80
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
81
|
+
onInputDelta?: ((options: {
|
|
82
|
+
inputTextDelta: string;
|
|
83
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
84
|
+
onInputAvailable?: ((options: {
|
|
85
|
+
input: {
|
|
86
|
+
target: string;
|
|
87
|
+
message: string;
|
|
88
|
+
};
|
|
89
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
90
|
+
toModelOutput?: ((options: {
|
|
91
|
+
toolCallId: string;
|
|
92
|
+
input: {
|
|
93
|
+
target: string;
|
|
94
|
+
message: string;
|
|
95
|
+
};
|
|
96
|
+
output: string;
|
|
97
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
98
|
+
} & {
|
|
99
|
+
outputSchema?: import("ai").FlexibleSchema<string> | undefined;
|
|
100
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
101
|
+
target: string;
|
|
102
|
+
message: string;
|
|
103
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
104
|
+
} & {
|
|
105
|
+
description?: string | ((options: {
|
|
106
|
+
context: NoInfer<import("./agent-tool-context.ts").AgentToolContext>;
|
|
107
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
108
|
+
}) => string) | undefined;
|
|
109
|
+
strict?: boolean;
|
|
110
|
+
inputExamples?: {
|
|
111
|
+
input: NoInfer<{
|
|
112
|
+
target: string;
|
|
113
|
+
message: string;
|
|
114
|
+
}>;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
id?: never;
|
|
117
|
+
isProviderExecuted?: never;
|
|
118
|
+
args?: never;
|
|
119
|
+
supportsDeferredResults?: never;
|
|
120
|
+
} & {
|
|
121
|
+
type: 'dynamic';
|
|
122
|
+
} & {
|
|
123
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
124
|
+
target: string;
|
|
125
|
+
message: string;
|
|
126
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
127
|
+
}) | ({
|
|
128
|
+
deferLoading?: boolean;
|
|
129
|
+
title?: string;
|
|
130
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
131
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
132
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
133
|
+
target: string;
|
|
134
|
+
message: string;
|
|
135
|
+
}>;
|
|
136
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
137
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
138
|
+
target: string;
|
|
139
|
+
message: string;
|
|
140
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
141
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
142
|
+
onInputDelta?: ((options: {
|
|
143
|
+
inputTextDelta: string;
|
|
144
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
145
|
+
onInputAvailable?: ((options: {
|
|
146
|
+
input: {
|
|
147
|
+
target: string;
|
|
148
|
+
message: string;
|
|
149
|
+
};
|
|
150
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
151
|
+
toModelOutput?: ((options: {
|
|
152
|
+
toolCallId: string;
|
|
153
|
+
input: {
|
|
154
|
+
target: string;
|
|
155
|
+
message: string;
|
|
156
|
+
};
|
|
157
|
+
output: string;
|
|
158
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
159
|
+
} & {
|
|
160
|
+
outputSchema?: import("ai").FlexibleSchema<string> | undefined;
|
|
161
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
162
|
+
target: string;
|
|
163
|
+
message: string;
|
|
164
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
165
|
+
} & {
|
|
166
|
+
type: 'provider';
|
|
167
|
+
id: `${string}.${string}`;
|
|
168
|
+
args: Record<string, unknown>;
|
|
169
|
+
description?: never;
|
|
170
|
+
strict?: never;
|
|
171
|
+
inputExamples?: never;
|
|
172
|
+
} & {
|
|
173
|
+
isProviderExecuted: false;
|
|
174
|
+
supportsDeferredResults?: never;
|
|
175
|
+
} & {
|
|
176
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
177
|
+
target: string;
|
|
178
|
+
message: string;
|
|
179
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
180
|
+
}) | ({
|
|
181
|
+
deferLoading?: boolean;
|
|
182
|
+
title?: string;
|
|
183
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
184
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
185
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
186
|
+
target: string;
|
|
187
|
+
message: string;
|
|
188
|
+
}>;
|
|
189
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
190
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
191
|
+
target: string;
|
|
192
|
+
message: string;
|
|
193
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
194
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
195
|
+
onInputDelta?: ((options: {
|
|
196
|
+
inputTextDelta: string;
|
|
197
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
198
|
+
onInputAvailable?: ((options: {
|
|
199
|
+
input: {
|
|
200
|
+
target: string;
|
|
201
|
+
message: string;
|
|
202
|
+
};
|
|
203
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
204
|
+
toModelOutput?: ((options: {
|
|
205
|
+
toolCallId: string;
|
|
206
|
+
input: {
|
|
207
|
+
target: string;
|
|
208
|
+
message: string;
|
|
209
|
+
};
|
|
210
|
+
output: string;
|
|
211
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
212
|
+
} & {
|
|
213
|
+
outputSchema?: import("ai").FlexibleSchema<string> | undefined;
|
|
214
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
215
|
+
target: string;
|
|
216
|
+
message: string;
|
|
217
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
218
|
+
} & {
|
|
219
|
+
type: 'provider';
|
|
220
|
+
id: `${string}.${string}`;
|
|
221
|
+
args: Record<string, unknown>;
|
|
222
|
+
description?: never;
|
|
223
|
+
strict?: never;
|
|
224
|
+
inputExamples?: never;
|
|
225
|
+
} & {
|
|
226
|
+
isProviderExecuted: true;
|
|
227
|
+
supportsDeferredResults?: boolean;
|
|
228
|
+
} & {
|
|
229
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
230
|
+
target: string;
|
|
231
|
+
message: string;
|
|
232
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
233
|
+
});
|
|
234
|
+
followup_task: ({
|
|
235
|
+
deferLoading?: boolean;
|
|
236
|
+
title?: string;
|
|
237
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
238
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
239
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
240
|
+
target: string;
|
|
241
|
+
message: string;
|
|
242
|
+
}>;
|
|
243
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
244
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
245
|
+
target: string;
|
|
246
|
+
message: string;
|
|
247
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
248
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
249
|
+
onInputDelta?: ((options: {
|
|
250
|
+
inputTextDelta: string;
|
|
251
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
252
|
+
onInputAvailable?: ((options: {
|
|
253
|
+
input: {
|
|
254
|
+
target: string;
|
|
255
|
+
message: string;
|
|
256
|
+
};
|
|
257
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
258
|
+
toModelOutput?: ((options: {
|
|
259
|
+
toolCallId: string;
|
|
260
|
+
input: {
|
|
261
|
+
target: string;
|
|
262
|
+
message: string;
|
|
263
|
+
};
|
|
264
|
+
output: string;
|
|
265
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
266
|
+
} & {
|
|
267
|
+
outputSchema?: import("ai").FlexibleSchema<string> | undefined;
|
|
268
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
269
|
+
target: string;
|
|
270
|
+
message: string;
|
|
271
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
272
|
+
} & {
|
|
273
|
+
description?: string | ((options: {
|
|
274
|
+
context: NoInfer<import("./agent-tool-context.ts").AgentToolContext>;
|
|
275
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
276
|
+
}) => string) | undefined;
|
|
277
|
+
strict?: boolean;
|
|
278
|
+
inputExamples?: {
|
|
279
|
+
input: NoInfer<{
|
|
280
|
+
target: string;
|
|
281
|
+
message: string;
|
|
282
|
+
}>;
|
|
283
|
+
}[] | undefined;
|
|
284
|
+
id?: never;
|
|
285
|
+
isProviderExecuted?: never;
|
|
286
|
+
args?: never;
|
|
287
|
+
supportsDeferredResults?: never;
|
|
288
|
+
} & {
|
|
289
|
+
type?: undefined | 'function';
|
|
290
|
+
} & {
|
|
291
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
292
|
+
target: string;
|
|
293
|
+
message: string;
|
|
294
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
295
|
+
}) | ({
|
|
296
|
+
deferLoading?: boolean;
|
|
297
|
+
title?: string;
|
|
298
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
299
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
300
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
301
|
+
target: string;
|
|
302
|
+
message: string;
|
|
303
|
+
}>;
|
|
304
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
305
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
306
|
+
target: string;
|
|
307
|
+
message: string;
|
|
308
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
309
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
310
|
+
onInputDelta?: ((options: {
|
|
311
|
+
inputTextDelta: string;
|
|
312
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
313
|
+
onInputAvailable?: ((options: {
|
|
314
|
+
input: {
|
|
315
|
+
target: string;
|
|
316
|
+
message: string;
|
|
317
|
+
};
|
|
318
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
319
|
+
toModelOutput?: ((options: {
|
|
320
|
+
toolCallId: string;
|
|
321
|
+
input: {
|
|
322
|
+
target: string;
|
|
323
|
+
message: string;
|
|
324
|
+
};
|
|
325
|
+
output: string;
|
|
326
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
327
|
+
} & {
|
|
328
|
+
outputSchema?: import("ai").FlexibleSchema<string> | undefined;
|
|
329
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
330
|
+
target: string;
|
|
331
|
+
message: string;
|
|
332
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
333
|
+
} & {
|
|
334
|
+
description?: string | ((options: {
|
|
335
|
+
context: NoInfer<import("./agent-tool-context.ts").AgentToolContext>;
|
|
336
|
+
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
337
|
+
}) => string) | undefined;
|
|
338
|
+
strict?: boolean;
|
|
339
|
+
inputExamples?: {
|
|
340
|
+
input: NoInfer<{
|
|
341
|
+
target: string;
|
|
342
|
+
message: string;
|
|
343
|
+
}>;
|
|
344
|
+
}[] | undefined;
|
|
345
|
+
id?: never;
|
|
346
|
+
isProviderExecuted?: never;
|
|
347
|
+
args?: never;
|
|
348
|
+
supportsDeferredResults?: never;
|
|
349
|
+
} & {
|
|
350
|
+
type: 'dynamic';
|
|
351
|
+
} & {
|
|
352
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
353
|
+
target: string;
|
|
354
|
+
message: string;
|
|
355
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
356
|
+
}) | ({
|
|
357
|
+
deferLoading?: boolean;
|
|
358
|
+
title?: string;
|
|
359
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
360
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
361
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
362
|
+
target: string;
|
|
363
|
+
message: string;
|
|
364
|
+
}>;
|
|
365
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
366
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
367
|
+
target: string;
|
|
368
|
+
message: string;
|
|
369
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
370
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
371
|
+
onInputDelta?: ((options: {
|
|
372
|
+
inputTextDelta: string;
|
|
373
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
374
|
+
onInputAvailable?: ((options: {
|
|
375
|
+
input: {
|
|
376
|
+
target: string;
|
|
377
|
+
message: string;
|
|
378
|
+
};
|
|
379
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
380
|
+
toModelOutput?: ((options: {
|
|
381
|
+
toolCallId: string;
|
|
382
|
+
input: {
|
|
383
|
+
target: string;
|
|
384
|
+
message: string;
|
|
385
|
+
};
|
|
386
|
+
output: string;
|
|
387
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
388
|
+
} & {
|
|
389
|
+
outputSchema?: import("ai").FlexibleSchema<string> | undefined;
|
|
390
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
391
|
+
target: string;
|
|
392
|
+
message: string;
|
|
393
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
394
|
+
} & {
|
|
395
|
+
type: 'provider';
|
|
396
|
+
id: `${string}.${string}`;
|
|
397
|
+
args: Record<string, unknown>;
|
|
398
|
+
description?: never;
|
|
399
|
+
strict?: never;
|
|
400
|
+
inputExamples?: never;
|
|
401
|
+
} & {
|
|
402
|
+
isProviderExecuted: false;
|
|
403
|
+
supportsDeferredResults?: never;
|
|
404
|
+
} & {
|
|
405
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
406
|
+
target: string;
|
|
407
|
+
message: string;
|
|
408
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
409
|
+
}) | ({
|
|
410
|
+
deferLoading?: boolean;
|
|
411
|
+
title?: string;
|
|
412
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
413
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
414
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
415
|
+
target: string;
|
|
416
|
+
message: string;
|
|
417
|
+
}>;
|
|
418
|
+
contextSchema?: import("ai").FlexibleSchema<import("./agent-tool-context.ts").AgentToolContext> | undefined;
|
|
419
|
+
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
420
|
+
target: string;
|
|
421
|
+
message: string;
|
|
422
|
+
}, NoInfer<import("./agent-tool-context.ts").AgentToolContext>> | undefined;
|
|
423
|
+
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
424
|
+
onInputDelta?: ((options: {
|
|
425
|
+
inputTextDelta: string;
|
|
426
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
427
|
+
onInputAvailable?: ((options: {
|
|
428
|
+
input: {
|
|
429
|
+
target: string;
|
|
430
|
+
message: string;
|
|
431
|
+
};
|
|
432
|
+
} & import("ai").ToolExecutionOptions<NoInfer<import("./agent-tool-context.ts").AgentToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
433
|
+
toModelOutput?: ((options: {
|
|
434
|
+
toolCallId: string;
|
|
435
|
+
input: {
|
|
436
|
+
target: string;
|
|
437
|
+
message: string;
|
|
438
|
+
};
|
|
439
|
+
output: string;
|
|
440
|
+
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
441
|
+
} & {
|
|
442
|
+
outputSchema?: import("ai").FlexibleSchema<string> | undefined;
|
|
443
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
444
|
+
target: string;
|
|
445
|
+
message: string;
|
|
446
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
447
|
+
} & {
|
|
448
|
+
type: 'provider';
|
|
449
|
+
id: `${string}.${string}`;
|
|
450
|
+
args: Record<string, unknown>;
|
|
451
|
+
description?: never;
|
|
452
|
+
strict?: never;
|
|
453
|
+
inputExamples?: never;
|
|
454
|
+
} & {
|
|
455
|
+
isProviderExecuted: true;
|
|
456
|
+
supportsDeferredResults?: boolean;
|
|
457
|
+
} & {
|
|
458
|
+
execute: import("ai").ToolExecuteFunction<{
|
|
459
|
+
target: string;
|
|
460
|
+
message: string;
|
|
461
|
+
}, string, NoInfer<import("./agent-tool-context.ts").AgentToolContext>>;
|
|
462
|
+
});
|
|
463
|
+
};
|
|
464
|
+
guidance(role: Role, name: ToolNamer): Guidance;
|
|
465
|
+
}
|
|
466
|
+
//# sourceMappingURL=direct-messaging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct-messaging.d.ts","sources":["../../../src/zukhruf/collaboration/direct-messaging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG7E,2EAA2E;AAC3E,qBAAa,eAAgB,YAAW,UAAU;IAChD,QAAQ,CAAC,KAAK;QACZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACZ,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MACb;IAEF,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,GAAG,QAAQ,CAS9C;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Tool, ToolSet } from 'ai';
|
|
2
|
+
import { ToolExposure, type ToolSurface } from './tool-exposure.ts';
|
|
3
|
+
import type { ToolNamespace } from './tool-namespace.ts';
|
|
4
|
+
/** The collaboration tools sit on the model surface, optionally namespaced. */
|
|
5
|
+
export declare class DirectTools extends ToolExposure {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(namespace?: ToolNamespace);
|
|
8
|
+
toolName(name: string): string;
|
|
9
|
+
callLine(toolNames: readonly string[]): string;
|
|
10
|
+
tool<TOOL extends Tool>(collaborationTool: TOOL): TOOL;
|
|
11
|
+
surface<TOOLS extends ToolSet>(collaborationTools: TOOLS): ToolSurface<TOOLS>;
|
|
12
|
+
callerContext(): Record<never, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=direct-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct-tools.d.ts","sources":["../../../src/zukhruf/collaboration/direct-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,+EAA+E;AAC/E,qBAAa,WAAY,SAAQ,YAAY;;IAG3C,YAAY,SAAS,CAAC,EAAE,aAAa,EAGpC;IAED,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7B;IAED,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAE7C;IAED,IAAI,CAAC,IAAI,SAAS,IAAI,EAAE,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAqBrD;IAED,OAAO,CAAC,KAAK,SAAS,OAAO,EAC3B,kBAAkB,EAAE,KAAK,GACxB,WAAW,CAAC,KAAK,CAAC,CAMpB;IAED,aAAa,IAAI,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAEpC;CACF"}
|