@deepagents/experimental 6.1.2 → 7.0.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.
Files changed (131) hide show
  1. package/README.md +151 -10
  2. package/dist/coding-agent-reminders/types.d.ts.map +1 -1
  3. package/dist/index.js +3975 -2519
  4. package/dist/index.js.map +4 -4
  5. package/dist/providers/claude/index.d.ts +4 -0
  6. package/dist/providers/claude/index.d.ts.map +1 -0
  7. package/dist/providers/claude/index.js +196 -0
  8. package/dist/providers/claude/index.js.map +7 -0
  9. package/dist/providers/claude/local-credentials.d.ts +3 -0
  10. package/dist/providers/claude/local-credentials.d.ts.map +1 -0
  11. package/dist/providers/codex/generate-via-stream.d.ts +8 -0
  12. package/dist/providers/codex/generate-via-stream.d.ts.map +1 -0
  13. package/dist/providers/codex/index.d.ts +4 -0
  14. package/dist/providers/codex/index.d.ts.map +1 -0
  15. package/dist/providers/codex/index.js +358 -0
  16. package/dist/providers/codex/index.js.map +7 -0
  17. package/dist/providers/codex/local-credentials.d.ts +4 -0
  18. package/dist/providers/codex/local-credentials.d.ts.map +1 -0
  19. package/dist/providers/language-model-provider.d.ts +5 -0
  20. package/dist/providers/language-model-provider.d.ts.map +1 -0
  21. package/dist/zukhruf/agent.d.ts +17 -2
  22. package/dist/zukhruf/agent.d.ts.map +1 -1
  23. package/dist/zukhruf/collaboration/agent-tool-context.d.ts +2 -2
  24. package/dist/zukhruf/collaboration/agent-tool-context.d.ts.map +1 -1
  25. package/dist/zukhruf/collaboration/collaboration-tools.d.ts +1807 -3
  26. package/dist/zukhruf/collaboration/collaboration-tools.d.ts.map +1 -1
  27. package/dist/zukhruf/collaboration/spawn-agent.d.ts.map +1 -1
  28. package/dist/zukhruf/collaboration/wait-agent.d.ts.map +1 -1
  29. package/dist/zukhruf/control-plane/agent-control-plane.d.ts +6 -7
  30. package/dist/zukhruf/control-plane/agent-control-plane.d.ts.map +1 -1
  31. package/dist/zukhruf/control-plane/agent-status-projector.d.ts +6 -3
  32. package/dist/zukhruf/control-plane/agent-status-projector.d.ts.map +1 -1
  33. package/dist/zukhruf/control-plane/agent-thread.d.ts.map +1 -1
  34. package/dist/zukhruf/index.d.ts +7 -4
  35. package/dist/zukhruf/index.d.ts.map +1 -1
  36. package/dist/zukhruf/index.js +4184 -2728
  37. package/dist/zukhruf/index.js.map +4 -4
  38. package/dist/zukhruf/{multi-agent-v2-config.d.ts → multi-agent-config.d.ts} +14 -9
  39. package/dist/zukhruf/multi-agent-config.d.ts.map +1 -0
  40. package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts +76 -0
  41. package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts.map +1 -0
  42. package/dist/zukhruf/plugins/conversation-scheduling/index.d.ts +13 -0
  43. package/dist/zukhruf/plugins/conversation-scheduling/index.d.ts.map +1 -0
  44. package/dist/zukhruf/plugins/conversation-scheduling/index.js +999 -0
  45. package/dist/zukhruf/plugins/conversation-scheduling/index.js.map +7 -0
  46. package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts +19 -0
  47. package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts.map +1 -0
  48. package/dist/zukhruf/plugins/conversation-scheduling/tools.d.ts +1305 -0
  49. package/dist/zukhruf/plugins/conversation-scheduling/tools.d.ts.map +1 -0
  50. package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts +12 -0
  51. package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts.map +1 -0
  52. package/dist/zukhruf/plugins/http/index.d.ts +50 -0
  53. package/dist/zukhruf/plugins/http/index.d.ts.map +1 -0
  54. package/dist/zukhruf/plugins/http/index.js +618 -0
  55. package/dist/zukhruf/plugins/http/index.js.map +7 -0
  56. package/dist/zukhruf/plugins/http/parse.d.ts.map +1 -0
  57. package/dist/zukhruf/plugins/http/validator.d.ts.map +1 -0
  58. package/dist/zukhruf/plugins/mcp/index.d.ts +8 -0
  59. package/dist/zukhruf/plugins/mcp/index.d.ts.map +1 -0
  60. package/dist/zukhruf/plugins/mcp/index.js +25 -0
  61. package/dist/zukhruf/plugins/mcp/index.js.map +7 -0
  62. package/dist/zukhruf/plugins/schedules/http.d.ts +45 -0
  63. package/dist/zukhruf/plugins/schedules/http.d.ts.map +1 -0
  64. package/dist/zukhruf/plugins/schedules/http.js +528 -0
  65. package/dist/zukhruf/plugins/schedules/http.js.map +7 -0
  66. package/dist/zukhruf/plugins/schedules/index.d.ts +35 -0
  67. package/dist/zukhruf/plugins/schedules/index.d.ts.map +1 -0
  68. package/dist/zukhruf/plugins/schedules/index.js +1873 -0
  69. package/dist/zukhruf/plugins/schedules/index.js.map +7 -0
  70. package/dist/zukhruf/plugins/schedules/schedule-files.d.ts +6 -0
  71. package/dist/zukhruf/plugins/schedules/schedule-files.d.ts.map +1 -0
  72. package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts +157 -0
  73. package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts.map +1 -0
  74. package/dist/zukhruf/plugins/uploads/http.d.ts +27 -0
  75. package/dist/zukhruf/plugins/uploads/http.d.ts.map +1 -0
  76. package/dist/zukhruf/plugins/uploads/http.js +426 -0
  77. package/dist/zukhruf/plugins/uploads/http.js.map +7 -0
  78. package/dist/zukhruf/plugins/uploads/index.d.ts +73 -0
  79. package/dist/zukhruf/plugins/uploads/index.d.ts.map +1 -0
  80. package/dist/zukhruf/plugins/uploads/index.js +247 -0
  81. package/dist/zukhruf/plugins/uploads/index.js.map +7 -0
  82. package/dist/zukhruf/queue/pg-boss-notifications.d.ts +10 -0
  83. package/dist/zukhruf/queue/pg-boss-notifications.d.ts.map +1 -0
  84. package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts +8 -11
  85. package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts.map +1 -1
  86. package/dist/zukhruf/queue/turn-queue.d.ts +43 -38
  87. package/dist/zukhruf/queue/turn-queue.d.ts.map +1 -1
  88. package/dist/zukhruf/runtime/agent-runtime.d.ts +148 -43
  89. package/dist/zukhruf/runtime/agent-runtime.d.ts.map +1 -1
  90. package/dist/zukhruf/runtime/agent-turn-executor.d.ts +9 -2
  91. package/dist/zukhruf/runtime/agent-turn-executor.d.ts.map +1 -1
  92. package/dist/zukhruf/runtime/approval-controller.d.ts +10 -25
  93. package/dist/zukhruf/runtime/approval-controller.d.ts.map +1 -1
  94. package/dist/zukhruf/runtime/compaction.d.ts +47 -0
  95. package/dist/zukhruf/runtime/compaction.d.ts.map +1 -0
  96. package/dist/zukhruf/runtime/conversation-status/change-source.d.ts +19 -0
  97. package/dist/zukhruf/runtime/conversation-status/change-source.d.ts.map +1 -0
  98. package/dist/zukhruf/runtime/conversation-status/child-progress.d.ts +84 -0
  99. package/dist/zukhruf/runtime/conversation-status/child-progress.d.ts.map +1 -0
  100. package/dist/zukhruf/runtime/conversation-status/pg-boss-change-source.d.ts +22 -0
  101. package/dist/zukhruf/runtime/conversation-status/pg-boss-change-source.d.ts.map +1 -0
  102. package/dist/zukhruf/runtime/conversation-status/projector.d.ts +62 -0
  103. package/dist/zukhruf/runtime/conversation-status/projector.d.ts.map +1 -0
  104. package/dist/zukhruf/runtime/conversation-status/status-publishing-turn-queue.d.ts +20 -0
  105. package/dist/zukhruf/runtime/conversation-status/status-publishing-turn-queue.d.ts.map +1 -0
  106. package/dist/zukhruf/runtime/plugin/agent-skills.d.ts +22 -0
  107. package/dist/zukhruf/runtime/plugin/agent-skills.d.ts.map +1 -0
  108. package/dist/zukhruf/runtime/plugin/plugin-agents.d.ts +14 -0
  109. package/dist/zukhruf/runtime/plugin/plugin-agents.d.ts.map +1 -0
  110. package/dist/zukhruf/runtime/plugin/plugin-bindings.d.ts +8 -0
  111. package/dist/zukhruf/runtime/plugin/plugin-bindings.d.ts.map +1 -0
  112. package/dist/zukhruf/runtime/plugin/plugin-context-composition.d.ts +7 -0
  113. package/dist/zukhruf/runtime/plugin/plugin-context-composition.d.ts.map +1 -0
  114. package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts +38 -0
  115. package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts.map +1 -0
  116. package/dist/zukhruf/runtime/plugin/plugin-tool-composition.d.ts +10 -0
  117. package/dist/zukhruf/runtime/plugin/plugin-tool-composition.d.ts.map +1 -0
  118. package/dist/zukhruf/tool.d.ts +5 -1
  119. package/dist/zukhruf/tool.d.ts.map +1 -1
  120. package/package.json +72 -6
  121. package/dist/zukhruf/multi-agent-v2-config.d.ts.map +0 -1
  122. package/dist/zukhruf/protocol/parse.d.ts.map +0 -1
  123. package/dist/zukhruf/protocol/session.d.ts +0 -23
  124. package/dist/zukhruf/protocol/session.d.ts.map +0 -1
  125. package/dist/zukhruf/protocol/validator.d.ts.map +0 -1
  126. package/dist/zukhruf/runtime/agent-skills.d.ts +0 -9
  127. package/dist/zukhruf/runtime/agent-skills.d.ts.map +0 -1
  128. package/dist/zukhruf/runtime/approval-job-id.d.ts +0 -3
  129. package/dist/zukhruf/runtime/approval-job-id.d.ts.map +0 -1
  130. /package/dist/zukhruf/{protocol → plugins/http}/parse.d.ts +0 -0
  131. /package/dist/zukhruf/{protocol → plugins/http}/validator.d.ts +0 -0
