@opencode-ai/ai 0.0.0-next-16255 → 0.0.0-next-16274
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/llm.d.ts +60 -60
- package/dist/protocols/anthropic-messages.d.ts +303 -303
- package/dist/protocols/anthropic-messages.js +1 -0
- package/dist/protocols/bedrock-converse.d.ts +246 -242
- package/dist/protocols/gemini.d.ts +136 -132
- package/dist/protocols/gemini.js +1 -0
- package/dist/protocols/open-responses.d.ts +232 -232
- package/dist/protocols/openai-chat.d.ts +147 -141
- package/dist/protocols/openai-chat.js +1 -0
- package/dist/protocols/openai-compatible-chat.d.ts +48 -46
- package/dist/protocols/openai-compatible-responses.d.ts +56 -56
- package/dist/protocols/openai-responses.d.ts +388 -388
- package/dist/protocols/shared.d.ts +5 -4
- package/dist/protocols/shared.js +1 -0
- package/dist/protocols/utils/bedrock-media.d.ts +10 -10
- package/dist/protocols/utils/tool-stream.d.ts +180 -180
- package/dist/providers/amazon-bedrock.d.ts +109 -107
- package/dist/providers/anthropic-compatible.d.ts +145 -145
- package/dist/providers/anthropic.d.ts +145 -145
- package/dist/providers/azure.d.ts +112 -110
- package/dist/providers/cloudflare.d.ts +144 -138
- package/dist/providers/github-copilot.d.ts +112 -110
- package/dist/providers/google-vertex-chat.d.ts +48 -46
- package/dist/providers/google-vertex-messages.d.ts +145 -146
- package/dist/providers/google-vertex-responses.d.ts +56 -56
- package/dist/providers/google-vertex.d.ts +52 -50
- package/dist/providers/google.d.ts +52 -50
- package/dist/providers/openai-compatible-responses.d.ts +56 -56
- package/dist/providers/openai-compatible.d.ts +48 -46
- package/dist/providers/openai.d.ts +176 -174
- package/dist/providers/openrouter.d.ts +147 -141
- package/dist/providers/xai.d.ts +112 -110
- package/dist/route/client.d.ts +60 -60
- package/dist/schema/errors.d.ts +2 -6
- package/dist/schema/errors.js +2 -5
- package/dist/schema/events.d.ts +1117 -1115
- package/dist/schema/messages.d.ts +9 -9
- package/dist/schema/messages.js +3 -4
- package/dist/tool-runtime.js +1 -1
- package/dist/tool.d.ts +5 -4
- package/dist/tool.js +1 -0
- package/package.json +5 -5
|
@@ -70,92 +70,92 @@ export declare const finish: <K extends StreamKey>(route: string, tools: State<K
|
|
|
70
70
|
events?: undefined;
|
|
71
71
|
} | {
|
|
72
72
|
tools: Partial<Record<K, PendingTool>>;
|
|
73
|
-
events: readonly (
|
|
74
|
-
readonly type:
|
|
75
|
-
readonly index:
|
|
76
|
-
}
|
|
77
|
-
readonly type: "text-start";
|
|
73
|
+
events: readonly ({
|
|
74
|
+
readonly type: "step-start";
|
|
75
|
+
readonly index: number;
|
|
76
|
+
} | {
|
|
78
77
|
readonly id: string;
|
|
78
|
+
readonly type: "text-start";
|
|
79
79
|
readonly providerMetadata?: {
|
|
80
80
|
readonly [x: string]: {
|
|
81
81
|
readonly [x: string]: unknown;
|
|
82
82
|
};
|
|
83
83
|
} | undefined;
|
|
84
84
|
} | {
|
|
85
|
+
readonly id: string;
|
|
85
86
|
readonly type: "text-delta";
|
|
86
87
|
readonly text: string;
|
|
87
|
-
readonly id: string;
|
|
88
88
|
readonly providerMetadata?: {
|
|
89
89
|
readonly [x: string]: {
|
|
90
90
|
readonly [x: string]: unknown;
|
|
91
91
|
};
|
|
92
92
|
} | undefined;
|
|
93
93
|
} | {
|
|
94
|
-
readonly type: "text-end";
|
|
95
94
|
readonly id: string;
|
|
95
|
+
readonly type: "text-end";
|
|
96
96
|
readonly providerMetadata?: {
|
|
97
97
|
readonly [x: string]: {
|
|
98
98
|
readonly [x: string]: unknown;
|
|
99
99
|
};
|
|
100
100
|
} | undefined;
|
|
101
101
|
} | {
|
|
102
|
-
readonly type: "reasoning-start";
|
|
103
102
|
readonly id: string;
|
|
103
|
+
readonly type: "reasoning-start";
|
|
104
104
|
readonly providerMetadata?: {
|
|
105
105
|
readonly [x: string]: {
|
|
106
106
|
readonly [x: string]: unknown;
|
|
107
107
|
};
|
|
108
108
|
} | undefined;
|
|
109
109
|
} | {
|
|
110
|
+
readonly id: string;
|
|
110
111
|
readonly type: "reasoning-delta";
|
|
111
112
|
readonly text: string;
|
|
112
|
-
readonly id: string;
|
|
113
113
|
readonly providerMetadata?: {
|
|
114
114
|
readonly [x: string]: {
|
|
115
115
|
readonly [x: string]: unknown;
|
|
116
116
|
};
|
|
117
117
|
} | undefined;
|
|
118
118
|
} | {
|
|
119
|
-
readonly type: "reasoning-end";
|
|
120
119
|
readonly id: string;
|
|
120
|
+
readonly type: "reasoning-end";
|
|
121
121
|
readonly providerMetadata?: {
|
|
122
122
|
readonly [x: string]: {
|
|
123
123
|
readonly [x: string]: unknown;
|
|
124
124
|
};
|
|
125
125
|
} | undefined;
|
|
126
126
|
} | {
|
|
127
|
+
readonly id: string;
|
|
127
128
|
readonly type: "tool-input-start";
|
|
128
129
|
readonly name: string;
|
|
129
|
-
readonly id: string;
|
|
130
130
|
readonly providerMetadata?: {
|
|
131
131
|
readonly [x: string]: {
|
|
132
132
|
readonly [x: string]: unknown;
|
|
133
133
|
};
|
|
134
134
|
} | undefined;
|
|
135
135
|
readonly providerExecuted?: boolean | undefined;
|
|
136
|
-
} |
|
|
137
|
-
readonly type:
|
|
138
|
-
readonly id:
|
|
139
|
-
readonly name: import("effect/Schema").String;
|
|
140
|
-
readonly text: import("effect/Schema").String;
|
|
141
|
-
}, "Type"> | {
|
|
142
|
-
readonly type: "tool-input-end";
|
|
136
|
+
} | {
|
|
137
|
+
readonly type: "tool-input-delta";
|
|
138
|
+
readonly id: string;
|
|
143
139
|
readonly name: string;
|
|
140
|
+
readonly text: string;
|
|
141
|
+
} | {
|
|
144
142
|
readonly id: string;
|
|
143
|
+
readonly type: "tool-input-end";
|
|
144
|
+
readonly name: string;
|
|
145
145
|
readonly providerMetadata?: {
|
|
146
146
|
readonly [x: string]: {
|
|
147
147
|
readonly [x: string]: unknown;
|
|
148
148
|
};
|
|
149
149
|
} | undefined;
|
|
150
|
-
} |
|
|
151
|
-
readonly type:
|
|
152
|
-
readonly id:
|
|
153
|
-
readonly name: import("effect/Schema").String;
|
|
154
|
-
readonly raw: import("effect/Schema").String;
|
|
155
|
-
}, "Type"> | {
|
|
156
|
-
readonly type: "tool-call";
|
|
150
|
+
} | {
|
|
151
|
+
readonly type: "tool-input-error";
|
|
152
|
+
readonly id: string;
|
|
157
153
|
readonly name: string;
|
|
154
|
+
readonly raw: string;
|
|
155
|
+
} | {
|
|
158
156
|
readonly id: string;
|
|
157
|
+
readonly type: "tool-call";
|
|
158
|
+
readonly name: string;
|
|
159
159
|
readonly input: unknown;
|
|
160
160
|
readonly providerMetadata?: {
|
|
161
161
|
readonly [x: string]: {
|
|
@@ -164,52 +164,52 @@ export declare const finish: <K extends StreamKey>(route: string, tools: State<K
|
|
|
164
164
|
} | undefined;
|
|
165
165
|
readonly providerExecuted?: boolean | undefined;
|
|
166
166
|
} | {
|
|
167
|
+
readonly id: string;
|
|
167
168
|
readonly type: "tool-result";
|
|
168
169
|
readonly name: string;
|
|
169
|
-
readonly
|
|
170
|
-
|
|
171
|
-
readonly
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
readonly
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
readonly
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
readonly
|
|
181
|
-
|
|
182
|
-
readonly
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
readonly
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
170
|
+
readonly result: {
|
|
171
|
+
readonly type: "json";
|
|
172
|
+
readonly value: unknown;
|
|
173
|
+
} | {
|
|
174
|
+
readonly type: "text";
|
|
175
|
+
readonly value: unknown;
|
|
176
|
+
} | {
|
|
177
|
+
readonly type: "error";
|
|
178
|
+
readonly value: unknown;
|
|
179
|
+
} | {
|
|
180
|
+
readonly type: "content";
|
|
181
|
+
readonly value: readonly ({
|
|
182
|
+
readonly type: "text";
|
|
183
|
+
readonly text: string;
|
|
184
|
+
} | {
|
|
185
|
+
readonly type: "file";
|
|
186
|
+
readonly uri: string;
|
|
187
|
+
readonly mime: string;
|
|
188
|
+
readonly name?: string | undefined;
|
|
189
|
+
})[];
|
|
190
|
+
};
|
|
191
|
+
readonly output?: {
|
|
192
|
+
readonly structured: unknown;
|
|
193
|
+
readonly content: readonly ({
|
|
194
|
+
readonly type: "text";
|
|
195
|
+
readonly text: string;
|
|
196
|
+
} | {
|
|
197
|
+
readonly type: "file";
|
|
198
|
+
readonly uri: string;
|
|
199
|
+
readonly mime: string;
|
|
200
|
+
readonly name?: string | undefined;
|
|
201
|
+
})[];
|
|
202
|
+
} | undefined;
|
|
191
203
|
readonly providerMetadata?: {
|
|
192
204
|
readonly [x: string]: {
|
|
193
205
|
readonly [x: string]: unknown;
|
|
194
206
|
};
|
|
195
207
|
} | undefined;
|
|
196
208
|
readonly providerExecuted?: boolean | undefined;
|
|
197
|
-
readonly output?: import("effect/Schema").Struct.ReadonlySide<{
|
|
198
|
-
readonly structured: import("effect/Schema").Unknown;
|
|
199
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
200
|
-
readonly type: import("effect/Schema").Literal<"text">;
|
|
201
|
-
readonly text: import("effect/Schema").String;
|
|
202
|
-
}>, import("effect/Schema").Struct<{
|
|
203
|
-
readonly type: import("effect/Schema").Literal<"file">;
|
|
204
|
-
readonly uri: import("effect/Schema").String;
|
|
205
|
-
readonly mime: import("effect/Schema").String;
|
|
206
|
-
readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
207
|
-
}>]>>;
|
|
208
|
-
}, "Type"> | undefined;
|
|
209
209
|
} | {
|
|
210
|
+
readonly id: string;
|
|
210
211
|
readonly type: "tool-error";
|
|
211
212
|
readonly name: string;
|
|
212
|
-
readonly id: string;
|
|
213
213
|
readonly message: string;
|
|
214
214
|
readonly error?: unknown;
|
|
215
215
|
readonly providerMetadata?: {
|
|
@@ -263,92 +263,92 @@ export declare const finishWithInput: <K extends StreamKey>(route: string, tools
|
|
|
263
263
|
events?: undefined;
|
|
264
264
|
} | {
|
|
265
265
|
tools: Partial<Record<K, PendingTool>>;
|
|
266
|
-
events: readonly (
|
|
267
|
-
readonly type:
|
|
268
|
-
readonly index:
|
|
269
|
-
}
|
|
270
|
-
readonly type: "text-start";
|
|
266
|
+
events: readonly ({
|
|
267
|
+
readonly type: "step-start";
|
|
268
|
+
readonly index: number;
|
|
269
|
+
} | {
|
|
271
270
|
readonly id: string;
|
|
271
|
+
readonly type: "text-start";
|
|
272
272
|
readonly providerMetadata?: {
|
|
273
273
|
readonly [x: string]: {
|
|
274
274
|
readonly [x: string]: unknown;
|
|
275
275
|
};
|
|
276
276
|
} | undefined;
|
|
277
277
|
} | {
|
|
278
|
+
readonly id: string;
|
|
278
279
|
readonly type: "text-delta";
|
|
279
280
|
readonly text: string;
|
|
280
|
-
readonly id: string;
|
|
281
281
|
readonly providerMetadata?: {
|
|
282
282
|
readonly [x: string]: {
|
|
283
283
|
readonly [x: string]: unknown;
|
|
284
284
|
};
|
|
285
285
|
} | undefined;
|
|
286
286
|
} | {
|
|
287
|
-
readonly type: "text-end";
|
|
288
287
|
readonly id: string;
|
|
288
|
+
readonly type: "text-end";
|
|
289
289
|
readonly providerMetadata?: {
|
|
290
290
|
readonly [x: string]: {
|
|
291
291
|
readonly [x: string]: unknown;
|
|
292
292
|
};
|
|
293
293
|
} | undefined;
|
|
294
294
|
} | {
|
|
295
|
-
readonly type: "reasoning-start";
|
|
296
295
|
readonly id: string;
|
|
296
|
+
readonly type: "reasoning-start";
|
|
297
297
|
readonly providerMetadata?: {
|
|
298
298
|
readonly [x: string]: {
|
|
299
299
|
readonly [x: string]: unknown;
|
|
300
300
|
};
|
|
301
301
|
} | undefined;
|
|
302
302
|
} | {
|
|
303
|
+
readonly id: string;
|
|
303
304
|
readonly type: "reasoning-delta";
|
|
304
305
|
readonly text: string;
|
|
305
|
-
readonly id: string;
|
|
306
306
|
readonly providerMetadata?: {
|
|
307
307
|
readonly [x: string]: {
|
|
308
308
|
readonly [x: string]: unknown;
|
|
309
309
|
};
|
|
310
310
|
} | undefined;
|
|
311
311
|
} | {
|
|
312
|
-
readonly type: "reasoning-end";
|
|
313
312
|
readonly id: string;
|
|
313
|
+
readonly type: "reasoning-end";
|
|
314
314
|
readonly providerMetadata?: {
|
|
315
315
|
readonly [x: string]: {
|
|
316
316
|
readonly [x: string]: unknown;
|
|
317
317
|
};
|
|
318
318
|
} | undefined;
|
|
319
319
|
} | {
|
|
320
|
+
readonly id: string;
|
|
320
321
|
readonly type: "tool-input-start";
|
|
321
322
|
readonly name: string;
|
|
322
|
-
readonly id: string;
|
|
323
323
|
readonly providerMetadata?: {
|
|
324
324
|
readonly [x: string]: {
|
|
325
325
|
readonly [x: string]: unknown;
|
|
326
326
|
};
|
|
327
327
|
} | undefined;
|
|
328
328
|
readonly providerExecuted?: boolean | undefined;
|
|
329
|
-
} |
|
|
330
|
-
readonly type:
|
|
331
|
-
readonly id:
|
|
332
|
-
readonly name: import("effect/Schema").String;
|
|
333
|
-
readonly text: import("effect/Schema").String;
|
|
334
|
-
}, "Type"> | {
|
|
335
|
-
readonly type: "tool-input-end";
|
|
329
|
+
} | {
|
|
330
|
+
readonly type: "tool-input-delta";
|
|
331
|
+
readonly id: string;
|
|
336
332
|
readonly name: string;
|
|
333
|
+
readonly text: string;
|
|
334
|
+
} | {
|
|
337
335
|
readonly id: string;
|
|
336
|
+
readonly type: "tool-input-end";
|
|
337
|
+
readonly name: string;
|
|
338
338
|
readonly providerMetadata?: {
|
|
339
339
|
readonly [x: string]: {
|
|
340
340
|
readonly [x: string]: unknown;
|
|
341
341
|
};
|
|
342
342
|
} | undefined;
|
|
343
|
-
} |
|
|
344
|
-
readonly type:
|
|
345
|
-
readonly id:
|
|
346
|
-
readonly name: import("effect/Schema").String;
|
|
347
|
-
readonly raw: import("effect/Schema").String;
|
|
348
|
-
}, "Type"> | {
|
|
349
|
-
readonly type: "tool-call";
|
|
343
|
+
} | {
|
|
344
|
+
readonly type: "tool-input-error";
|
|
345
|
+
readonly id: string;
|
|
350
346
|
readonly name: string;
|
|
347
|
+
readonly raw: string;
|
|
348
|
+
} | {
|
|
351
349
|
readonly id: string;
|
|
350
|
+
readonly type: "tool-call";
|
|
351
|
+
readonly name: string;
|
|
352
352
|
readonly input: unknown;
|
|
353
353
|
readonly providerMetadata?: {
|
|
354
354
|
readonly [x: string]: {
|
|
@@ -357,52 +357,52 @@ export declare const finishWithInput: <K extends StreamKey>(route: string, tools
|
|
|
357
357
|
} | undefined;
|
|
358
358
|
readonly providerExecuted?: boolean | undefined;
|
|
359
359
|
} | {
|
|
360
|
+
readonly id: string;
|
|
360
361
|
readonly type: "tool-result";
|
|
361
362
|
readonly name: string;
|
|
362
|
-
readonly
|
|
363
|
-
|
|
364
|
-
readonly
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
readonly
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
readonly
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
readonly
|
|
374
|
-
|
|
375
|
-
readonly
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
readonly
|
|
379
|
-
readonly
|
|
380
|
-
readonly
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
363
|
+
readonly result: {
|
|
364
|
+
readonly type: "json";
|
|
365
|
+
readonly value: unknown;
|
|
366
|
+
} | {
|
|
367
|
+
readonly type: "text";
|
|
368
|
+
readonly value: unknown;
|
|
369
|
+
} | {
|
|
370
|
+
readonly type: "error";
|
|
371
|
+
readonly value: unknown;
|
|
372
|
+
} | {
|
|
373
|
+
readonly type: "content";
|
|
374
|
+
readonly value: readonly ({
|
|
375
|
+
readonly type: "text";
|
|
376
|
+
readonly text: string;
|
|
377
|
+
} | {
|
|
378
|
+
readonly type: "file";
|
|
379
|
+
readonly uri: string;
|
|
380
|
+
readonly mime: string;
|
|
381
|
+
readonly name?: string | undefined;
|
|
382
|
+
})[];
|
|
383
|
+
};
|
|
384
|
+
readonly output?: {
|
|
385
|
+
readonly structured: unknown;
|
|
386
|
+
readonly content: readonly ({
|
|
387
|
+
readonly type: "text";
|
|
388
|
+
readonly text: string;
|
|
389
|
+
} | {
|
|
390
|
+
readonly type: "file";
|
|
391
|
+
readonly uri: string;
|
|
392
|
+
readonly mime: string;
|
|
393
|
+
readonly name?: string | undefined;
|
|
394
|
+
})[];
|
|
395
|
+
} | undefined;
|
|
384
396
|
readonly providerMetadata?: {
|
|
385
397
|
readonly [x: string]: {
|
|
386
398
|
readonly [x: string]: unknown;
|
|
387
399
|
};
|
|
388
400
|
} | undefined;
|
|
389
401
|
readonly providerExecuted?: boolean | undefined;
|
|
390
|
-
readonly output?: import("effect/Schema").Struct.ReadonlySide<{
|
|
391
|
-
readonly structured: import("effect/Schema").Unknown;
|
|
392
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
393
|
-
readonly type: import("effect/Schema").Literal<"text">;
|
|
394
|
-
readonly text: import("effect/Schema").String;
|
|
395
|
-
}>, import("effect/Schema").Struct<{
|
|
396
|
-
readonly type: import("effect/Schema").Literal<"file">;
|
|
397
|
-
readonly uri: import("effect/Schema").String;
|
|
398
|
-
readonly mime: import("effect/Schema").String;
|
|
399
|
-
readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
400
|
-
}>]>>;
|
|
401
|
-
}, "Type"> | undefined;
|
|
402
402
|
} | {
|
|
403
|
+
readonly id: string;
|
|
403
404
|
readonly type: "tool-error";
|
|
404
405
|
readonly name: string;
|
|
405
|
-
readonly id: string;
|
|
406
406
|
readonly message: string;
|
|
407
407
|
readonly error?: unknown;
|
|
408
408
|
readonly providerMetadata?: {
|
|
@@ -453,92 +453,92 @@ export declare const finishWithInput: <K extends StreamKey>(route: string, tools
|
|
|
453
453
|
*/
|
|
454
454
|
export declare const finishAll: <K extends StreamKey>(route: string, tools: State<K>) => Effect.Effect<{
|
|
455
455
|
tools: Partial<Record<K, PendingTool>>;
|
|
456
|
-
events: (
|
|
457
|
-
readonly type:
|
|
458
|
-
readonly index:
|
|
459
|
-
}
|
|
460
|
-
readonly type: "text-start";
|
|
456
|
+
events: ({
|
|
457
|
+
readonly type: "step-start";
|
|
458
|
+
readonly index: number;
|
|
459
|
+
} | {
|
|
461
460
|
readonly id: string;
|
|
461
|
+
readonly type: "text-start";
|
|
462
462
|
readonly providerMetadata?: {
|
|
463
463
|
readonly [x: string]: {
|
|
464
464
|
readonly [x: string]: unknown;
|
|
465
465
|
};
|
|
466
466
|
} | undefined;
|
|
467
467
|
} | {
|
|
468
|
+
readonly id: string;
|
|
468
469
|
readonly type: "text-delta";
|
|
469
470
|
readonly text: string;
|
|
470
|
-
readonly id: string;
|
|
471
471
|
readonly providerMetadata?: {
|
|
472
472
|
readonly [x: string]: {
|
|
473
473
|
readonly [x: string]: unknown;
|
|
474
474
|
};
|
|
475
475
|
} | undefined;
|
|
476
476
|
} | {
|
|
477
|
-
readonly type: "text-end";
|
|
478
477
|
readonly id: string;
|
|
478
|
+
readonly type: "text-end";
|
|
479
479
|
readonly providerMetadata?: {
|
|
480
480
|
readonly [x: string]: {
|
|
481
481
|
readonly [x: string]: unknown;
|
|
482
482
|
};
|
|
483
483
|
} | undefined;
|
|
484
484
|
} | {
|
|
485
|
-
readonly type: "reasoning-start";
|
|
486
485
|
readonly id: string;
|
|
486
|
+
readonly type: "reasoning-start";
|
|
487
487
|
readonly providerMetadata?: {
|
|
488
488
|
readonly [x: string]: {
|
|
489
489
|
readonly [x: string]: unknown;
|
|
490
490
|
};
|
|
491
491
|
} | undefined;
|
|
492
492
|
} | {
|
|
493
|
+
readonly id: string;
|
|
493
494
|
readonly type: "reasoning-delta";
|
|
494
495
|
readonly text: string;
|
|
495
|
-
readonly id: string;
|
|
496
496
|
readonly providerMetadata?: {
|
|
497
497
|
readonly [x: string]: {
|
|
498
498
|
readonly [x: string]: unknown;
|
|
499
499
|
};
|
|
500
500
|
} | undefined;
|
|
501
501
|
} | {
|
|
502
|
-
readonly type: "reasoning-end";
|
|
503
502
|
readonly id: string;
|
|
503
|
+
readonly type: "reasoning-end";
|
|
504
504
|
readonly providerMetadata?: {
|
|
505
505
|
readonly [x: string]: {
|
|
506
506
|
readonly [x: string]: unknown;
|
|
507
507
|
};
|
|
508
508
|
} | undefined;
|
|
509
509
|
} | {
|
|
510
|
+
readonly id: string;
|
|
510
511
|
readonly type: "tool-input-start";
|
|
511
512
|
readonly name: string;
|
|
512
|
-
readonly id: string;
|
|
513
513
|
readonly providerMetadata?: {
|
|
514
514
|
readonly [x: string]: {
|
|
515
515
|
readonly [x: string]: unknown;
|
|
516
516
|
};
|
|
517
517
|
} | undefined;
|
|
518
518
|
readonly providerExecuted?: boolean | undefined;
|
|
519
|
-
} |
|
|
520
|
-
readonly type:
|
|
521
|
-
readonly id:
|
|
522
|
-
readonly name: import("effect/Schema").String;
|
|
523
|
-
readonly text: import("effect/Schema").String;
|
|
524
|
-
}, "Type"> | {
|
|
525
|
-
readonly type: "tool-input-end";
|
|
519
|
+
} | {
|
|
520
|
+
readonly type: "tool-input-delta";
|
|
521
|
+
readonly id: string;
|
|
526
522
|
readonly name: string;
|
|
523
|
+
readonly text: string;
|
|
524
|
+
} | {
|
|
527
525
|
readonly id: string;
|
|
526
|
+
readonly type: "tool-input-end";
|
|
527
|
+
readonly name: string;
|
|
528
528
|
readonly providerMetadata?: {
|
|
529
529
|
readonly [x: string]: {
|
|
530
530
|
readonly [x: string]: unknown;
|
|
531
531
|
};
|
|
532
532
|
} | undefined;
|
|
533
|
-
} |
|
|
534
|
-
readonly type:
|
|
535
|
-
readonly id:
|
|
536
|
-
readonly name: import("effect/Schema").String;
|
|
537
|
-
readonly raw: import("effect/Schema").String;
|
|
538
|
-
}, "Type"> | {
|
|
539
|
-
readonly type: "tool-call";
|
|
533
|
+
} | {
|
|
534
|
+
readonly type: "tool-input-error";
|
|
535
|
+
readonly id: string;
|
|
540
536
|
readonly name: string;
|
|
537
|
+
readonly raw: string;
|
|
538
|
+
} | {
|
|
541
539
|
readonly id: string;
|
|
540
|
+
readonly type: "tool-call";
|
|
541
|
+
readonly name: string;
|
|
542
542
|
readonly input: unknown;
|
|
543
543
|
readonly providerMetadata?: {
|
|
544
544
|
readonly [x: string]: {
|
|
@@ -547,52 +547,52 @@ export declare const finishAll: <K extends StreamKey>(route: string, tools: Stat
|
|
|
547
547
|
} | undefined;
|
|
548
548
|
readonly providerExecuted?: boolean | undefined;
|
|
549
549
|
} | {
|
|
550
|
+
readonly id: string;
|
|
550
551
|
readonly type: "tool-result";
|
|
551
552
|
readonly name: string;
|
|
552
|
-
readonly
|
|
553
|
-
|
|
554
|
-
readonly
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
readonly
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
readonly
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
readonly
|
|
564
|
-
|
|
565
|
-
readonly
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
readonly
|
|
569
|
-
readonly
|
|
570
|
-
readonly
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
553
|
+
readonly result: {
|
|
554
|
+
readonly type: "json";
|
|
555
|
+
readonly value: unknown;
|
|
556
|
+
} | {
|
|
557
|
+
readonly type: "text";
|
|
558
|
+
readonly value: unknown;
|
|
559
|
+
} | {
|
|
560
|
+
readonly type: "error";
|
|
561
|
+
readonly value: unknown;
|
|
562
|
+
} | {
|
|
563
|
+
readonly type: "content";
|
|
564
|
+
readonly value: readonly ({
|
|
565
|
+
readonly type: "text";
|
|
566
|
+
readonly text: string;
|
|
567
|
+
} | {
|
|
568
|
+
readonly type: "file";
|
|
569
|
+
readonly uri: string;
|
|
570
|
+
readonly mime: string;
|
|
571
|
+
readonly name?: string | undefined;
|
|
572
|
+
})[];
|
|
573
|
+
};
|
|
574
|
+
readonly output?: {
|
|
575
|
+
readonly structured: unknown;
|
|
576
|
+
readonly content: readonly ({
|
|
577
|
+
readonly type: "text";
|
|
578
|
+
readonly text: string;
|
|
579
|
+
} | {
|
|
580
|
+
readonly type: "file";
|
|
581
|
+
readonly uri: string;
|
|
582
|
+
readonly mime: string;
|
|
583
|
+
readonly name?: string | undefined;
|
|
584
|
+
})[];
|
|
585
|
+
} | undefined;
|
|
574
586
|
readonly providerMetadata?: {
|
|
575
587
|
readonly [x: string]: {
|
|
576
588
|
readonly [x: string]: unknown;
|
|
577
589
|
};
|
|
578
590
|
} | undefined;
|
|
579
591
|
readonly providerExecuted?: boolean | undefined;
|
|
580
|
-
readonly output?: import("effect/Schema").Struct.ReadonlySide<{
|
|
581
|
-
readonly structured: import("effect/Schema").Unknown;
|
|
582
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
583
|
-
readonly type: import("effect/Schema").Literal<"text">;
|
|
584
|
-
readonly text: import("effect/Schema").String;
|
|
585
|
-
}>, import("effect/Schema").Struct<{
|
|
586
|
-
readonly type: import("effect/Schema").Literal<"file">;
|
|
587
|
-
readonly uri: import("effect/Schema").String;
|
|
588
|
-
readonly mime: import("effect/Schema").String;
|
|
589
|
-
readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
590
|
-
}>]>>;
|
|
591
|
-
}, "Type"> | undefined;
|
|
592
592
|
} | {
|
|
593
|
+
readonly id: string;
|
|
593
594
|
readonly type: "tool-error";
|
|
594
595
|
readonly name: string;
|
|
595
|
-
readonly id: string;
|
|
596
596
|
readonly message: string;
|
|
597
597
|
readonly error?: unknown;
|
|
598
598
|
readonly providerMetadata?: {
|