@specstream/ai-sdk 0.3.0 → 0.4.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/dist/tools.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SpecStreamClient, type FindListResult, type ListResults, type Monitor, type MonitorListResult } from "./client.js";
1
+ import { SpecStreamClient, type FindListResult, type ListResults, type Monitor, type MonitorListResult, type BrowserSessionView, type BrowserStepView } from "./client.js";
2
2
  export type SpecStreamToolsOptions = {
3
3
  /** The most one list may cost, in US dollars. Set in code; the model can't see it or raise it. Above it, nothing runs. */
4
4
  maxPriceUsd: number;
@@ -31,11 +31,13 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
31
31
  inputSchema: import("ai").FlexibleSchema<{
32
32
  q: string;
33
33
  passages?: boolean | undefined;
34
+ speed?: "default" | "fast" | undefined;
34
35
  }>;
35
36
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
36
37
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
37
38
  q: string;
38
39
  passages?: boolean | undefined;
40
+ speed?: "default" | "fast" | undefined;
39
41
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
40
42
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
41
43
  onInputDelta?: ((options: {
@@ -45,6 +47,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
45
47
  input: {
46
48
  q: string;
47
49
  passages?: boolean | undefined;
50
+ speed?: "default" | "fast" | undefined;
48
51
  };
49
52
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
50
53
  toModelOutput?: ((options: {
@@ -52,6 +55,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
52
55
  input: {
53
56
  q: string;
54
57
  passages?: boolean | undefined;
58
+ speed?: "default" | "fast" | undefined;
55
59
  };
56
60
  output: NoInfer<Record<string, unknown>>;
57
61
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
@@ -60,6 +64,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
60
64
  execute: import("ai").ToolExecuteFunction<{
61
65
  q: string;
62
66
  passages?: boolean | undefined;
67
+ speed?: "default" | "fast" | undefined;
63
68
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
64
69
  } & {
65
70
  description?: string | ((options: {
@@ -71,6 +76,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
71
76
  input: NoInfer<{
72
77
  q: string;
73
78
  passages?: boolean | undefined;
79
+ speed?: "default" | "fast" | undefined;
74
80
  }>;
75
81
  }[] | undefined;
76
82
  id?: never;
@@ -83,6 +89,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
83
89
  execute: import("ai").ToolExecuteFunction<{
84
90
  q: string;
85
91
  passages?: boolean | undefined;
92
+ speed?: "default" | "fast" | undefined;
86
93
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
87
94
  }) | ({
88
95
  deferLoading?: boolean;
@@ -92,11 +99,13 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
92
99
  inputSchema: import("ai").FlexibleSchema<{
93
100
  q: string;
94
101
  passages?: boolean | undefined;
102
+ speed?: "default" | "fast" | undefined;
95
103
  }>;
96
104
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
97
105
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
98
106
  q: string;
99
107
  passages?: boolean | undefined;
108
+ speed?: "default" | "fast" | undefined;
100
109
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
101
110
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
102
111
  onInputDelta?: ((options: {
@@ -106,6 +115,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
106
115
  input: {
107
116
  q: string;
108
117
  passages?: boolean | undefined;
118
+ speed?: "default" | "fast" | undefined;
109
119
  };
110
120
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
111
121
  toModelOutput?: ((options: {
@@ -113,6 +123,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
113
123
  input: {
114
124
  q: string;
115
125
  passages?: boolean | undefined;
126
+ speed?: "default" | "fast" | undefined;
116
127
  };
117
128
  output: NoInfer<Record<string, unknown>>;
118
129
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
@@ -121,6 +132,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
121
132
  execute: import("ai").ToolExecuteFunction<{
122
133
  q: string;
123
134
  passages?: boolean | undefined;
135
+ speed?: "default" | "fast" | undefined;
124
136
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
125
137
  } & {
126
138
  description?: string | ((options: {
@@ -132,6 +144,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
132
144
  input: NoInfer<{
133
145
  q: string;
134
146
  passages?: boolean | undefined;
147
+ speed?: "default" | "fast" | undefined;
135
148
  }>;
136
149
  }[] | undefined;
137
150
  id?: never;
@@ -144,6 +157,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
144
157
  execute: import("ai").ToolExecuteFunction<{
145
158
  q: string;
146
159
  passages?: boolean | undefined;
160
+ speed?: "default" | "fast" | undefined;
147
161
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
148
162
  }) | ({
149
163
  deferLoading?: boolean;
@@ -153,11 +167,13 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
153
167
  inputSchema: import("ai").FlexibleSchema<{
154
168
  q: string;
155
169
  passages?: boolean | undefined;
170
+ speed?: "default" | "fast" | undefined;
156
171
  }>;
157
172
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
158
173
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
159
174
  q: string;
160
175
  passages?: boolean | undefined;
176
+ speed?: "default" | "fast" | undefined;
161
177
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
162
178
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
163
179
  onInputDelta?: ((options: {
@@ -167,6 +183,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
167
183
  input: {
168
184
  q: string;
169
185
  passages?: boolean | undefined;
186
+ speed?: "default" | "fast" | undefined;
170
187
  };
171
188
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
172
189
  toModelOutput?: ((options: {
@@ -174,6 +191,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
174
191
  input: {
175
192
  q: string;
176
193
  passages?: boolean | undefined;
194
+ speed?: "default" | "fast" | undefined;
177
195
  };
178
196
  output: NoInfer<Record<string, unknown>>;
179
197
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
@@ -182,6 +200,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
182
200
  execute: import("ai").ToolExecuteFunction<{
183
201
  q: string;
184
202
  passages?: boolean | undefined;
203
+ speed?: "default" | "fast" | undefined;
185
204
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
186
205
  } & {
187
206
  type: "provider";
@@ -197,6 +216,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
197
216
  execute: import("ai").ToolExecuteFunction<{
198
217
  q: string;
199
218
  passages?: boolean | undefined;
219
+ speed?: "default" | "fast" | undefined;
200
220
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
201
221
  }) | ({
202
222
  deferLoading?: boolean;
@@ -206,11 +226,13 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
206
226
  inputSchema: import("ai").FlexibleSchema<{
207
227
  q: string;
208
228
  passages?: boolean | undefined;
229
+ speed?: "default" | "fast" | undefined;
209
230
  }>;
210
231
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
211
232
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
212
233
  q: string;
213
234
  passages?: boolean | undefined;
235
+ speed?: "default" | "fast" | undefined;
214
236
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
215
237
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
216
238
  onInputDelta?: ((options: {
@@ -220,6 +242,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
220
242
  input: {
221
243
  q: string;
222
244
  passages?: boolean | undefined;
245
+ speed?: "default" | "fast" | undefined;
223
246
  };
224
247
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
225
248
  toModelOutput?: ((options: {
@@ -227,6 +250,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
227
250
  input: {
228
251
  q: string;
229
252
  passages?: boolean | undefined;
253
+ speed?: "default" | "fast" | undefined;
230
254
  };
231
255
  output: NoInfer<Record<string, unknown>>;
232
256
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
@@ -235,6 +259,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
235
259
  execute: import("ai").ToolExecuteFunction<{
236
260
  q: string;
237
261
  passages?: boolean | undefined;
262
+ speed?: "default" | "fast" | undefined;
238
263
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
239
264
  } & {
240
265
  type: "provider";
@@ -250,6 +275,7 @@ declare function baseTools(client: SpecStreamClient, options: SpecStreamToolsOpt
250
275
  execute: import("ai").ToolExecuteFunction<{
251
276
  q: string;
252
277
  passages?: boolean | undefined;
278
+ speed?: "default" | "fast" | undefined;
253
279
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
254
280
  });
255
281
  specstream_extract_pages: ({
@@ -1318,4 +1344,1903 @@ export declare function specstreamTools(options: SpecStreamToolsOptions & {
1318
1344
  monitorMaxPricePerRunUsd: number;
1319
1345
  }): SpecStreamBaseTools & SpecStreamMonitorTools;
1320
1346
  export declare function specstreamTools(options: SpecStreamToolsOptions): SpecStreamBaseTools;
1347
+ export type SpecStreamBrowserToolsOptions = {
1348
+ /** A SpecStream API key. Defaults to the SPECSTREAM_API_KEY environment variable. */
1349
+ apiKey?: string;
1350
+ /** The SpecStream API address. */
1351
+ baseUrl?: string;
1352
+ /** Replaces the global fetch. */
1353
+ fetch?: typeof fetch;
1354
+ /**
1355
+ * The most seconds one browser runs, from 60 to 3600. Defaults to 300. Set in code; the model can't see it
1356
+ * or raise it. At $0.10 an hour, 300 seconds is at most $0.0084 of time.
1357
+ */
1358
+ timeoutSeconds?: number;
1359
+ /** The browser ends after this many seconds with no step, from 10 to 600. Defaults to 120. */
1360
+ idleTimeoutSeconds?: number;
1361
+ /** Hosts the browser may open, such as example.com or *.example.com. Left out, every public host is allowed. */
1362
+ allowedDomains?: string[];
1363
+ /** true skips images, video, audio and fonts, so pages load faster. */
1364
+ blockMedia?: boolean;
1365
+ /** false runs the browser with a screen, for sites that act differently without one. */
1366
+ headless?: boolean;
1367
+ /** Your own labels for each session. */
1368
+ metadata?: Record<string, string | number | boolean>;
1369
+ };
1370
+ /**
1371
+ * Tools that open a real browser at SpecStream and drive it step by step: open, go to a page, read it,
1372
+ * list its elements, click, type, any other Playwright MCP step, and close.
1373
+ *
1374
+ * How long a browser may run, and so its highest price, is set here, in code, and is not a tool input.
1375
+ *
1376
+ * @example
1377
+ * const { text } = await generateText({
1378
+ * model,
1379
+ * tools: specstreamBrowserTools({ timeoutSeconds: 300, allowedDomains: ["example.com"] }),
1380
+ * stopWhen: stepCountIs(12),
1381
+ * prompt: "Open example.com, accept the cookie banner and read the pricing table.",
1382
+ * });
1383
+ */
1384
+ export declare function specstreamBrowserTools(options?: SpecStreamBrowserToolsOptions): {
1385
+ specstream_open_browser: ({
1386
+ deferLoading?: boolean;
1387
+ title?: string;
1388
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1389
+ metadata?: import("@ai-sdk/provider").JSONObject;
1390
+ inputSchema: import("ai").FlexibleSchema<{
1391
+ url?: string | undefined;
1392
+ }>;
1393
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1394
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1395
+ url?: string | undefined;
1396
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1397
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1398
+ onInputDelta?: ((options: {
1399
+ inputTextDelta: string;
1400
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1401
+ onInputAvailable?: ((options: {
1402
+ input: {
1403
+ url?: string | undefined;
1404
+ };
1405
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1406
+ toModelOutput?: ((options: {
1407
+ toolCallId: string;
1408
+ input: {
1409
+ url?: string | undefined;
1410
+ };
1411
+ output: NoInfer<BrowserSessionView>;
1412
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1413
+ } & {
1414
+ outputSchema?: import("ai").FlexibleSchema<BrowserSessionView> | undefined;
1415
+ execute: import("ai").ToolExecuteFunction<{
1416
+ url?: string | undefined;
1417
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1418
+ } & {
1419
+ description?: string | ((options: {
1420
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1421
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1422
+ }) => string) | undefined;
1423
+ strict?: boolean;
1424
+ inputExamples?: {
1425
+ input: NoInfer<{
1426
+ url?: string | undefined;
1427
+ }>;
1428
+ }[] | undefined;
1429
+ id?: never;
1430
+ isProviderExecuted?: never;
1431
+ args?: never;
1432
+ supportsDeferredResults?: never;
1433
+ } & {
1434
+ type?: undefined | "function";
1435
+ } & {
1436
+ execute: import("ai").ToolExecuteFunction<{
1437
+ url?: string | undefined;
1438
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1439
+ }) | ({
1440
+ deferLoading?: boolean;
1441
+ title?: string;
1442
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1443
+ metadata?: import("@ai-sdk/provider").JSONObject;
1444
+ inputSchema: import("ai").FlexibleSchema<{
1445
+ url?: string | undefined;
1446
+ }>;
1447
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1448
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1449
+ url?: string | undefined;
1450
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1451
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1452
+ onInputDelta?: ((options: {
1453
+ inputTextDelta: string;
1454
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1455
+ onInputAvailable?: ((options: {
1456
+ input: {
1457
+ url?: string | undefined;
1458
+ };
1459
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1460
+ toModelOutput?: ((options: {
1461
+ toolCallId: string;
1462
+ input: {
1463
+ url?: string | undefined;
1464
+ };
1465
+ output: NoInfer<BrowserSessionView>;
1466
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1467
+ } & {
1468
+ outputSchema?: import("ai").FlexibleSchema<BrowserSessionView> | undefined;
1469
+ execute: import("ai").ToolExecuteFunction<{
1470
+ url?: string | undefined;
1471
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1472
+ } & {
1473
+ description?: string | ((options: {
1474
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1475
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1476
+ }) => string) | undefined;
1477
+ strict?: boolean;
1478
+ inputExamples?: {
1479
+ input: NoInfer<{
1480
+ url?: string | undefined;
1481
+ }>;
1482
+ }[] | undefined;
1483
+ id?: never;
1484
+ isProviderExecuted?: never;
1485
+ args?: never;
1486
+ supportsDeferredResults?: never;
1487
+ } & {
1488
+ type: "dynamic";
1489
+ } & {
1490
+ execute: import("ai").ToolExecuteFunction<{
1491
+ url?: string | undefined;
1492
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1493
+ }) | ({
1494
+ deferLoading?: boolean;
1495
+ title?: string;
1496
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1497
+ metadata?: import("@ai-sdk/provider").JSONObject;
1498
+ inputSchema: import("ai").FlexibleSchema<{
1499
+ url?: string | undefined;
1500
+ }>;
1501
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1502
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1503
+ url?: string | undefined;
1504
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1505
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1506
+ onInputDelta?: ((options: {
1507
+ inputTextDelta: string;
1508
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1509
+ onInputAvailable?: ((options: {
1510
+ input: {
1511
+ url?: string | undefined;
1512
+ };
1513
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1514
+ toModelOutput?: ((options: {
1515
+ toolCallId: string;
1516
+ input: {
1517
+ url?: string | undefined;
1518
+ };
1519
+ output: NoInfer<BrowserSessionView>;
1520
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1521
+ } & {
1522
+ outputSchema?: import("ai").FlexibleSchema<BrowserSessionView> | undefined;
1523
+ execute: import("ai").ToolExecuteFunction<{
1524
+ url?: string | undefined;
1525
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1526
+ } & {
1527
+ type: "provider";
1528
+ id: `${string}.${string}`;
1529
+ args: Record<string, unknown>;
1530
+ description?: never;
1531
+ strict?: never;
1532
+ inputExamples?: never;
1533
+ } & {
1534
+ isProviderExecuted: false;
1535
+ supportsDeferredResults?: never;
1536
+ } & {
1537
+ execute: import("ai").ToolExecuteFunction<{
1538
+ url?: string | undefined;
1539
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1540
+ }) | ({
1541
+ deferLoading?: boolean;
1542
+ title?: string;
1543
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1544
+ metadata?: import("@ai-sdk/provider").JSONObject;
1545
+ inputSchema: import("ai").FlexibleSchema<{
1546
+ url?: string | undefined;
1547
+ }>;
1548
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1549
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1550
+ url?: string | undefined;
1551
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1552
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1553
+ onInputDelta?: ((options: {
1554
+ inputTextDelta: string;
1555
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1556
+ onInputAvailable?: ((options: {
1557
+ input: {
1558
+ url?: string | undefined;
1559
+ };
1560
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1561
+ toModelOutput?: ((options: {
1562
+ toolCallId: string;
1563
+ input: {
1564
+ url?: string | undefined;
1565
+ };
1566
+ output: NoInfer<BrowserSessionView>;
1567
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1568
+ } & {
1569
+ outputSchema?: import("ai").FlexibleSchema<BrowserSessionView> | undefined;
1570
+ execute: import("ai").ToolExecuteFunction<{
1571
+ url?: string | undefined;
1572
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1573
+ } & {
1574
+ type: "provider";
1575
+ id: `${string}.${string}`;
1576
+ args: Record<string, unknown>;
1577
+ description?: never;
1578
+ strict?: never;
1579
+ inputExamples?: never;
1580
+ } & {
1581
+ isProviderExecuted: true;
1582
+ supportsDeferredResults?: boolean;
1583
+ } & {
1584
+ execute: import("ai").ToolExecuteFunction<{
1585
+ url?: string | undefined;
1586
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1587
+ });
1588
+ specstream_browser_navigate: ({
1589
+ deferLoading?: boolean;
1590
+ title?: string;
1591
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1592
+ metadata?: import("@ai-sdk/provider").JSONObject;
1593
+ inputSchema: import("ai").FlexibleSchema<{
1594
+ session_id: string;
1595
+ url: string;
1596
+ }>;
1597
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1598
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1599
+ session_id: string;
1600
+ url: string;
1601
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1602
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1603
+ onInputDelta?: ((options: {
1604
+ inputTextDelta: string;
1605
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1606
+ onInputAvailable?: ((options: {
1607
+ input: {
1608
+ session_id: string;
1609
+ url: string;
1610
+ };
1611
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1612
+ toModelOutput?: ((options: {
1613
+ toolCallId: string;
1614
+ input: {
1615
+ session_id: string;
1616
+ url: string;
1617
+ };
1618
+ output: NoInfer<BrowserStepView>;
1619
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1620
+ } & {
1621
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
1622
+ execute: import("ai").ToolExecuteFunction<{
1623
+ session_id: string;
1624
+ url: string;
1625
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1626
+ } & {
1627
+ description?: string | ((options: {
1628
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1629
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1630
+ }) => string) | undefined;
1631
+ strict?: boolean;
1632
+ inputExamples?: {
1633
+ input: NoInfer<{
1634
+ session_id: string;
1635
+ url: string;
1636
+ }>;
1637
+ }[] | undefined;
1638
+ id?: never;
1639
+ isProviderExecuted?: never;
1640
+ args?: never;
1641
+ supportsDeferredResults?: never;
1642
+ } & {
1643
+ type?: undefined | "function";
1644
+ } & {
1645
+ execute: import("ai").ToolExecuteFunction<{
1646
+ session_id: string;
1647
+ url: string;
1648
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1649
+ }) | ({
1650
+ deferLoading?: boolean;
1651
+ title?: string;
1652
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1653
+ metadata?: import("@ai-sdk/provider").JSONObject;
1654
+ inputSchema: import("ai").FlexibleSchema<{
1655
+ session_id: string;
1656
+ url: string;
1657
+ }>;
1658
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1659
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1660
+ session_id: string;
1661
+ url: string;
1662
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1663
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1664
+ onInputDelta?: ((options: {
1665
+ inputTextDelta: string;
1666
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1667
+ onInputAvailable?: ((options: {
1668
+ input: {
1669
+ session_id: string;
1670
+ url: string;
1671
+ };
1672
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1673
+ toModelOutput?: ((options: {
1674
+ toolCallId: string;
1675
+ input: {
1676
+ session_id: string;
1677
+ url: string;
1678
+ };
1679
+ output: NoInfer<BrowserStepView>;
1680
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1681
+ } & {
1682
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
1683
+ execute: import("ai").ToolExecuteFunction<{
1684
+ session_id: string;
1685
+ url: string;
1686
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1687
+ } & {
1688
+ description?: string | ((options: {
1689
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1690
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1691
+ }) => string) | undefined;
1692
+ strict?: boolean;
1693
+ inputExamples?: {
1694
+ input: NoInfer<{
1695
+ session_id: string;
1696
+ url: string;
1697
+ }>;
1698
+ }[] | undefined;
1699
+ id?: never;
1700
+ isProviderExecuted?: never;
1701
+ args?: never;
1702
+ supportsDeferredResults?: never;
1703
+ } & {
1704
+ type: "dynamic";
1705
+ } & {
1706
+ execute: import("ai").ToolExecuteFunction<{
1707
+ session_id: string;
1708
+ url: string;
1709
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1710
+ }) | ({
1711
+ deferLoading?: boolean;
1712
+ title?: string;
1713
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1714
+ metadata?: import("@ai-sdk/provider").JSONObject;
1715
+ inputSchema: import("ai").FlexibleSchema<{
1716
+ session_id: string;
1717
+ url: string;
1718
+ }>;
1719
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1720
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1721
+ session_id: string;
1722
+ url: string;
1723
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1724
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1725
+ onInputDelta?: ((options: {
1726
+ inputTextDelta: string;
1727
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1728
+ onInputAvailable?: ((options: {
1729
+ input: {
1730
+ session_id: string;
1731
+ url: string;
1732
+ };
1733
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1734
+ toModelOutput?: ((options: {
1735
+ toolCallId: string;
1736
+ input: {
1737
+ session_id: string;
1738
+ url: string;
1739
+ };
1740
+ output: NoInfer<BrowserStepView>;
1741
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1742
+ } & {
1743
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
1744
+ execute: import("ai").ToolExecuteFunction<{
1745
+ session_id: string;
1746
+ url: string;
1747
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1748
+ } & {
1749
+ type: "provider";
1750
+ id: `${string}.${string}`;
1751
+ args: Record<string, unknown>;
1752
+ description?: never;
1753
+ strict?: never;
1754
+ inputExamples?: never;
1755
+ } & {
1756
+ isProviderExecuted: false;
1757
+ supportsDeferredResults?: never;
1758
+ } & {
1759
+ execute: import("ai").ToolExecuteFunction<{
1760
+ session_id: string;
1761
+ url: string;
1762
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1763
+ }) | ({
1764
+ deferLoading?: boolean;
1765
+ title?: string;
1766
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1767
+ metadata?: import("@ai-sdk/provider").JSONObject;
1768
+ inputSchema: import("ai").FlexibleSchema<{
1769
+ session_id: string;
1770
+ url: string;
1771
+ }>;
1772
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1773
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1774
+ session_id: string;
1775
+ url: string;
1776
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1777
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1778
+ onInputDelta?: ((options: {
1779
+ inputTextDelta: string;
1780
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1781
+ onInputAvailable?: ((options: {
1782
+ input: {
1783
+ session_id: string;
1784
+ url: string;
1785
+ };
1786
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1787
+ toModelOutput?: ((options: {
1788
+ toolCallId: string;
1789
+ input: {
1790
+ session_id: string;
1791
+ url: string;
1792
+ };
1793
+ output: NoInfer<BrowserStepView>;
1794
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1795
+ } & {
1796
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
1797
+ execute: import("ai").ToolExecuteFunction<{
1798
+ session_id: string;
1799
+ url: string;
1800
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1801
+ } & {
1802
+ type: "provider";
1803
+ id: `${string}.${string}`;
1804
+ args: Record<string, unknown>;
1805
+ description?: never;
1806
+ strict?: never;
1807
+ inputExamples?: never;
1808
+ } & {
1809
+ isProviderExecuted: true;
1810
+ supportsDeferredResults?: boolean;
1811
+ } & {
1812
+ execute: import("ai").ToolExecuteFunction<{
1813
+ session_id: string;
1814
+ url: string;
1815
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1816
+ });
1817
+ specstream_browser_read: ({
1818
+ deferLoading?: boolean;
1819
+ title?: string;
1820
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1821
+ metadata?: import("@ai-sdk/provider").JSONObject;
1822
+ inputSchema: import("ai").FlexibleSchema<{
1823
+ session_id: string;
1824
+ format?: "markdown" | "text" | undefined;
1825
+ }>;
1826
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1827
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1828
+ session_id: string;
1829
+ format?: "markdown" | "text" | undefined;
1830
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1831
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1832
+ onInputDelta?: ((options: {
1833
+ inputTextDelta: string;
1834
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1835
+ onInputAvailable?: ((options: {
1836
+ input: {
1837
+ session_id: string;
1838
+ format?: "markdown" | "text" | undefined;
1839
+ };
1840
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1841
+ toModelOutput?: ((options: {
1842
+ toolCallId: string;
1843
+ input: {
1844
+ session_id: string;
1845
+ format?: "markdown" | "text" | undefined;
1846
+ };
1847
+ output: NoInfer<BrowserStepView>;
1848
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1849
+ } & {
1850
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
1851
+ execute: import("ai").ToolExecuteFunction<{
1852
+ session_id: string;
1853
+ format?: "markdown" | "text" | undefined;
1854
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1855
+ } & {
1856
+ description?: string | ((options: {
1857
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1858
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1859
+ }) => string) | undefined;
1860
+ strict?: boolean;
1861
+ inputExamples?: {
1862
+ input: NoInfer<{
1863
+ session_id: string;
1864
+ format?: "markdown" | "text" | undefined;
1865
+ }>;
1866
+ }[] | undefined;
1867
+ id?: never;
1868
+ isProviderExecuted?: never;
1869
+ args?: never;
1870
+ supportsDeferredResults?: never;
1871
+ } & {
1872
+ type?: undefined | "function";
1873
+ } & {
1874
+ execute: import("ai").ToolExecuteFunction<{
1875
+ session_id: string;
1876
+ format?: "markdown" | "text" | undefined;
1877
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1878
+ }) | ({
1879
+ deferLoading?: boolean;
1880
+ title?: string;
1881
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1882
+ metadata?: import("@ai-sdk/provider").JSONObject;
1883
+ inputSchema: import("ai").FlexibleSchema<{
1884
+ session_id: string;
1885
+ format?: "markdown" | "text" | undefined;
1886
+ }>;
1887
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1888
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1889
+ session_id: string;
1890
+ format?: "markdown" | "text" | undefined;
1891
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1892
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1893
+ onInputDelta?: ((options: {
1894
+ inputTextDelta: string;
1895
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1896
+ onInputAvailable?: ((options: {
1897
+ input: {
1898
+ session_id: string;
1899
+ format?: "markdown" | "text" | undefined;
1900
+ };
1901
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1902
+ toModelOutput?: ((options: {
1903
+ toolCallId: string;
1904
+ input: {
1905
+ session_id: string;
1906
+ format?: "markdown" | "text" | undefined;
1907
+ };
1908
+ output: NoInfer<BrowserStepView>;
1909
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1910
+ } & {
1911
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
1912
+ execute: import("ai").ToolExecuteFunction<{
1913
+ session_id: string;
1914
+ format?: "markdown" | "text" | undefined;
1915
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1916
+ } & {
1917
+ description?: string | ((options: {
1918
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1919
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1920
+ }) => string) | undefined;
1921
+ strict?: boolean;
1922
+ inputExamples?: {
1923
+ input: NoInfer<{
1924
+ session_id: string;
1925
+ format?: "markdown" | "text" | undefined;
1926
+ }>;
1927
+ }[] | undefined;
1928
+ id?: never;
1929
+ isProviderExecuted?: never;
1930
+ args?: never;
1931
+ supportsDeferredResults?: never;
1932
+ } & {
1933
+ type: "dynamic";
1934
+ } & {
1935
+ execute: import("ai").ToolExecuteFunction<{
1936
+ session_id: string;
1937
+ format?: "markdown" | "text" | undefined;
1938
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1939
+ }) | ({
1940
+ deferLoading?: boolean;
1941
+ title?: string;
1942
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1943
+ metadata?: import("@ai-sdk/provider").JSONObject;
1944
+ inputSchema: import("ai").FlexibleSchema<{
1945
+ session_id: string;
1946
+ format?: "markdown" | "text" | undefined;
1947
+ }>;
1948
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1949
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1950
+ session_id: string;
1951
+ format?: "markdown" | "text" | undefined;
1952
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1953
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1954
+ onInputDelta?: ((options: {
1955
+ inputTextDelta: string;
1956
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1957
+ onInputAvailable?: ((options: {
1958
+ input: {
1959
+ session_id: string;
1960
+ format?: "markdown" | "text" | undefined;
1961
+ };
1962
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1963
+ toModelOutput?: ((options: {
1964
+ toolCallId: string;
1965
+ input: {
1966
+ session_id: string;
1967
+ format?: "markdown" | "text" | undefined;
1968
+ };
1969
+ output: NoInfer<BrowserStepView>;
1970
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1971
+ } & {
1972
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
1973
+ execute: import("ai").ToolExecuteFunction<{
1974
+ session_id: string;
1975
+ format?: "markdown" | "text" | undefined;
1976
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1977
+ } & {
1978
+ type: "provider";
1979
+ id: `${string}.${string}`;
1980
+ args: Record<string, unknown>;
1981
+ description?: never;
1982
+ strict?: never;
1983
+ inputExamples?: never;
1984
+ } & {
1985
+ isProviderExecuted: false;
1986
+ supportsDeferredResults?: never;
1987
+ } & {
1988
+ execute: import("ai").ToolExecuteFunction<{
1989
+ session_id: string;
1990
+ format?: "markdown" | "text" | undefined;
1991
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1992
+ }) | ({
1993
+ deferLoading?: boolean;
1994
+ title?: string;
1995
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1996
+ metadata?: import("@ai-sdk/provider").JSONObject;
1997
+ inputSchema: import("ai").FlexibleSchema<{
1998
+ session_id: string;
1999
+ format?: "markdown" | "text" | undefined;
2000
+ }>;
2001
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2002
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2003
+ session_id: string;
2004
+ format?: "markdown" | "text" | undefined;
2005
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2006
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2007
+ onInputDelta?: ((options: {
2008
+ inputTextDelta: string;
2009
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2010
+ onInputAvailable?: ((options: {
2011
+ input: {
2012
+ session_id: string;
2013
+ format?: "markdown" | "text" | undefined;
2014
+ };
2015
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2016
+ toModelOutput?: ((options: {
2017
+ toolCallId: string;
2018
+ input: {
2019
+ session_id: string;
2020
+ format?: "markdown" | "text" | undefined;
2021
+ };
2022
+ output: NoInfer<BrowserStepView>;
2023
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2024
+ } & {
2025
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2026
+ execute: import("ai").ToolExecuteFunction<{
2027
+ session_id: string;
2028
+ format?: "markdown" | "text" | undefined;
2029
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2030
+ } & {
2031
+ type: "provider";
2032
+ id: `${string}.${string}`;
2033
+ args: Record<string, unknown>;
2034
+ description?: never;
2035
+ strict?: never;
2036
+ inputExamples?: never;
2037
+ } & {
2038
+ isProviderExecuted: true;
2039
+ supportsDeferredResults?: boolean;
2040
+ } & {
2041
+ execute: import("ai").ToolExecuteFunction<{
2042
+ session_id: string;
2043
+ format?: "markdown" | "text" | undefined;
2044
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2045
+ });
2046
+ specstream_browser_snapshot: ({
2047
+ deferLoading?: boolean;
2048
+ title?: string;
2049
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2050
+ metadata?: import("@ai-sdk/provider").JSONObject;
2051
+ inputSchema: import("ai").FlexibleSchema<{
2052
+ session_id: string;
2053
+ }>;
2054
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2055
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2056
+ session_id: string;
2057
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2058
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2059
+ onInputDelta?: ((options: {
2060
+ inputTextDelta: string;
2061
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2062
+ onInputAvailable?: ((options: {
2063
+ input: {
2064
+ session_id: string;
2065
+ };
2066
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2067
+ toModelOutput?: ((options: {
2068
+ toolCallId: string;
2069
+ input: {
2070
+ session_id: string;
2071
+ };
2072
+ output: NoInfer<BrowserStepView>;
2073
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2074
+ } & {
2075
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2076
+ execute: import("ai").ToolExecuteFunction<{
2077
+ session_id: string;
2078
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2079
+ } & {
2080
+ description?: string | ((options: {
2081
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
2082
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
2083
+ }) => string) | undefined;
2084
+ strict?: boolean;
2085
+ inputExamples?: {
2086
+ input: NoInfer<{
2087
+ session_id: string;
2088
+ }>;
2089
+ }[] | undefined;
2090
+ id?: never;
2091
+ isProviderExecuted?: never;
2092
+ args?: never;
2093
+ supportsDeferredResults?: never;
2094
+ } & {
2095
+ type?: undefined | "function";
2096
+ } & {
2097
+ execute: import("ai").ToolExecuteFunction<{
2098
+ session_id: string;
2099
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2100
+ }) | ({
2101
+ deferLoading?: boolean;
2102
+ title?: string;
2103
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2104
+ metadata?: import("@ai-sdk/provider").JSONObject;
2105
+ inputSchema: import("ai").FlexibleSchema<{
2106
+ session_id: string;
2107
+ }>;
2108
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2109
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2110
+ session_id: string;
2111
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2112
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2113
+ onInputDelta?: ((options: {
2114
+ inputTextDelta: string;
2115
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2116
+ onInputAvailable?: ((options: {
2117
+ input: {
2118
+ session_id: string;
2119
+ };
2120
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2121
+ toModelOutput?: ((options: {
2122
+ toolCallId: string;
2123
+ input: {
2124
+ session_id: string;
2125
+ };
2126
+ output: NoInfer<BrowserStepView>;
2127
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2128
+ } & {
2129
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2130
+ execute: import("ai").ToolExecuteFunction<{
2131
+ session_id: string;
2132
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2133
+ } & {
2134
+ description?: string | ((options: {
2135
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
2136
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
2137
+ }) => string) | undefined;
2138
+ strict?: boolean;
2139
+ inputExamples?: {
2140
+ input: NoInfer<{
2141
+ session_id: string;
2142
+ }>;
2143
+ }[] | undefined;
2144
+ id?: never;
2145
+ isProviderExecuted?: never;
2146
+ args?: never;
2147
+ supportsDeferredResults?: never;
2148
+ } & {
2149
+ type: "dynamic";
2150
+ } & {
2151
+ execute: import("ai").ToolExecuteFunction<{
2152
+ session_id: string;
2153
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2154
+ }) | ({
2155
+ deferLoading?: boolean;
2156
+ title?: string;
2157
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2158
+ metadata?: import("@ai-sdk/provider").JSONObject;
2159
+ inputSchema: import("ai").FlexibleSchema<{
2160
+ session_id: string;
2161
+ }>;
2162
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2163
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2164
+ session_id: string;
2165
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2166
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2167
+ onInputDelta?: ((options: {
2168
+ inputTextDelta: string;
2169
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2170
+ onInputAvailable?: ((options: {
2171
+ input: {
2172
+ session_id: string;
2173
+ };
2174
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2175
+ toModelOutput?: ((options: {
2176
+ toolCallId: string;
2177
+ input: {
2178
+ session_id: string;
2179
+ };
2180
+ output: NoInfer<BrowserStepView>;
2181
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2182
+ } & {
2183
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2184
+ execute: import("ai").ToolExecuteFunction<{
2185
+ session_id: string;
2186
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2187
+ } & {
2188
+ type: "provider";
2189
+ id: `${string}.${string}`;
2190
+ args: Record<string, unknown>;
2191
+ description?: never;
2192
+ strict?: never;
2193
+ inputExamples?: never;
2194
+ } & {
2195
+ isProviderExecuted: false;
2196
+ supportsDeferredResults?: never;
2197
+ } & {
2198
+ execute: import("ai").ToolExecuteFunction<{
2199
+ session_id: string;
2200
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2201
+ }) | ({
2202
+ deferLoading?: boolean;
2203
+ title?: string;
2204
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2205
+ metadata?: import("@ai-sdk/provider").JSONObject;
2206
+ inputSchema: import("ai").FlexibleSchema<{
2207
+ session_id: string;
2208
+ }>;
2209
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2210
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2211
+ session_id: string;
2212
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2213
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2214
+ onInputDelta?: ((options: {
2215
+ inputTextDelta: string;
2216
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2217
+ onInputAvailable?: ((options: {
2218
+ input: {
2219
+ session_id: string;
2220
+ };
2221
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2222
+ toModelOutput?: ((options: {
2223
+ toolCallId: string;
2224
+ input: {
2225
+ session_id: string;
2226
+ };
2227
+ output: NoInfer<BrowserStepView>;
2228
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2229
+ } & {
2230
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2231
+ execute: import("ai").ToolExecuteFunction<{
2232
+ session_id: string;
2233
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2234
+ } & {
2235
+ type: "provider";
2236
+ id: `${string}.${string}`;
2237
+ args: Record<string, unknown>;
2238
+ description?: never;
2239
+ strict?: never;
2240
+ inputExamples?: never;
2241
+ } & {
2242
+ isProviderExecuted: true;
2243
+ supportsDeferredResults?: boolean;
2244
+ } & {
2245
+ execute: import("ai").ToolExecuteFunction<{
2246
+ session_id: string;
2247
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2248
+ });
2249
+ specstream_browser_click: ({
2250
+ deferLoading?: boolean;
2251
+ title?: string;
2252
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2253
+ metadata?: import("@ai-sdk/provider").JSONObject;
2254
+ inputSchema: import("ai").FlexibleSchema<{
2255
+ session_id: string;
2256
+ target: string;
2257
+ element?: string | undefined;
2258
+ }>;
2259
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2260
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2261
+ session_id: string;
2262
+ target: string;
2263
+ element?: string | undefined;
2264
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2265
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2266
+ onInputDelta?: ((options: {
2267
+ inputTextDelta: string;
2268
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2269
+ onInputAvailable?: ((options: {
2270
+ input: {
2271
+ session_id: string;
2272
+ target: string;
2273
+ element?: string | undefined;
2274
+ };
2275
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2276
+ toModelOutput?: ((options: {
2277
+ toolCallId: string;
2278
+ input: {
2279
+ session_id: string;
2280
+ target: string;
2281
+ element?: string | undefined;
2282
+ };
2283
+ output: NoInfer<BrowserStepView>;
2284
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2285
+ } & {
2286
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2287
+ execute: import("ai").ToolExecuteFunction<{
2288
+ session_id: string;
2289
+ target: string;
2290
+ element?: string | undefined;
2291
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2292
+ } & {
2293
+ description?: string | ((options: {
2294
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
2295
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
2296
+ }) => string) | undefined;
2297
+ strict?: boolean;
2298
+ inputExamples?: {
2299
+ input: NoInfer<{
2300
+ session_id: string;
2301
+ target: string;
2302
+ element?: string | undefined;
2303
+ }>;
2304
+ }[] | undefined;
2305
+ id?: never;
2306
+ isProviderExecuted?: never;
2307
+ args?: never;
2308
+ supportsDeferredResults?: never;
2309
+ } & {
2310
+ type?: undefined | "function";
2311
+ } & {
2312
+ execute: import("ai").ToolExecuteFunction<{
2313
+ session_id: string;
2314
+ target: string;
2315
+ element?: string | undefined;
2316
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2317
+ }) | ({
2318
+ deferLoading?: boolean;
2319
+ title?: string;
2320
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2321
+ metadata?: import("@ai-sdk/provider").JSONObject;
2322
+ inputSchema: import("ai").FlexibleSchema<{
2323
+ session_id: string;
2324
+ target: string;
2325
+ element?: string | undefined;
2326
+ }>;
2327
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2328
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2329
+ session_id: string;
2330
+ target: string;
2331
+ element?: string | undefined;
2332
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2333
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2334
+ onInputDelta?: ((options: {
2335
+ inputTextDelta: string;
2336
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2337
+ onInputAvailable?: ((options: {
2338
+ input: {
2339
+ session_id: string;
2340
+ target: string;
2341
+ element?: string | undefined;
2342
+ };
2343
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2344
+ toModelOutput?: ((options: {
2345
+ toolCallId: string;
2346
+ input: {
2347
+ session_id: string;
2348
+ target: string;
2349
+ element?: string | undefined;
2350
+ };
2351
+ output: NoInfer<BrowserStepView>;
2352
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2353
+ } & {
2354
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2355
+ execute: import("ai").ToolExecuteFunction<{
2356
+ session_id: string;
2357
+ target: string;
2358
+ element?: string | undefined;
2359
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2360
+ } & {
2361
+ description?: string | ((options: {
2362
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
2363
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
2364
+ }) => string) | undefined;
2365
+ strict?: boolean;
2366
+ inputExamples?: {
2367
+ input: NoInfer<{
2368
+ session_id: string;
2369
+ target: string;
2370
+ element?: string | undefined;
2371
+ }>;
2372
+ }[] | undefined;
2373
+ id?: never;
2374
+ isProviderExecuted?: never;
2375
+ args?: never;
2376
+ supportsDeferredResults?: never;
2377
+ } & {
2378
+ type: "dynamic";
2379
+ } & {
2380
+ execute: import("ai").ToolExecuteFunction<{
2381
+ session_id: string;
2382
+ target: string;
2383
+ element?: string | undefined;
2384
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2385
+ }) | ({
2386
+ deferLoading?: boolean;
2387
+ title?: string;
2388
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2389
+ metadata?: import("@ai-sdk/provider").JSONObject;
2390
+ inputSchema: import("ai").FlexibleSchema<{
2391
+ session_id: string;
2392
+ target: string;
2393
+ element?: string | undefined;
2394
+ }>;
2395
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2396
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2397
+ session_id: string;
2398
+ target: string;
2399
+ element?: string | undefined;
2400
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2401
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2402
+ onInputDelta?: ((options: {
2403
+ inputTextDelta: string;
2404
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2405
+ onInputAvailable?: ((options: {
2406
+ input: {
2407
+ session_id: string;
2408
+ target: string;
2409
+ element?: string | undefined;
2410
+ };
2411
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2412
+ toModelOutput?: ((options: {
2413
+ toolCallId: string;
2414
+ input: {
2415
+ session_id: string;
2416
+ target: string;
2417
+ element?: string | undefined;
2418
+ };
2419
+ output: NoInfer<BrowserStepView>;
2420
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2421
+ } & {
2422
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2423
+ execute: import("ai").ToolExecuteFunction<{
2424
+ session_id: string;
2425
+ target: string;
2426
+ element?: string | undefined;
2427
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2428
+ } & {
2429
+ type: "provider";
2430
+ id: `${string}.${string}`;
2431
+ args: Record<string, unknown>;
2432
+ description?: never;
2433
+ strict?: never;
2434
+ inputExamples?: never;
2435
+ } & {
2436
+ isProviderExecuted: false;
2437
+ supportsDeferredResults?: never;
2438
+ } & {
2439
+ execute: import("ai").ToolExecuteFunction<{
2440
+ session_id: string;
2441
+ target: string;
2442
+ element?: string | undefined;
2443
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2444
+ }) | ({
2445
+ deferLoading?: boolean;
2446
+ title?: string;
2447
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2448
+ metadata?: import("@ai-sdk/provider").JSONObject;
2449
+ inputSchema: import("ai").FlexibleSchema<{
2450
+ session_id: string;
2451
+ target: string;
2452
+ element?: string | undefined;
2453
+ }>;
2454
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2455
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2456
+ session_id: string;
2457
+ target: string;
2458
+ element?: string | undefined;
2459
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2460
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2461
+ onInputDelta?: ((options: {
2462
+ inputTextDelta: string;
2463
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2464
+ onInputAvailable?: ((options: {
2465
+ input: {
2466
+ session_id: string;
2467
+ target: string;
2468
+ element?: string | undefined;
2469
+ };
2470
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2471
+ toModelOutput?: ((options: {
2472
+ toolCallId: string;
2473
+ input: {
2474
+ session_id: string;
2475
+ target: string;
2476
+ element?: string | undefined;
2477
+ };
2478
+ output: NoInfer<BrowserStepView>;
2479
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2480
+ } & {
2481
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2482
+ execute: import("ai").ToolExecuteFunction<{
2483
+ session_id: string;
2484
+ target: string;
2485
+ element?: string | undefined;
2486
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2487
+ } & {
2488
+ type: "provider";
2489
+ id: `${string}.${string}`;
2490
+ args: Record<string, unknown>;
2491
+ description?: never;
2492
+ strict?: never;
2493
+ inputExamples?: never;
2494
+ } & {
2495
+ isProviderExecuted: true;
2496
+ supportsDeferredResults?: boolean;
2497
+ } & {
2498
+ execute: import("ai").ToolExecuteFunction<{
2499
+ session_id: string;
2500
+ target: string;
2501
+ element?: string | undefined;
2502
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2503
+ });
2504
+ specstream_browser_type: ({
2505
+ deferLoading?: boolean;
2506
+ title?: string;
2507
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2508
+ metadata?: import("@ai-sdk/provider").JSONObject;
2509
+ inputSchema: import("ai").FlexibleSchema<{
2510
+ session_id: string;
2511
+ target: string;
2512
+ text: string;
2513
+ submit?: boolean | undefined;
2514
+ }>;
2515
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2516
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2517
+ session_id: string;
2518
+ target: string;
2519
+ text: string;
2520
+ submit?: boolean | undefined;
2521
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2522
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2523
+ onInputDelta?: ((options: {
2524
+ inputTextDelta: string;
2525
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2526
+ onInputAvailable?: ((options: {
2527
+ input: {
2528
+ session_id: string;
2529
+ target: string;
2530
+ text: string;
2531
+ submit?: boolean | undefined;
2532
+ };
2533
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2534
+ toModelOutput?: ((options: {
2535
+ toolCallId: string;
2536
+ input: {
2537
+ session_id: string;
2538
+ target: string;
2539
+ text: string;
2540
+ submit?: boolean | undefined;
2541
+ };
2542
+ output: NoInfer<BrowserStepView>;
2543
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2544
+ } & {
2545
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2546
+ execute: import("ai").ToolExecuteFunction<{
2547
+ session_id: string;
2548
+ target: string;
2549
+ text: string;
2550
+ submit?: boolean | undefined;
2551
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2552
+ } & {
2553
+ description?: string | ((options: {
2554
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
2555
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
2556
+ }) => string) | undefined;
2557
+ strict?: boolean;
2558
+ inputExamples?: {
2559
+ input: NoInfer<{
2560
+ session_id: string;
2561
+ target: string;
2562
+ text: string;
2563
+ submit?: boolean | undefined;
2564
+ }>;
2565
+ }[] | undefined;
2566
+ id?: never;
2567
+ isProviderExecuted?: never;
2568
+ args?: never;
2569
+ supportsDeferredResults?: never;
2570
+ } & {
2571
+ type?: undefined | "function";
2572
+ } & {
2573
+ execute: import("ai").ToolExecuteFunction<{
2574
+ session_id: string;
2575
+ target: string;
2576
+ text: string;
2577
+ submit?: boolean | undefined;
2578
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2579
+ }) | ({
2580
+ deferLoading?: boolean;
2581
+ title?: string;
2582
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2583
+ metadata?: import("@ai-sdk/provider").JSONObject;
2584
+ inputSchema: import("ai").FlexibleSchema<{
2585
+ session_id: string;
2586
+ target: string;
2587
+ text: string;
2588
+ submit?: boolean | undefined;
2589
+ }>;
2590
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2591
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2592
+ session_id: string;
2593
+ target: string;
2594
+ text: string;
2595
+ submit?: boolean | undefined;
2596
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2597
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2598
+ onInputDelta?: ((options: {
2599
+ inputTextDelta: string;
2600
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2601
+ onInputAvailable?: ((options: {
2602
+ input: {
2603
+ session_id: string;
2604
+ target: string;
2605
+ text: string;
2606
+ submit?: boolean | undefined;
2607
+ };
2608
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2609
+ toModelOutput?: ((options: {
2610
+ toolCallId: string;
2611
+ input: {
2612
+ session_id: string;
2613
+ target: string;
2614
+ text: string;
2615
+ submit?: boolean | undefined;
2616
+ };
2617
+ output: NoInfer<BrowserStepView>;
2618
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2619
+ } & {
2620
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2621
+ execute: import("ai").ToolExecuteFunction<{
2622
+ session_id: string;
2623
+ target: string;
2624
+ text: string;
2625
+ submit?: boolean | undefined;
2626
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2627
+ } & {
2628
+ description?: string | ((options: {
2629
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
2630
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
2631
+ }) => string) | undefined;
2632
+ strict?: boolean;
2633
+ inputExamples?: {
2634
+ input: NoInfer<{
2635
+ session_id: string;
2636
+ target: string;
2637
+ text: string;
2638
+ submit?: boolean | undefined;
2639
+ }>;
2640
+ }[] | undefined;
2641
+ id?: never;
2642
+ isProviderExecuted?: never;
2643
+ args?: never;
2644
+ supportsDeferredResults?: never;
2645
+ } & {
2646
+ type: "dynamic";
2647
+ } & {
2648
+ execute: import("ai").ToolExecuteFunction<{
2649
+ session_id: string;
2650
+ target: string;
2651
+ text: string;
2652
+ submit?: boolean | undefined;
2653
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2654
+ }) | ({
2655
+ deferLoading?: boolean;
2656
+ title?: string;
2657
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2658
+ metadata?: import("@ai-sdk/provider").JSONObject;
2659
+ inputSchema: import("ai").FlexibleSchema<{
2660
+ session_id: string;
2661
+ target: string;
2662
+ text: string;
2663
+ submit?: boolean | undefined;
2664
+ }>;
2665
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2666
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2667
+ session_id: string;
2668
+ target: string;
2669
+ text: string;
2670
+ submit?: boolean | undefined;
2671
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2672
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2673
+ onInputDelta?: ((options: {
2674
+ inputTextDelta: string;
2675
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2676
+ onInputAvailable?: ((options: {
2677
+ input: {
2678
+ session_id: string;
2679
+ target: string;
2680
+ text: string;
2681
+ submit?: boolean | undefined;
2682
+ };
2683
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2684
+ toModelOutput?: ((options: {
2685
+ toolCallId: string;
2686
+ input: {
2687
+ session_id: string;
2688
+ target: string;
2689
+ text: string;
2690
+ submit?: boolean | undefined;
2691
+ };
2692
+ output: NoInfer<BrowserStepView>;
2693
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2694
+ } & {
2695
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2696
+ execute: import("ai").ToolExecuteFunction<{
2697
+ session_id: string;
2698
+ target: string;
2699
+ text: string;
2700
+ submit?: boolean | undefined;
2701
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2702
+ } & {
2703
+ type: "provider";
2704
+ id: `${string}.${string}`;
2705
+ args: Record<string, unknown>;
2706
+ description?: never;
2707
+ strict?: never;
2708
+ inputExamples?: never;
2709
+ } & {
2710
+ isProviderExecuted: false;
2711
+ supportsDeferredResults?: never;
2712
+ } & {
2713
+ execute: import("ai").ToolExecuteFunction<{
2714
+ session_id: string;
2715
+ target: string;
2716
+ text: string;
2717
+ submit?: boolean | undefined;
2718
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2719
+ }) | ({
2720
+ deferLoading?: boolean;
2721
+ title?: string;
2722
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2723
+ metadata?: import("@ai-sdk/provider").JSONObject;
2724
+ inputSchema: import("ai").FlexibleSchema<{
2725
+ session_id: string;
2726
+ target: string;
2727
+ text: string;
2728
+ submit?: boolean | undefined;
2729
+ }>;
2730
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2731
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2732
+ session_id: string;
2733
+ target: string;
2734
+ text: string;
2735
+ submit?: boolean | undefined;
2736
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2737
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2738
+ onInputDelta?: ((options: {
2739
+ inputTextDelta: string;
2740
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2741
+ onInputAvailable?: ((options: {
2742
+ input: {
2743
+ session_id: string;
2744
+ target: string;
2745
+ text: string;
2746
+ submit?: boolean | undefined;
2747
+ };
2748
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2749
+ toModelOutput?: ((options: {
2750
+ toolCallId: string;
2751
+ input: {
2752
+ session_id: string;
2753
+ target: string;
2754
+ text: string;
2755
+ submit?: boolean | undefined;
2756
+ };
2757
+ output: NoInfer<BrowserStepView>;
2758
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2759
+ } & {
2760
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2761
+ execute: import("ai").ToolExecuteFunction<{
2762
+ session_id: string;
2763
+ target: string;
2764
+ text: string;
2765
+ submit?: boolean | undefined;
2766
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2767
+ } & {
2768
+ type: "provider";
2769
+ id: `${string}.${string}`;
2770
+ args: Record<string, unknown>;
2771
+ description?: never;
2772
+ strict?: never;
2773
+ inputExamples?: never;
2774
+ } & {
2775
+ isProviderExecuted: true;
2776
+ supportsDeferredResults?: boolean;
2777
+ } & {
2778
+ execute: import("ai").ToolExecuteFunction<{
2779
+ session_id: string;
2780
+ target: string;
2781
+ text: string;
2782
+ submit?: boolean | undefined;
2783
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2784
+ });
2785
+ specstream_browser_action: ({
2786
+ deferLoading?: boolean;
2787
+ title?: string;
2788
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2789
+ metadata?: import("@ai-sdk/provider").JSONObject;
2790
+ inputSchema: import("ai").FlexibleSchema<{
2791
+ session_id: string;
2792
+ tool: string;
2793
+ arguments?: Record<string, unknown> | undefined;
2794
+ }>;
2795
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2796
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2797
+ session_id: string;
2798
+ tool: string;
2799
+ arguments?: Record<string, unknown> | undefined;
2800
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2801
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2802
+ onInputDelta?: ((options: {
2803
+ inputTextDelta: string;
2804
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2805
+ onInputAvailable?: ((options: {
2806
+ input: {
2807
+ session_id: string;
2808
+ tool: string;
2809
+ arguments?: Record<string, unknown> | undefined;
2810
+ };
2811
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2812
+ toModelOutput?: ((options: {
2813
+ toolCallId: string;
2814
+ input: {
2815
+ session_id: string;
2816
+ tool: string;
2817
+ arguments?: Record<string, unknown> | undefined;
2818
+ };
2819
+ output: NoInfer<BrowserStepView>;
2820
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2821
+ } & {
2822
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2823
+ execute: import("ai").ToolExecuteFunction<{
2824
+ session_id: string;
2825
+ tool: string;
2826
+ arguments?: Record<string, unknown> | undefined;
2827
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2828
+ } & {
2829
+ description?: string | ((options: {
2830
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
2831
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
2832
+ }) => string) | undefined;
2833
+ strict?: boolean;
2834
+ inputExamples?: {
2835
+ input: NoInfer<{
2836
+ session_id: string;
2837
+ tool: string;
2838
+ arguments?: Record<string, unknown> | undefined;
2839
+ }>;
2840
+ }[] | undefined;
2841
+ id?: never;
2842
+ isProviderExecuted?: never;
2843
+ args?: never;
2844
+ supportsDeferredResults?: never;
2845
+ } & {
2846
+ type?: undefined | "function";
2847
+ } & {
2848
+ execute: import("ai").ToolExecuteFunction<{
2849
+ session_id: string;
2850
+ tool: string;
2851
+ arguments?: Record<string, unknown> | undefined;
2852
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2853
+ }) | ({
2854
+ deferLoading?: boolean;
2855
+ title?: string;
2856
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2857
+ metadata?: import("@ai-sdk/provider").JSONObject;
2858
+ inputSchema: import("ai").FlexibleSchema<{
2859
+ session_id: string;
2860
+ tool: string;
2861
+ arguments?: Record<string, unknown> | undefined;
2862
+ }>;
2863
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2864
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2865
+ session_id: string;
2866
+ tool: string;
2867
+ arguments?: Record<string, unknown> | undefined;
2868
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2869
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2870
+ onInputDelta?: ((options: {
2871
+ inputTextDelta: string;
2872
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2873
+ onInputAvailable?: ((options: {
2874
+ input: {
2875
+ session_id: string;
2876
+ tool: string;
2877
+ arguments?: Record<string, unknown> | undefined;
2878
+ };
2879
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2880
+ toModelOutput?: ((options: {
2881
+ toolCallId: string;
2882
+ input: {
2883
+ session_id: string;
2884
+ tool: string;
2885
+ arguments?: Record<string, unknown> | undefined;
2886
+ };
2887
+ output: NoInfer<BrowserStepView>;
2888
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2889
+ } & {
2890
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2891
+ execute: import("ai").ToolExecuteFunction<{
2892
+ session_id: string;
2893
+ tool: string;
2894
+ arguments?: Record<string, unknown> | undefined;
2895
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2896
+ } & {
2897
+ description?: string | ((options: {
2898
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
2899
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
2900
+ }) => string) | undefined;
2901
+ strict?: boolean;
2902
+ inputExamples?: {
2903
+ input: NoInfer<{
2904
+ session_id: string;
2905
+ tool: string;
2906
+ arguments?: Record<string, unknown> | undefined;
2907
+ }>;
2908
+ }[] | undefined;
2909
+ id?: never;
2910
+ isProviderExecuted?: never;
2911
+ args?: never;
2912
+ supportsDeferredResults?: never;
2913
+ } & {
2914
+ type: "dynamic";
2915
+ } & {
2916
+ execute: import("ai").ToolExecuteFunction<{
2917
+ session_id: string;
2918
+ tool: string;
2919
+ arguments?: Record<string, unknown> | undefined;
2920
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2921
+ }) | ({
2922
+ deferLoading?: boolean;
2923
+ title?: string;
2924
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2925
+ metadata?: import("@ai-sdk/provider").JSONObject;
2926
+ inputSchema: import("ai").FlexibleSchema<{
2927
+ session_id: string;
2928
+ tool: string;
2929
+ arguments?: Record<string, unknown> | undefined;
2930
+ }>;
2931
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2932
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2933
+ session_id: string;
2934
+ tool: string;
2935
+ arguments?: Record<string, unknown> | undefined;
2936
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2937
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2938
+ onInputDelta?: ((options: {
2939
+ inputTextDelta: string;
2940
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2941
+ onInputAvailable?: ((options: {
2942
+ input: {
2943
+ session_id: string;
2944
+ tool: string;
2945
+ arguments?: Record<string, unknown> | undefined;
2946
+ };
2947
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2948
+ toModelOutput?: ((options: {
2949
+ toolCallId: string;
2950
+ input: {
2951
+ session_id: string;
2952
+ tool: string;
2953
+ arguments?: Record<string, unknown> | undefined;
2954
+ };
2955
+ output: NoInfer<BrowserStepView>;
2956
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2957
+ } & {
2958
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
2959
+ execute: import("ai").ToolExecuteFunction<{
2960
+ session_id: string;
2961
+ tool: string;
2962
+ arguments?: Record<string, unknown> | undefined;
2963
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2964
+ } & {
2965
+ type: "provider";
2966
+ id: `${string}.${string}`;
2967
+ args: Record<string, unknown>;
2968
+ description?: never;
2969
+ strict?: never;
2970
+ inputExamples?: never;
2971
+ } & {
2972
+ isProviderExecuted: false;
2973
+ supportsDeferredResults?: never;
2974
+ } & {
2975
+ execute: import("ai").ToolExecuteFunction<{
2976
+ session_id: string;
2977
+ tool: string;
2978
+ arguments?: Record<string, unknown> | undefined;
2979
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2980
+ }) | ({
2981
+ deferLoading?: boolean;
2982
+ title?: string;
2983
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2984
+ metadata?: import("@ai-sdk/provider").JSONObject;
2985
+ inputSchema: import("ai").FlexibleSchema<{
2986
+ session_id: string;
2987
+ tool: string;
2988
+ arguments?: Record<string, unknown> | undefined;
2989
+ }>;
2990
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2991
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2992
+ session_id: string;
2993
+ tool: string;
2994
+ arguments?: Record<string, unknown> | undefined;
2995
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2996
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2997
+ onInputDelta?: ((options: {
2998
+ inputTextDelta: string;
2999
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3000
+ onInputAvailable?: ((options: {
3001
+ input: {
3002
+ session_id: string;
3003
+ tool: string;
3004
+ arguments?: Record<string, unknown> | undefined;
3005
+ };
3006
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3007
+ toModelOutput?: ((options: {
3008
+ toolCallId: string;
3009
+ input: {
3010
+ session_id: string;
3011
+ tool: string;
3012
+ arguments?: Record<string, unknown> | undefined;
3013
+ };
3014
+ output: NoInfer<BrowserStepView>;
3015
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
3016
+ } & {
3017
+ outputSchema?: import("ai").FlexibleSchema<BrowserStepView> | undefined;
3018
+ execute: import("ai").ToolExecuteFunction<{
3019
+ session_id: string;
3020
+ tool: string;
3021
+ arguments?: Record<string, unknown> | undefined;
3022
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3023
+ } & {
3024
+ type: "provider";
3025
+ id: `${string}.${string}`;
3026
+ args: Record<string, unknown>;
3027
+ description?: never;
3028
+ strict?: never;
3029
+ inputExamples?: never;
3030
+ } & {
3031
+ isProviderExecuted: true;
3032
+ supportsDeferredResults?: boolean;
3033
+ } & {
3034
+ execute: import("ai").ToolExecuteFunction<{
3035
+ session_id: string;
3036
+ tool: string;
3037
+ arguments?: Record<string, unknown> | undefined;
3038
+ }, BrowserStepView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3039
+ });
3040
+ specstream_close_browser: ({
3041
+ deferLoading?: boolean;
3042
+ title?: string;
3043
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
3044
+ metadata?: import("@ai-sdk/provider").JSONObject;
3045
+ inputSchema: import("ai").FlexibleSchema<{
3046
+ session_id: string;
3047
+ }>;
3048
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
3049
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
3050
+ session_id: string;
3051
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
3052
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3053
+ onInputDelta?: ((options: {
3054
+ inputTextDelta: string;
3055
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3056
+ onInputAvailable?: ((options: {
3057
+ input: {
3058
+ session_id: string;
3059
+ };
3060
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3061
+ toModelOutput?: ((options: {
3062
+ toolCallId: string;
3063
+ input: {
3064
+ session_id: string;
3065
+ };
3066
+ output: NoInfer<BrowserSessionView>;
3067
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
3068
+ } & {
3069
+ outputSchema?: import("ai").FlexibleSchema<BrowserSessionView> | undefined;
3070
+ execute: import("ai").ToolExecuteFunction<{
3071
+ session_id: string;
3072
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3073
+ } & {
3074
+ description?: string | ((options: {
3075
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
3076
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
3077
+ }) => string) | undefined;
3078
+ strict?: boolean;
3079
+ inputExamples?: {
3080
+ input: NoInfer<{
3081
+ session_id: string;
3082
+ }>;
3083
+ }[] | undefined;
3084
+ id?: never;
3085
+ isProviderExecuted?: never;
3086
+ args?: never;
3087
+ supportsDeferredResults?: never;
3088
+ } & {
3089
+ type?: undefined | "function";
3090
+ } & {
3091
+ execute: import("ai").ToolExecuteFunction<{
3092
+ session_id: string;
3093
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3094
+ }) | ({
3095
+ deferLoading?: boolean;
3096
+ title?: string;
3097
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
3098
+ metadata?: import("@ai-sdk/provider").JSONObject;
3099
+ inputSchema: import("ai").FlexibleSchema<{
3100
+ session_id: string;
3101
+ }>;
3102
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
3103
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
3104
+ session_id: string;
3105
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
3106
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3107
+ onInputDelta?: ((options: {
3108
+ inputTextDelta: string;
3109
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3110
+ onInputAvailable?: ((options: {
3111
+ input: {
3112
+ session_id: string;
3113
+ };
3114
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3115
+ toModelOutput?: ((options: {
3116
+ toolCallId: string;
3117
+ input: {
3118
+ session_id: string;
3119
+ };
3120
+ output: NoInfer<BrowserSessionView>;
3121
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
3122
+ } & {
3123
+ outputSchema?: import("ai").FlexibleSchema<BrowserSessionView> | undefined;
3124
+ execute: import("ai").ToolExecuteFunction<{
3125
+ session_id: string;
3126
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3127
+ } & {
3128
+ description?: string | ((options: {
3129
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
3130
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
3131
+ }) => string) | undefined;
3132
+ strict?: boolean;
3133
+ inputExamples?: {
3134
+ input: NoInfer<{
3135
+ session_id: string;
3136
+ }>;
3137
+ }[] | undefined;
3138
+ id?: never;
3139
+ isProviderExecuted?: never;
3140
+ args?: never;
3141
+ supportsDeferredResults?: never;
3142
+ } & {
3143
+ type: "dynamic";
3144
+ } & {
3145
+ execute: import("ai").ToolExecuteFunction<{
3146
+ session_id: string;
3147
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3148
+ }) | ({
3149
+ deferLoading?: boolean;
3150
+ title?: string;
3151
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
3152
+ metadata?: import("@ai-sdk/provider").JSONObject;
3153
+ inputSchema: import("ai").FlexibleSchema<{
3154
+ session_id: string;
3155
+ }>;
3156
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
3157
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
3158
+ session_id: string;
3159
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
3160
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3161
+ onInputDelta?: ((options: {
3162
+ inputTextDelta: string;
3163
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3164
+ onInputAvailable?: ((options: {
3165
+ input: {
3166
+ session_id: string;
3167
+ };
3168
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3169
+ toModelOutput?: ((options: {
3170
+ toolCallId: string;
3171
+ input: {
3172
+ session_id: string;
3173
+ };
3174
+ output: NoInfer<BrowserSessionView>;
3175
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
3176
+ } & {
3177
+ outputSchema?: import("ai").FlexibleSchema<BrowserSessionView> | undefined;
3178
+ execute: import("ai").ToolExecuteFunction<{
3179
+ session_id: string;
3180
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3181
+ } & {
3182
+ type: "provider";
3183
+ id: `${string}.${string}`;
3184
+ args: Record<string, unknown>;
3185
+ description?: never;
3186
+ strict?: never;
3187
+ inputExamples?: never;
3188
+ } & {
3189
+ isProviderExecuted: false;
3190
+ supportsDeferredResults?: never;
3191
+ } & {
3192
+ execute: import("ai").ToolExecuteFunction<{
3193
+ session_id: string;
3194
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3195
+ }) | ({
3196
+ deferLoading?: boolean;
3197
+ title?: string;
3198
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
3199
+ metadata?: import("@ai-sdk/provider").JSONObject;
3200
+ inputSchema: import("ai").FlexibleSchema<{
3201
+ session_id: string;
3202
+ }>;
3203
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
3204
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
3205
+ session_id: string;
3206
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
3207
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3208
+ onInputDelta?: ((options: {
3209
+ inputTextDelta: string;
3210
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3211
+ onInputAvailable?: ((options: {
3212
+ input: {
3213
+ session_id: string;
3214
+ };
3215
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
3216
+ toModelOutput?: ((options: {
3217
+ toolCallId: string;
3218
+ input: {
3219
+ session_id: string;
3220
+ };
3221
+ output: NoInfer<BrowserSessionView>;
3222
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
3223
+ } & {
3224
+ outputSchema?: import("ai").FlexibleSchema<BrowserSessionView> | undefined;
3225
+ execute: import("ai").ToolExecuteFunction<{
3226
+ session_id: string;
3227
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3228
+ } & {
3229
+ type: "provider";
3230
+ id: `${string}.${string}`;
3231
+ args: Record<string, unknown>;
3232
+ description?: never;
3233
+ strict?: never;
3234
+ inputExamples?: never;
3235
+ } & {
3236
+ isProviderExecuted: true;
3237
+ supportsDeferredResults?: boolean;
3238
+ } & {
3239
+ execute: import("ai").ToolExecuteFunction<{
3240
+ session_id: string;
3241
+ }, BrowserSessionView, NoInfer<import("@ai-sdk/provider-utils").Context>>;
3242
+ });
3243
+ };
3244
+ /** The eight browser tools. */
3245
+ export type SpecStreamBrowserTools = ReturnType<typeof specstreamBrowserTools>;
1321
3246
  export {};