@@ -0,0 +1,1305 @@
1
+ import type { AgentPluginToolContext } from '../../runtime/agent-runtime.ts';
2
+ import type { ConversationScheduler } from './conversation-scheduler.ts';
3
+ export declare function createSchedulingTools(conversationScheduler: ConversationScheduler): {
4
+ CronCreate: ({
5
+ title?: string;
6
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
7
+ metadata?: import("@ai-sdk/provider").JSONObject;
8
+ inputSchema: import("ai").FlexibleSchema<{
9
+ cron: string;
10
+ prompt: string;
11
+ recurring?: boolean | undefined;
12
+ }>;
13
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
14
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
15
+ cron: string;
16
+ prompt: string;
17
+ recurring?: boolean | undefined;
18
+ }, NoInfer<AgentPluginToolContext>> | undefined;
19
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
20
+ onInputDelta?: ((options: {
21
+ inputTextDelta: string;
22
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
23
+ onInputAvailable?: ((options: {
24
+ input: {
25
+ cron: string;
26
+ prompt: string;
27
+ recurring?: boolean | undefined;
28
+ };
29
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
30
+ toModelOutput?: ((options: {
31
+ toolCallId: string;
32
+ input: {
33
+ cron: string;
34
+ prompt: string;
35
+ recurring?: boolean | undefined;
36
+ };
37
+ output: NoInfer<{
38
+ id: string;
39
+ humanSchedule: string;
40
+ nextRunAt: number;
41
+ timezone: string;
42
+ recurring: boolean;
43
+ warning?: string | undefined;
44
+ }>;
45
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
46
+ } & {
47
+ outputSchema?: import("ai").FlexibleSchema<{
48
+ id: string;
49
+ humanSchedule: string;
50
+ nextRunAt: number;
51
+ timezone: string;
52
+ recurring: boolean;
53
+ warning?: string | undefined;
54
+ }> | undefined;
55
+ execute: import("ai").ToolExecuteFunction<{
56
+ cron: string;
57
+ prompt: string;
58
+ recurring?: boolean | undefined;
59
+ }, {
60
+ id: string;
61
+ humanSchedule: string;
62
+ nextRunAt: number;
63
+ timezone: string;
64
+ recurring: boolean;
65
+ warning?: string | undefined;
66
+ }, NoInfer<AgentPluginToolContext>>;
67
+ } & {
68
+ description?: string | ((options: {
69
+ context: NoInfer<AgentPluginToolContext>;
70
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
71
+ }) => string) | undefined;
72
+ strict?: boolean;
73
+ inputExamples?: {
74
+ input: NoInfer<{
75
+ cron: string;
76
+ prompt: string;
77
+ recurring?: boolean | undefined;
78
+ }>;
79
+ }[] | undefined;
80
+ id?: never;
81
+ isProviderExecuted?: never;
82
+ args?: never;
83
+ supportsDeferredResults?: never;
84
+ } & {
85
+ type?: undefined | "function";
86
+ } & {
87
+ execute: import("ai").ToolExecuteFunction<{
88
+ cron: string;
89
+ prompt: string;
90
+ recurring?: boolean | undefined;
91
+ }, {
92
+ id: string;
93
+ humanSchedule: string;
94
+ nextRunAt: number;
95
+ timezone: string;
96
+ recurring: boolean;
97
+ warning?: string | undefined;
98
+ }, NoInfer<AgentPluginToolContext>>;
99
+ }) | ({
100
+ title?: string;
101
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
102
+ metadata?: import("@ai-sdk/provider").JSONObject;
103
+ inputSchema: import("ai").FlexibleSchema<{
104
+ cron: string;
105
+ prompt: string;
106
+ recurring?: boolean | undefined;
107
+ }>;
108
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
109
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
110
+ cron: string;
111
+ prompt: string;
112
+ recurring?: boolean | undefined;
113
+ }, NoInfer<AgentPluginToolContext>> | undefined;
114
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
115
+ onInputDelta?: ((options: {
116
+ inputTextDelta: string;
117
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
118
+ onInputAvailable?: ((options: {
119
+ input: {
120
+ cron: string;
121
+ prompt: string;
122
+ recurring?: boolean | undefined;
123
+ };
124
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
125
+ toModelOutput?: ((options: {
126
+ toolCallId: string;
127
+ input: {
128
+ cron: string;
129
+ prompt: string;
130
+ recurring?: boolean | undefined;
131
+ };
132
+ output: NoInfer<{
133
+ id: string;
134
+ humanSchedule: string;
135
+ nextRunAt: number;
136
+ timezone: string;
137
+ recurring: boolean;
138
+ warning?: string | undefined;
139
+ }>;
140
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
141
+ } & {
142
+ outputSchema?: import("ai").FlexibleSchema<{
143
+ id: string;
144
+ humanSchedule: string;
145
+ nextRunAt: number;
146
+ timezone: string;
147
+ recurring: boolean;
148
+ warning?: string | undefined;
149
+ }> | undefined;
150
+ execute: import("ai").ToolExecuteFunction<{
151
+ cron: string;
152
+ prompt: string;
153
+ recurring?: boolean | undefined;
154
+ }, {
155
+ id: string;
156
+ humanSchedule: string;
157
+ nextRunAt: number;
158
+ timezone: string;
159
+ recurring: boolean;
160
+ warning?: string | undefined;
161
+ }, NoInfer<AgentPluginToolContext>>;
162
+ } & {
163
+ description?: string | ((options: {
164
+ context: NoInfer<AgentPluginToolContext>;
165
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
166
+ }) => string) | undefined;
167
+ strict?: boolean;
168
+ inputExamples?: {
169
+ input: NoInfer<{
170
+ cron: string;
171
+ prompt: string;
172
+ recurring?: boolean | undefined;
173
+ }>;
174
+ }[] | undefined;
175
+ id?: never;
176
+ isProviderExecuted?: never;
177
+ args?: never;
178
+ supportsDeferredResults?: never;
179
+ } & {
180
+ type: "dynamic";
181
+ } & {
182
+ execute: import("ai").ToolExecuteFunction<{
183
+ cron: string;
184
+ prompt: string;
185
+ recurring?: boolean | undefined;
186
+ }, {
187
+ id: string;
188
+ humanSchedule: string;
189
+ nextRunAt: number;
190
+ timezone: string;
191
+ recurring: boolean;
192
+ warning?: string | undefined;
193
+ }, NoInfer<AgentPluginToolContext>>;
194
+ }) | ({
195
+ title?: string;
196
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
197
+ metadata?: import("@ai-sdk/provider").JSONObject;
198
+ inputSchema: import("ai").FlexibleSchema<{
199
+ cron: string;
200
+ prompt: string;
201
+ recurring?: boolean | undefined;
202
+ }>;
203
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
204
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
205
+ cron: string;
206
+ prompt: string;
207
+ recurring?: boolean | undefined;
208
+ }, NoInfer<AgentPluginToolContext>> | undefined;
209
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
210
+ onInputDelta?: ((options: {
211
+ inputTextDelta: string;
212
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
213
+ onInputAvailable?: ((options: {
214
+ input: {
215
+ cron: string;
216
+ prompt: string;
217
+ recurring?: boolean | undefined;
218
+ };
219
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
220
+ toModelOutput?: ((options: {
221
+ toolCallId: string;
222
+ input: {
223
+ cron: string;
224
+ prompt: string;
225
+ recurring?: boolean | undefined;
226
+ };
227
+ output: NoInfer<{
228
+ id: string;
229
+ humanSchedule: string;
230
+ nextRunAt: number;
231
+ timezone: string;
232
+ recurring: boolean;
233
+ warning?: string | undefined;
234
+ }>;
235
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
236
+ } & {
237
+ outputSchema?: import("ai").FlexibleSchema<{
238
+ id: string;
239
+ humanSchedule: string;
240
+ nextRunAt: number;
241
+ timezone: string;
242
+ recurring: boolean;
243
+ warning?: string | undefined;
244
+ }> | undefined;
245
+ execute: import("ai").ToolExecuteFunction<{
246
+ cron: string;
247
+ prompt: string;
248
+ recurring?: boolean | undefined;
249
+ }, {
250
+ id: string;
251
+ humanSchedule: string;
252
+ nextRunAt: number;
253
+ timezone: string;
254
+ recurring: boolean;
255
+ warning?: string | undefined;
256
+ }, NoInfer<AgentPluginToolContext>>;
257
+ } & {
258
+ type: "provider";
259
+ id: `${string}.${string}`;
260
+ args: Record<string, unknown>;
261
+ description?: never;
262
+ strict?: never;
263
+ inputExamples?: never;
264
+ } & {
265
+ isProviderExecuted: false;
266
+ supportsDeferredResults?: never;
267
+ } & {
268
+ execute: import("ai").ToolExecuteFunction<{
269
+ cron: string;
270
+ prompt: string;
271
+ recurring?: boolean | undefined;
272
+ }, {
273
+ id: string;
274
+ humanSchedule: string;
275
+ nextRunAt: number;
276
+ timezone: string;
277
+ recurring: boolean;
278
+ warning?: string | undefined;
279
+ }, NoInfer<AgentPluginToolContext>>;
280
+ }) | ({
281
+ title?: string;
282
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
283
+ metadata?: import("@ai-sdk/provider").JSONObject;
284
+ inputSchema: import("ai").FlexibleSchema<{
285
+ cron: string;
286
+ prompt: string;
287
+ recurring?: boolean | undefined;
288
+ }>;
289
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
290
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
291
+ cron: string;
292
+ prompt: string;
293
+ recurring?: boolean | undefined;
294
+ }, NoInfer<AgentPluginToolContext>> | undefined;
295
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
296
+ onInputDelta?: ((options: {
297
+ inputTextDelta: string;
298
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
299
+ onInputAvailable?: ((options: {
300
+ input: {
301
+ cron: string;
302
+ prompt: string;
303
+ recurring?: boolean | undefined;
304
+ };
305
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
306
+ toModelOutput?: ((options: {
307
+ toolCallId: string;
308
+ input: {
309
+ cron: string;
310
+ prompt: string;
311
+ recurring?: boolean | undefined;
312
+ };
313
+ output: NoInfer<{
314
+ id: string;
315
+ humanSchedule: string;
316
+ nextRunAt: number;
317
+ timezone: string;
318
+ recurring: boolean;
319
+ warning?: string | undefined;
320
+ }>;
321
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
322
+ } & {
323
+ outputSchema?: import("ai").FlexibleSchema<{
324
+ id: string;
325
+ humanSchedule: string;
326
+ nextRunAt: number;
327
+ timezone: string;
328
+ recurring: boolean;
329
+ warning?: string | undefined;
330
+ }> | undefined;
331
+ execute: import("ai").ToolExecuteFunction<{
332
+ cron: string;
333
+ prompt: string;
334
+ recurring?: boolean | undefined;
335
+ }, {
336
+ id: string;
337
+ humanSchedule: string;
338
+ nextRunAt: number;
339
+ timezone: string;
340
+ recurring: boolean;
341
+ warning?: string | undefined;
342
+ }, NoInfer<AgentPluginToolContext>>;
343
+ } & {
344
+ type: "provider";
345
+ id: `${string}.${string}`;
346
+ args: Record<string, unknown>;
347
+ description?: never;
348
+ strict?: never;
349
+ inputExamples?: never;
350
+ } & {
351
+ isProviderExecuted: true;
352
+ supportsDeferredResults?: boolean;
353
+ } & {
354
+ execute: import("ai").ToolExecuteFunction<{
355
+ cron: string;
356
+ prompt: string;
357
+ recurring?: boolean | undefined;
358
+ }, {
359
+ id: string;
360
+ humanSchedule: string;
361
+ nextRunAt: number;
362
+ timezone: string;
363
+ recurring: boolean;
364
+ warning?: string | undefined;
365
+ }, NoInfer<AgentPluginToolContext>>;
366
+ });
367
+ CronList: ({
368
+ title?: string;
369
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
370
+ metadata?: import("@ai-sdk/provider").JSONObject;
371
+ inputSchema: import("ai").FlexibleSchema<Record<string, never>>;
372
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
373
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<Record<string, never>, NoInfer<AgentPluginToolContext>> | undefined;
374
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
375
+ onInputDelta?: ((options: {
376
+ inputTextDelta: string;
377
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
378
+ onInputAvailable?: ((options: {
379
+ input: Record<string, never>;
380
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
381
+ toModelOutput?: ((options: {
382
+ toolCallId: string;
383
+ input: Record<string, never>;
384
+ output: NoInfer<{
385
+ jobs: {
386
+ id: string;
387
+ cron: string;
388
+ humanSchedule: string;
389
+ nextRunAt: number;
390
+ timezone: string;
391
+ prompt: string;
392
+ recurring?: boolean | undefined;
393
+ }[];
394
+ }>;
395
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
396
+ } & {
397
+ outputSchema?: import("ai").FlexibleSchema<{
398
+ jobs: {
399
+ id: string;
400
+ cron: string;
401
+ humanSchedule: string;
402
+ nextRunAt: number;
403
+ timezone: string;
404
+ prompt: string;
405
+ recurring?: boolean | undefined;
406
+ }[];
407
+ }> | undefined;
408
+ execute: import("ai").ToolExecuteFunction<Record<string, never>, {
409
+ jobs: {
410
+ id: string;
411
+ cron: string;
412
+ humanSchedule: string;
413
+ nextRunAt: number;
414
+ timezone: string;
415
+ prompt: string;
416
+ recurring?: boolean | undefined;
417
+ }[];
418
+ }, NoInfer<AgentPluginToolContext>>;
419
+ } & {
420
+ description?: string | ((options: {
421
+ context: NoInfer<AgentPluginToolContext>;
422
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
423
+ }) => string) | undefined;
424
+ strict?: boolean;
425
+ inputExamples?: {
426
+ input: NoInfer<Record<string, never>>;
427
+ }[] | undefined;
428
+ id?: never;
429
+ isProviderExecuted?: never;
430
+ args?: never;
431
+ supportsDeferredResults?: never;
432
+ } & {
433
+ type?: undefined | "function";
434
+ } & {
435
+ execute: import("ai").ToolExecuteFunction<Record<string, never>, {
436
+ jobs: {
437
+ id: string;
438
+ cron: string;
439
+ humanSchedule: string;
440
+ nextRunAt: number;
441
+ timezone: string;
442
+ prompt: string;
443
+ recurring?: boolean | undefined;
444
+ }[];
445
+ }, NoInfer<AgentPluginToolContext>>;
446
+ }) | ({
447
+ title?: string;
448
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
449
+ metadata?: import("@ai-sdk/provider").JSONObject;
450
+ inputSchema: import("ai").FlexibleSchema<Record<string, never>>;
451
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
452
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<Record<string, never>, NoInfer<AgentPluginToolContext>> | undefined;
453
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
454
+ onInputDelta?: ((options: {
455
+ inputTextDelta: string;
456
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
457
+ onInputAvailable?: ((options: {
458
+ input: Record<string, never>;
459
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
460
+ toModelOutput?: ((options: {
461
+ toolCallId: string;
462
+ input: Record<string, never>;
463
+ output: NoInfer<{
464
+ jobs: {
465
+ id: string;
466
+ cron: string;
467
+ humanSchedule: string;
468
+ nextRunAt: number;
469
+ timezone: string;
470
+ prompt: string;
471
+ recurring?: boolean | undefined;
472
+ }[];
473
+ }>;
474
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
475
+ } & {
476
+ outputSchema?: import("ai").FlexibleSchema<{
477
+ jobs: {
478
+ id: string;
479
+ cron: string;
480
+ humanSchedule: string;
481
+ nextRunAt: number;
482
+ timezone: string;
483
+ prompt: string;
484
+ recurring?: boolean | undefined;
485
+ }[];
486
+ }> | undefined;
487
+ execute: import("ai").ToolExecuteFunction<Record<string, never>, {
488
+ jobs: {
489
+ id: string;
490
+ cron: string;
491
+ humanSchedule: string;
492
+ nextRunAt: number;
493
+ timezone: string;
494
+ prompt: string;
495
+ recurring?: boolean | undefined;
496
+ }[];
497
+ }, NoInfer<AgentPluginToolContext>>;
498
+ } & {
499
+ description?: string | ((options: {
500
+ context: NoInfer<AgentPluginToolContext>;
501
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
502
+ }) => string) | undefined;
503
+ strict?: boolean;
504
+ inputExamples?: {
505
+ input: NoInfer<Record<string, never>>;
506
+ }[] | undefined;
507
+ id?: never;
508
+ isProviderExecuted?: never;
509
+ args?: never;
510
+ supportsDeferredResults?: never;
511
+ } & {
512
+ type: "dynamic";
513
+ } & {
514
+ execute: import("ai").ToolExecuteFunction<Record<string, never>, {
515
+ jobs: {
516
+ id: string;
517
+ cron: string;
518
+ humanSchedule: string;
519
+ nextRunAt: number;
520
+ timezone: string;
521
+ prompt: string;
522
+ recurring?: boolean | undefined;
523
+ }[];
524
+ }, NoInfer<AgentPluginToolContext>>;
525
+ }) | ({
526
+ title?: string;
527
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
528
+ metadata?: import("@ai-sdk/provider").JSONObject;
529
+ inputSchema: import("ai").FlexibleSchema<Record<string, never>>;
530
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
531
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<Record<string, never>, NoInfer<AgentPluginToolContext>> | undefined;
532
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
533
+ onInputDelta?: ((options: {
534
+ inputTextDelta: string;
535
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
536
+ onInputAvailable?: ((options: {
537
+ input: Record<string, never>;
538
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
539
+ toModelOutput?: ((options: {
540
+ toolCallId: string;
541
+ input: Record<string, never>;
542
+ output: NoInfer<{
543
+ jobs: {
544
+ id: string;
545
+ cron: string;
546
+ humanSchedule: string;
547
+ nextRunAt: number;
548
+ timezone: string;
549
+ prompt: string;
550
+ recurring?: boolean | undefined;
551
+ }[];
552
+ }>;
553
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
554
+ } & {
555
+ outputSchema?: import("ai").FlexibleSchema<{
556
+ jobs: {
557
+ id: string;
558
+ cron: string;
559
+ humanSchedule: string;
560
+ nextRunAt: number;
561
+ timezone: string;
562
+ prompt: string;
563
+ recurring?: boolean | undefined;
564
+ }[];
565
+ }> | undefined;
566
+ execute: import("ai").ToolExecuteFunction<Record<string, never>, {
567
+ jobs: {
568
+ id: string;
569
+ cron: string;
570
+ humanSchedule: string;
571
+ nextRunAt: number;
572
+ timezone: string;
573
+ prompt: string;
574
+ recurring?: boolean | undefined;
575
+ }[];
576
+ }, NoInfer<AgentPluginToolContext>>;
577
+ } & {
578
+ type: "provider";
579
+ id: `${string}.${string}`;
580
+ args: Record<string, unknown>;
581
+ description?: never;
582
+ strict?: never;
583
+ inputExamples?: never;
584
+ } & {
585
+ isProviderExecuted: false;
586
+ supportsDeferredResults?: never;
587
+ } & {
588
+ execute: import("ai").ToolExecuteFunction<Record<string, never>, {
589
+ jobs: {
590
+ id: string;
591
+ cron: string;
592
+ humanSchedule: string;
593
+ nextRunAt: number;
594
+ timezone: string;
595
+ prompt: string;
596
+ recurring?: boolean | undefined;
597
+ }[];
598
+ }, NoInfer<AgentPluginToolContext>>;
599
+ }) | ({
600
+ title?: string;
601
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
602
+ metadata?: import("@ai-sdk/provider").JSONObject;
603
+ inputSchema: import("ai").FlexibleSchema<Record<string, never>>;
604
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
605
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<Record<string, never>, NoInfer<AgentPluginToolContext>> | undefined;
606
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
607
+ onInputDelta?: ((options: {
608
+ inputTextDelta: string;
609
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
610
+ onInputAvailable?: ((options: {
611
+ input: Record<string, never>;
612
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
613
+ toModelOutput?: ((options: {
614
+ toolCallId: string;
615
+ input: Record<string, never>;
616
+ output: NoInfer<{
617
+ jobs: {
618
+ id: string;
619
+ cron: string;
620
+ humanSchedule: string;
621
+ nextRunAt: number;
622
+ timezone: string;
623
+ prompt: string;
624
+ recurring?: boolean | undefined;
625
+ }[];
626
+ }>;
627
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
628
+ } & {
629
+ outputSchema?: import("ai").FlexibleSchema<{
630
+ jobs: {
631
+ id: string;
632
+ cron: string;
633
+ humanSchedule: string;
634
+ nextRunAt: number;
635
+ timezone: string;
636
+ prompt: string;
637
+ recurring?: boolean | undefined;
638
+ }[];
639
+ }> | undefined;
640
+ execute: import("ai").ToolExecuteFunction<Record<string, never>, {
641
+ jobs: {
642
+ id: string;
643
+ cron: string;
644
+ humanSchedule: string;
645
+ nextRunAt: number;
646
+ timezone: string;
647
+ prompt: string;
648
+ recurring?: boolean | undefined;
649
+ }[];
650
+ }, NoInfer<AgentPluginToolContext>>;
651
+ } & {
652
+ type: "provider";
653
+ id: `${string}.${string}`;
654
+ args: Record<string, unknown>;
655
+ description?: never;
656
+ strict?: never;
657
+ inputExamples?: never;
658
+ } & {
659
+ isProviderExecuted: true;
660
+ supportsDeferredResults?: boolean;
661
+ } & {
662
+ execute: import("ai").ToolExecuteFunction<Record<string, never>, {
663
+ jobs: {
664
+ id: string;
665
+ cron: string;
666
+ humanSchedule: string;
667
+ nextRunAt: number;
668
+ timezone: string;
669
+ prompt: string;
670
+ recurring?: boolean | undefined;
671
+ }[];
672
+ }, NoInfer<AgentPluginToolContext>>;
673
+ });
674
+ CronDelete: ({
675
+ title?: string;
676
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
677
+ metadata?: import("@ai-sdk/provider").JSONObject;
678
+ inputSchema: import("ai").FlexibleSchema<{
679
+ id: string;
680
+ }>;
681
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
682
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
683
+ id: string;
684
+ }, NoInfer<AgentPluginToolContext>> | undefined;
685
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
686
+ onInputDelta?: ((options: {
687
+ inputTextDelta: string;
688
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
689
+ onInputAvailable?: ((options: {
690
+ input: {
691
+ id: string;
692
+ };
693
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
694
+ toModelOutput?: ((options: {
695
+ toolCallId: string;
696
+ input: {
697
+ id: string;
698
+ };
699
+ output: NoInfer<{
700
+ id: string;
701
+ }>;
702
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
703
+ } & {
704
+ outputSchema?: import("ai").FlexibleSchema<{
705
+ id: string;
706
+ }> | undefined;
707
+ execute: import("ai").ToolExecuteFunction<{
708
+ id: string;
709
+ }, {
710
+ id: string;
711
+ }, NoInfer<AgentPluginToolContext>>;
712
+ } & {
713
+ description?: string | ((options: {
714
+ context: NoInfer<AgentPluginToolContext>;
715
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
716
+ }) => string) | undefined;
717
+ strict?: boolean;
718
+ inputExamples?: {
719
+ input: NoInfer<{
720
+ id: string;
721
+ }>;
722
+ }[] | undefined;
723
+ id?: never;
724
+ isProviderExecuted?: never;
725
+ args?: never;
726
+ supportsDeferredResults?: never;
727
+ } & {
728
+ type?: undefined | "function";
729
+ } & {
730
+ execute: import("ai").ToolExecuteFunction<{
731
+ id: string;
732
+ }, {
733
+ id: string;
734
+ }, NoInfer<AgentPluginToolContext>>;
735
+ }) | ({
736
+ title?: string;
737
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
738
+ metadata?: import("@ai-sdk/provider").JSONObject;
739
+ inputSchema: import("ai").FlexibleSchema<{
740
+ id: string;
741
+ }>;
742
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
743
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
744
+ id: string;
745
+ }, NoInfer<AgentPluginToolContext>> | undefined;
746
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
747
+ onInputDelta?: ((options: {
748
+ inputTextDelta: string;
749
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
750
+ onInputAvailable?: ((options: {
751
+ input: {
752
+ id: string;
753
+ };
754
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
755
+ toModelOutput?: ((options: {
756
+ toolCallId: string;
757
+ input: {
758
+ id: string;
759
+ };
760
+ output: NoInfer<{
761
+ id: string;
762
+ }>;
763
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
764
+ } & {
765
+ outputSchema?: import("ai").FlexibleSchema<{
766
+ id: string;
767
+ }> | undefined;
768
+ execute: import("ai").ToolExecuteFunction<{
769
+ id: string;
770
+ }, {
771
+ id: string;
772
+ }, NoInfer<AgentPluginToolContext>>;
773
+ } & {
774
+ description?: string | ((options: {
775
+ context: NoInfer<AgentPluginToolContext>;
776
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
777
+ }) => string) | undefined;
778
+ strict?: boolean;
779
+ inputExamples?: {
780
+ input: NoInfer<{
781
+ id: string;
782
+ }>;
783
+ }[] | undefined;
784
+ id?: never;
785
+ isProviderExecuted?: never;
786
+ args?: never;
787
+ supportsDeferredResults?: never;
788
+ } & {
789
+ type: "dynamic";
790
+ } & {
791
+ execute: import("ai").ToolExecuteFunction<{
792
+ id: string;
793
+ }, {
794
+ id: string;
795
+ }, NoInfer<AgentPluginToolContext>>;
796
+ }) | ({
797
+ title?: string;
798
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
799
+ metadata?: import("@ai-sdk/provider").JSONObject;
800
+ inputSchema: import("ai").FlexibleSchema<{
801
+ id: string;
802
+ }>;
803
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
804
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
805
+ id: string;
806
+ }, NoInfer<AgentPluginToolContext>> | undefined;
807
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
808
+ onInputDelta?: ((options: {
809
+ inputTextDelta: string;
810
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
811
+ onInputAvailable?: ((options: {
812
+ input: {
813
+ id: string;
814
+ };
815
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
816
+ toModelOutput?: ((options: {
817
+ toolCallId: string;
818
+ input: {
819
+ id: string;
820
+ };
821
+ output: NoInfer<{
822
+ id: string;
823
+ }>;
824
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
825
+ } & {
826
+ outputSchema?: import("ai").FlexibleSchema<{
827
+ id: string;
828
+ }> | undefined;
829
+ execute: import("ai").ToolExecuteFunction<{
830
+ id: string;
831
+ }, {
832
+ id: string;
833
+ }, NoInfer<AgentPluginToolContext>>;
834
+ } & {
835
+ type: "provider";
836
+ id: `${string}.${string}`;
837
+ args: Record<string, unknown>;
838
+ description?: never;
839
+ strict?: never;
840
+ inputExamples?: never;
841
+ } & {
842
+ isProviderExecuted: false;
843
+ supportsDeferredResults?: never;
844
+ } & {
845
+ execute: import("ai").ToolExecuteFunction<{
846
+ id: string;
847
+ }, {
848
+ id: string;
849
+ }, NoInfer<AgentPluginToolContext>>;
850
+ }) | ({
851
+ title?: string;
852
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
853
+ metadata?: import("@ai-sdk/provider").JSONObject;
854
+ inputSchema: import("ai").FlexibleSchema<{
855
+ id: string;
856
+ }>;
857
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
858
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
859
+ id: string;
860
+ }, NoInfer<AgentPluginToolContext>> | undefined;
861
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
862
+ onInputDelta?: ((options: {
863
+ inputTextDelta: string;
864
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
865
+ onInputAvailable?: ((options: {
866
+ input: {
867
+ id: string;
868
+ };
869
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
870
+ toModelOutput?: ((options: {
871
+ toolCallId: string;
872
+ input: {
873
+ id: string;
874
+ };
875
+ output: NoInfer<{
876
+ id: string;
877
+ }>;
878
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
879
+ } & {
880
+ outputSchema?: import("ai").FlexibleSchema<{
881
+ id: string;
882
+ }> | undefined;
883
+ execute: import("ai").ToolExecuteFunction<{
884
+ id: string;
885
+ }, {
886
+ id: string;
887
+ }, NoInfer<AgentPluginToolContext>>;
888
+ } & {
889
+ type: "provider";
890
+ id: `${string}.${string}`;
891
+ args: Record<string, unknown>;
892
+ description?: never;
893
+ strict?: never;
894
+ inputExamples?: never;
895
+ } & {
896
+ isProviderExecuted: true;
897
+ supportsDeferredResults?: boolean;
898
+ } & {
899
+ execute: import("ai").ToolExecuteFunction<{
900
+ id: string;
901
+ }, {
902
+ id: string;
903
+ }, NoInfer<AgentPluginToolContext>>;
904
+ });
905
+ ScheduleWakeup: ({
906
+ title?: string;
907
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
908
+ metadata?: import("@ai-sdk/provider").JSONObject;
909
+ inputSchema: import("ai").FlexibleSchema<{
910
+ stop: true;
911
+ } | {
912
+ delaySeconds: number;
913
+ reason: string;
914
+ prompt: string;
915
+ }>;
916
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
917
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
918
+ stop: true;
919
+ } | {
920
+ delaySeconds: number;
921
+ reason: string;
922
+ prompt: string;
923
+ }, NoInfer<AgentPluginToolContext>> | undefined;
924
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
925
+ onInputDelta?: ((options: {
926
+ inputTextDelta: string;
927
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
928
+ onInputAvailable?: ((options: {
929
+ input: {
930
+ stop: true;
931
+ } | {
932
+ delaySeconds: number;
933
+ reason: string;
934
+ prompt: string;
935
+ };
936
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
937
+ toModelOutput?: ((options: {
938
+ toolCallId: string;
939
+ input: {
940
+ stop: true;
941
+ } | {
942
+ delaySeconds: number;
943
+ reason: string;
944
+ prompt: string;
945
+ };
946
+ output: NoInfer<{
947
+ scheduledFor: number;
948
+ clampedDelaySeconds: number;
949
+ wasClamped: boolean;
950
+ stopped?: boolean | undefined;
951
+ cancelledWakeups?: number | undefined;
952
+ }>;
953
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
954
+ } & {
955
+ outputSchema?: import("ai").FlexibleSchema<{
956
+ scheduledFor: number;
957
+ clampedDelaySeconds: number;
958
+ wasClamped: boolean;
959
+ stopped?: boolean | undefined;
960
+ cancelledWakeups?: number | undefined;
961
+ }> | undefined;
962
+ execute: import("ai").ToolExecuteFunction<{
963
+ stop: true;
964
+ } | {
965
+ delaySeconds: number;
966
+ reason: string;
967
+ prompt: string;
968
+ }, {
969
+ scheduledFor: number;
970
+ clampedDelaySeconds: number;
971
+ wasClamped: boolean;
972
+ stopped?: boolean | undefined;
973
+ cancelledWakeups?: number | undefined;
974
+ }, NoInfer<AgentPluginToolContext>>;
975
+ } & {
976
+ description?: string | ((options: {
977
+ context: NoInfer<AgentPluginToolContext>;
978
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
979
+ }) => string) | undefined;
980
+ strict?: boolean;
981
+ inputExamples?: {
982
+ input: NoInfer<{
983
+ stop: true;
984
+ } | {
985
+ delaySeconds: number;
986
+ reason: string;
987
+ prompt: string;
988
+ }>;
989
+ }[] | undefined;
990
+ id?: never;
991
+ isProviderExecuted?: never;
992
+ args?: never;
993
+ supportsDeferredResults?: never;
994
+ } & {
995
+ type?: undefined | "function";
996
+ } & {
997
+ execute: import("ai").ToolExecuteFunction<{
998
+ stop: true;
999
+ } | {
1000
+ delaySeconds: number;
1001
+ reason: string;
1002
+ prompt: string;
1003
+ }, {
1004
+ scheduledFor: number;
1005
+ clampedDelaySeconds: number;
1006
+ wasClamped: boolean;
1007
+ stopped?: boolean | undefined;
1008
+ cancelledWakeups?: number | undefined;
1009
+ }, NoInfer<AgentPluginToolContext>>;
1010
+ }) | ({
1011
+ title?: string;
1012
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1013
+ metadata?: import("@ai-sdk/provider").JSONObject;
1014
+ inputSchema: import("ai").FlexibleSchema<{
1015
+ stop: true;
1016
+ } | {
1017
+ delaySeconds: number;
1018
+ reason: string;
1019
+ prompt: string;
1020
+ }>;
1021
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
1022
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1023
+ stop: true;
1024
+ } | {
1025
+ delaySeconds: number;
1026
+ reason: string;
1027
+ prompt: string;
1028
+ }, NoInfer<AgentPluginToolContext>> | undefined;
1029
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
1030
+ onInputDelta?: ((options: {
1031
+ inputTextDelta: string;
1032
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
1033
+ onInputAvailable?: ((options: {
1034
+ input: {
1035
+ stop: true;
1036
+ } | {
1037
+ delaySeconds: number;
1038
+ reason: string;
1039
+ prompt: string;
1040
+ };
1041
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
1042
+ toModelOutput?: ((options: {
1043
+ toolCallId: string;
1044
+ input: {
1045
+ stop: true;
1046
+ } | {
1047
+ delaySeconds: number;
1048
+ reason: string;
1049
+ prompt: string;
1050
+ };
1051
+ output: NoInfer<{
1052
+ scheduledFor: number;
1053
+ clampedDelaySeconds: number;
1054
+ wasClamped: boolean;
1055
+ stopped?: boolean | undefined;
1056
+ cancelledWakeups?: number | undefined;
1057
+ }>;
1058
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1059
+ } & {
1060
+ outputSchema?: import("ai").FlexibleSchema<{
1061
+ scheduledFor: number;
1062
+ clampedDelaySeconds: number;
1063
+ wasClamped: boolean;
1064
+ stopped?: boolean | undefined;
1065
+ cancelledWakeups?: number | undefined;
1066
+ }> | undefined;
1067
+ execute: import("ai").ToolExecuteFunction<{
1068
+ stop: true;
1069
+ } | {
1070
+ delaySeconds: number;
1071
+ reason: string;
1072
+ prompt: string;
1073
+ }, {
1074
+ scheduledFor: number;
1075
+ clampedDelaySeconds: number;
1076
+ wasClamped: boolean;
1077
+ stopped?: boolean | undefined;
1078
+ cancelledWakeups?: number | undefined;
1079
+ }, NoInfer<AgentPluginToolContext>>;
1080
+ } & {
1081
+ description?: string | ((options: {
1082
+ context: NoInfer<AgentPluginToolContext>;
1083
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1084
+ }) => string) | undefined;
1085
+ strict?: boolean;
1086
+ inputExamples?: {
1087
+ input: NoInfer<{
1088
+ stop: true;
1089
+ } | {
1090
+ delaySeconds: number;
1091
+ reason: string;
1092
+ prompt: string;
1093
+ }>;
1094
+ }[] | undefined;
1095
+ id?: never;
1096
+ isProviderExecuted?: never;
1097
+ args?: never;
1098
+ supportsDeferredResults?: never;
1099
+ } & {
1100
+ type: "dynamic";
1101
+ } & {
1102
+ execute: import("ai").ToolExecuteFunction<{
1103
+ stop: true;
1104
+ } | {
1105
+ delaySeconds: number;
1106
+ reason: string;
1107
+ prompt: string;
1108
+ }, {
1109
+ scheduledFor: number;
1110
+ clampedDelaySeconds: number;
1111
+ wasClamped: boolean;
1112
+ stopped?: boolean | undefined;
1113
+ cancelledWakeups?: number | undefined;
1114
+ }, NoInfer<AgentPluginToolContext>>;
1115
+ }) | ({
1116
+ title?: string;
1117
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1118
+ metadata?: import("@ai-sdk/provider").JSONObject;
1119
+ inputSchema: import("ai").FlexibleSchema<{
1120
+ stop: true;
1121
+ } | {
1122
+ delaySeconds: number;
1123
+ reason: string;
1124
+ prompt: string;
1125
+ }>;
1126
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
1127
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1128
+ stop: true;
1129
+ } | {
1130
+ delaySeconds: number;
1131
+ reason: string;
1132
+ prompt: string;
1133
+ }, NoInfer<AgentPluginToolContext>> | undefined;
1134
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
1135
+ onInputDelta?: ((options: {
1136
+ inputTextDelta: string;
1137
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
1138
+ onInputAvailable?: ((options: {
1139
+ input: {
1140
+ stop: true;
1141
+ } | {
1142
+ delaySeconds: number;
1143
+ reason: string;
1144
+ prompt: string;
1145
+ };
1146
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
1147
+ toModelOutput?: ((options: {
1148
+ toolCallId: string;
1149
+ input: {
1150
+ stop: true;
1151
+ } | {
1152
+ delaySeconds: number;
1153
+ reason: string;
1154
+ prompt: string;
1155
+ };
1156
+ output: NoInfer<{
1157
+ scheduledFor: number;
1158
+ clampedDelaySeconds: number;
1159
+ wasClamped: boolean;
1160
+ stopped?: boolean | undefined;
1161
+ cancelledWakeups?: number | undefined;
1162
+ }>;
1163
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1164
+ } & {
1165
+ outputSchema?: import("ai").FlexibleSchema<{
1166
+ scheduledFor: number;
1167
+ clampedDelaySeconds: number;
1168
+ wasClamped: boolean;
1169
+ stopped?: boolean | undefined;
1170
+ cancelledWakeups?: number | undefined;
1171
+ }> | undefined;
1172
+ execute: import("ai").ToolExecuteFunction<{
1173
+ stop: true;
1174
+ } | {
1175
+ delaySeconds: number;
1176
+ reason: string;
1177
+ prompt: string;
1178
+ }, {
1179
+ scheduledFor: number;
1180
+ clampedDelaySeconds: number;
1181
+ wasClamped: boolean;
1182
+ stopped?: boolean | undefined;
1183
+ cancelledWakeups?: number | undefined;
1184
+ }, NoInfer<AgentPluginToolContext>>;
1185
+ } & {
1186
+ type: "provider";
1187
+ id: `${string}.${string}`;
1188
+ args: Record<string, unknown>;
1189
+ description?: never;
1190
+ strict?: never;
1191
+ inputExamples?: never;
1192
+ } & {
1193
+ isProviderExecuted: false;
1194
+ supportsDeferredResults?: never;
1195
+ } & {
1196
+ execute: import("ai").ToolExecuteFunction<{
1197
+ stop: true;
1198
+ } | {
1199
+ delaySeconds: number;
1200
+ reason: string;
1201
+ prompt: string;
1202
+ }, {
1203
+ scheduledFor: number;
1204
+ clampedDelaySeconds: number;
1205
+ wasClamped: boolean;
1206
+ stopped?: boolean | undefined;
1207
+ cancelledWakeups?: number | undefined;
1208
+ }, NoInfer<AgentPluginToolContext>>;
1209
+ }) | ({
1210
+ title?: string;
1211
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1212
+ metadata?: import("@ai-sdk/provider").JSONObject;
1213
+ inputSchema: import("ai").FlexibleSchema<{
1214
+ stop: true;
1215
+ } | {
1216
+ delaySeconds: number;
1217
+ reason: string;
1218
+ prompt: string;
1219
+ }>;
1220
+ contextSchema?: import("ai").FlexibleSchema<AgentPluginToolContext> | undefined;
1221
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1222
+ stop: true;
1223
+ } | {
1224
+ delaySeconds: number;
1225
+ reason: string;
1226
+ prompt: string;
1227
+ }, NoInfer<AgentPluginToolContext>> | undefined;
1228
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
1229
+ onInputDelta?: ((options: {
1230
+ inputTextDelta: string;
1231
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
1232
+ onInputAvailable?: ((options: {
1233
+ input: {
1234
+ stop: true;
1235
+ } | {
1236
+ delaySeconds: number;
1237
+ reason: string;
1238
+ prompt: string;
1239
+ };
1240
+ } & import("ai").ToolExecutionOptions<NoInfer<AgentPluginToolContext>>) => void | PromiseLike<void>) | undefined;
1241
+ toModelOutput?: ((options: {
1242
+ toolCallId: string;
1243
+ input: {
1244
+ stop: true;
1245
+ } | {
1246
+ delaySeconds: number;
1247
+ reason: string;
1248
+ prompt: string;
1249
+ };
1250
+ output: NoInfer<{
1251
+ scheduledFor: number;
1252
+ clampedDelaySeconds: number;
1253
+ wasClamped: boolean;
1254
+ stopped?: boolean | undefined;
1255
+ cancelledWakeups?: number | undefined;
1256
+ }>;
1257
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1258
+ } & {
1259
+ outputSchema?: import("ai").FlexibleSchema<{
1260
+ scheduledFor: number;
1261
+ clampedDelaySeconds: number;
1262
+ wasClamped: boolean;
1263
+ stopped?: boolean | undefined;
1264
+ cancelledWakeups?: number | undefined;
1265
+ }> | undefined;
1266
+ execute: import("ai").ToolExecuteFunction<{
1267
+ stop: true;
1268
+ } | {
1269
+ delaySeconds: number;
1270
+ reason: string;
1271
+ prompt: string;
1272
+ }, {
1273
+ scheduledFor: number;
1274
+ clampedDelaySeconds: number;
1275
+ wasClamped: boolean;
1276
+ stopped?: boolean | undefined;
1277
+ cancelledWakeups?: number | undefined;
1278
+ }, NoInfer<AgentPluginToolContext>>;
1279
+ } & {
1280
+ type: "provider";
1281
+ id: `${string}.${string}`;
1282
+ args: Record<string, unknown>;
1283
+ description?: never;
1284
+ strict?: never;
1285
+ inputExamples?: never;
1286
+ } & {
1287
+ isProviderExecuted: true;
1288
+ supportsDeferredResults?: boolean;
1289
+ } & {
1290
+ execute: import("ai").ToolExecuteFunction<{
1291
+ stop: true;
1292
+ } | {
1293
+ delaySeconds: number;
1294
+ reason: string;
1295
+ prompt: string;
1296
+ }, {
1297
+ scheduledFor: number;
1298
+ clampedDelaySeconds: number;
1299
+ wasClamped: boolean;
1300
+ stopped?: boolean | undefined;
1301
+ cancelledWakeups?: number | undefined;
1302
+ }, NoInfer<AgentPluginToolContext>>;
1303
+ });
1304
+ };
1305
+ //# sourceMappingURL=tools.d.ts.map