@effect-uai/core 0.18.0 → 0.19.0-dev-20261109183959
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/Content-D_Qfn8Ja.d.mts +48 -0
- package/dist/Content-D_Qfn8Ja.d.mts.map +1 -0
- package/dist/File-B923KvZ9.d.mts +46 -0
- package/dist/File-B923KvZ9.d.mts.map +1 -0
- package/dist/{Image-Cv6iBLTy.d.mts → Image-Bzc1H_UK.d.mts} +19 -8
- package/dist/Image-Bzc1H_UK.d.mts.map +1 -0
- package/dist/{Items-C7MyrYPX.d.mts → Items-Bvx8s9QH.d.mts} +109 -16
- package/dist/Items-Bvx8s9QH.d.mts.map +1 -0
- package/dist/{Loop-ChpaO-ya.d.mts → Loop-CeA0AelN.d.mts} +7 -6
- package/dist/Loop-CeA0AelN.d.mts.map +1 -0
- package/dist/Tool-Bkryw6-h.d.mts +206 -0
- package/dist/Tool-Bkryw6-h.d.mts.map +1 -0
- package/dist/ToolEvent-9inLx5cI.d.mts +22 -0
- package/dist/ToolEvent-9inLx5cI.d.mts.map +1 -0
- package/dist/ToolOutput-BNTIQgGB.d.mts +151 -0
- package/dist/ToolOutput-BNTIQgGB.d.mts.map +1 -0
- package/dist/Toolkit-D2VGeD5R.d.mts +212 -0
- package/dist/Toolkit-D2VGeD5R.d.mts.map +1 -0
- package/dist/browser/BrowserTool.d.mts +84 -22
- package/dist/browser/BrowserTool.d.mts.map +1 -1
- package/dist/browser/BrowserTool.mjs +5 -0
- package/dist/browser/BrowserTool.mjs.map +1 -1
- package/dist/capabilities/Capabilities.d.mts +1 -1
- package/dist/decision-model/Decision.test.mjs +1 -1
- package/dist/{dist-C8RmtoR8.mjs → dist-B5K-y4Be.mjs} +51 -32
- package/dist/dist-B5K-y4Be.mjs.map +1 -0
- package/dist/domain/File.d.mts +2 -0
- package/dist/domain/File.mjs +51 -0
- package/dist/domain/File.mjs.map +1 -0
- package/dist/domain/Image.d.mts +2 -2
- package/dist/domain/Image.mjs +12 -2
- package/dist/domain/Image.mjs.map +1 -1
- package/dist/domain/Items.d.mts +2 -2
- package/dist/domain/Items.mjs +65 -4
- package/dist/domain/Items.mjs.map +1 -1
- package/dist/domain/Realtime.d.mts +72 -490
- package/dist/domain/Realtime.d.mts.map +1 -1
- package/dist/domain/Research.d.mts +1 -1
- package/dist/domain/Transcript.test.mjs +1 -1
- package/dist/domain/Turn.d.mts +57 -262
- package/dist/domain/Turn.d.mts.map +1 -1
- package/dist/domain/Turn.mjs +1 -1
- package/dist/embedding-model/Embedding.d.mts +1 -1
- package/dist/image-generator/ImageGenerator.d.mts +10 -66
- package/dist/image-generator/ImageGenerator.d.mts.map +1 -1
- package/dist/index.d.mts +10 -9
- package/dist/index.mjs +7 -6
- package/dist/language-model/LanguageModel.d.mts +2 -2
- package/dist/loop/Loop.d.mts +1 -1
- package/dist/loop/Loop.mjs.map +1 -1
- package/dist/messenger/Messenger.d.mts +43 -289
- package/dist/messenger/Messenger.d.mts.map +1 -1
- package/dist/messenger/MessengerAdapter.test.mjs +1 -1
- package/dist/observability/Metrics.d.mts +1 -1
- package/dist/observability/Metrics.test.mjs +1 -1
- package/dist/observability/Telemetry.test.mjs +1 -1
- package/dist/realtime/RealtimeSession.d.mts +1 -1
- package/dist/realtime/RealtimeSession.test.mjs +1 -1
- package/dist/sandbox/Sandbox.d.mts +32 -237
- package/dist/sandbox/Sandbox.d.mts.map +1 -1
- package/dist/streaming/Multipart.mjs +2 -1
- package/dist/streaming/Multipart.mjs.map +1 -1
- package/dist/streaming/Multipart.test.mjs +28 -0
- package/dist/streaming/Multipart.test.mjs.map +1 -0
- package/dist/streaming/Settle.test.mjs +1 -1
- package/dist/streaming/WebSocketSession.test.mjs +1 -1
- package/dist/testing/MockMessenger.d.mts +19 -134
- package/dist/testing/MockMessenger.d.mts.map +1 -1
- package/dist/testing/MockProvider.d.mts +1 -1
- package/dist/testing/MockSandbox.d.mts +65 -446
- package/dist/testing/MockSandbox.d.mts.map +1 -1
- package/dist/tool/Content.d.mts +2 -0
- package/dist/tool/Content.mjs +46 -0
- package/dist/tool/Content.mjs.map +1 -0
- package/dist/tool/Content.test.d.mts +1 -0
- package/dist/tool/Content.test.mjs +48 -0
- package/dist/tool/Content.test.mjs.map +1 -0
- package/dist/tool/HistoryCheck.d.mts +6 -15
- package/dist/tool/HistoryCheck.d.mts.map +1 -1
- package/dist/tool/HistoryCheck.mjs +10 -24
- package/dist/tool/HistoryCheck.mjs.map +1 -1
- package/dist/tool/Tool.d.mts +2 -2
- package/dist/tool/Tool.mjs +55 -130
- package/dist/tool/Tool.mjs.map +1 -1
- package/dist/tool/Tool.test.mjs +220 -176
- package/dist/tool/Tool.test.mjs.map +1 -1
- package/dist/tool/ToolDecision.d.mts +164 -0
- package/dist/tool/ToolDecision.d.mts.map +1 -0
- package/dist/tool/ToolDecision.mjs +146 -0
- package/dist/tool/ToolDecision.mjs.map +1 -0
- package/dist/tool/ToolDecision.test.d.mts +1 -0
- package/dist/tool/ToolDecision.test.mjs +330 -0
- package/dist/tool/ToolDecision.test.mjs.map +1 -0
- package/dist/tool/ToolEvent.d.mts +2 -2
- package/dist/tool/ToolEvent.mjs +2 -34
- package/dist/tool/ToolEvent.mjs.map +1 -1
- package/dist/tool/ToolOutput.d.mts +2 -0
- package/dist/tool/ToolOutput.mjs +128 -0
- package/dist/tool/ToolOutput.mjs.map +1 -0
- package/dist/tool/ToolOutput.test.d.mts +1 -0
- package/dist/tool/ToolOutput.test.mjs +153 -0
- package/dist/tool/ToolOutput.test.mjs.map +1 -0
- package/dist/tool/Toolkit.d.mts +2 -2
- package/dist/tool/Toolkit.mjs +230 -165
- package/dist/tool/Toolkit.mjs.map +1 -1
- package/dist/tool/Toolkit.test.mjs +431 -389
- package/dist/tool/Toolkit.test.mjs.map +1 -1
- package/dist/web-read/WebReadTool.d.mts +2 -2
- package/dist/web-read/WebReadTool.mjs +1 -0
- package/dist/web-read/WebReadTool.mjs.map +1 -1
- package/dist/web-search/WebSearchTool.d.mts +2 -2
- package/dist/web-search/WebSearchTool.mjs +1 -0
- package/dist/web-search/WebSearchTool.mjs.map +1 -1
- package/package.json +17 -9
- package/src/browser/BrowserTool.ts +5 -0
- package/src/domain/File.ts +79 -0
- package/src/domain/Image.ts +14 -4
- package/src/domain/Items.ts +39 -3
- package/src/index.ts +3 -2
- package/src/loop/Loop.ts +24 -13
- package/src/streaming/Multipart.test.ts +26 -0
- package/src/streaming/Multipart.ts +5 -4
- package/src/tool/Content.test.ts +40 -0
- package/src/tool/Content.ts +38 -0
- package/src/tool/HistoryCheck.ts +21 -26
- package/src/tool/Tool.test.ts +240 -241
- package/src/tool/Tool.ts +203 -308
- package/src/tool/ToolDecision.test.ts +301 -0
- package/src/tool/ToolDecision.ts +360 -0
- package/src/tool/ToolEvent.ts +21 -41
- package/src/tool/ToolOutput.test.ts +132 -0
- package/src/tool/ToolOutput.ts +198 -0
- package/src/tool/Toolkit.test.ts +594 -454
- package/src/tool/Toolkit.ts +631 -356
- package/src/web-read/WebReadTool.ts +2 -1
- package/src/web-search/WebSearchTool.ts +2 -1
- package/dist/Image-Cv6iBLTy.d.mts.map +0 -1
- package/dist/Items-C7MyrYPX.d.mts.map +0 -1
- package/dist/Loop-ChpaO-ya.d.mts.map +0 -1
- package/dist/Tool-BF78QWtn.d.mts +0 -314
- package/dist/Tool-BF78QWtn.d.mts.map +0 -1
- package/dist/ToolEvent-Di4a723B.d.mts +0 -144
- package/dist/ToolEvent-Di4a723B.d.mts.map +0 -1
- package/dist/ToolResult-BsYQRjmW.d.mts +0 -152
- package/dist/ToolResult-BsYQRjmW.d.mts.map +0 -1
- package/dist/Toolkit-tlL0F2YR.d.mts +0 -193
- package/dist/Toolkit-tlL0F2YR.d.mts.map +0 -1
- package/dist/dist-C8RmtoR8.mjs.map +0 -1
- package/dist/tool/Approval.d.mts +0 -113
- package/dist/tool/Approval.d.mts.map +0 -1
- package/dist/tool/Approval.mjs +0 -80
- package/dist/tool/Approval.mjs.map +0 -1
- package/dist/tool/Approval.test.mjs +0 -371
- package/dist/tool/Approval.test.mjs.map +0 -1
- package/dist/tool/ToolResult.d.mts +0 -2
- package/dist/tool/ToolResult.mjs +0 -85
- package/dist/tool/ToolResult.mjs.map +0 -1
- package/src/tool/Approval.test.ts +0 -400
- package/src/tool/Approval.ts +0 -181
- package/src/tool/ToolResult.ts +0 -114
- /package/dist/{tool/Approval.test.d.mts → streaming/Multipart.test.d.mts} +0 -0
package/dist/domain/Turn.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as FileSource } from "../File-B923KvZ9.mjs";
|
|
2
|
+
import { o as ImageSource } from "../Image-Bzc1H_UK.mjs";
|
|
3
|
+
import { S as ToolCallOutput, T as Usage, _ as Reasoning, o as HistoryItem, p as Message, t as Annotation, x as ToolCall } from "../Items-Bvx8s9QH.mjs";
|
|
3
4
|
import { i as StructuredFormat, n as JsonParseError, r as StructuredDecodeError } from "../StructuredFormat-BlZhyOsi.mjs";
|
|
4
5
|
import { Data, Effect, Schema, Stream } from "effect";
|
|
5
6
|
declare namespace Turn_d_exports {
|
|
@@ -19,7 +20,7 @@ declare const Turn: Schema.Struct<{
|
|
|
19
20
|
readonly text: Schema.String;
|
|
20
21
|
}>, Schema.Struct<{
|
|
21
22
|
readonly type: Schema.Literal<"input_image">;
|
|
22
|
-
readonly source: Schema.
|
|
23
|
+
readonly source: Schema.Codec<ImageSource, ImageSource, never, never>;
|
|
23
24
|
}>, Schema.Struct<{
|
|
24
25
|
readonly type: Schema.Literal<"output_text">;
|
|
25
26
|
readonly text: Schema.String;
|
|
@@ -48,7 +49,7 @@ declare const Turn: Schema.Struct<{
|
|
|
48
49
|
}>]>>>;
|
|
49
50
|
}>, Schema.Struct<{
|
|
50
51
|
readonly type: Schema.Literal<"output_image">;
|
|
51
|
-
readonly source: Schema.
|
|
52
|
+
readonly source: Schema.Codec<ImageSource, ImageSource, never, never>;
|
|
52
53
|
}>, Schema.Struct<{
|
|
53
54
|
readonly type: Schema.Literal<"refusal">;
|
|
54
55
|
readonly text: Schema.String;
|
|
@@ -63,7 +64,21 @@ declare const Turn: Schema.Struct<{
|
|
|
63
64
|
}>, Schema.Struct<{
|
|
64
65
|
readonly type: Schema.Literal<"function_call_output">;
|
|
65
66
|
readonly call_id: Schema.String;
|
|
66
|
-
readonly output: Schema.
|
|
67
|
+
readonly output: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
68
|
+
readonly type: Schema.Literal<"input_text">;
|
|
69
|
+
readonly text: Schema.String;
|
|
70
|
+
}>, Schema.Struct<{
|
|
71
|
+
readonly type: Schema.Literal<"input_json">;
|
|
72
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
73
|
+
}>, Schema.Struct<{
|
|
74
|
+
readonly type: Schema.Literal<"input_image">;
|
|
75
|
+
readonly source: Schema.Codec<ImageSource, ImageSource, never, never>;
|
|
76
|
+
}>, Schema.Struct<{
|
|
77
|
+
readonly type: Schema.Literal<"input_file">;
|
|
78
|
+
readonly source: Schema.Codec<FileSource, FileSource, never, never>;
|
|
79
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
80
|
+
}>]>>;
|
|
81
|
+
readonly isError: Schema.optionalKey<Schema.Boolean>;
|
|
67
82
|
readonly providerData: Schema.optional<Schema.Unknown>;
|
|
68
83
|
}>, Schema.Struct<{
|
|
69
84
|
readonly type: Schema.Literal<"reasoning">;
|
|
@@ -159,263 +174,43 @@ type TurnEvent = Data.TaggedEnum<{
|
|
|
159
174
|
readonly turn: Turn;
|
|
160
175
|
};
|
|
161
176
|
}>;
|
|
162
|
-
declare const TurnEvent: {
|
|
163
|
-
readonly
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
readonly name: string;
|
|
200
|
-
}, {
|
|
201
|
-
readonly _tag: Tag;
|
|
202
|
-
}> | Extract<{
|
|
203
|
-
readonly _tag: "TurnComplete";
|
|
204
|
-
readonly turn: Turn;
|
|
205
|
-
}, {
|
|
206
|
-
readonly _tag: Tag;
|
|
207
|
-
}> | Extract<{
|
|
208
|
-
readonly _tag: "UsageUpdate";
|
|
209
|
-
readonly usage: Usage;
|
|
210
|
-
}, {
|
|
211
|
-
readonly _tag: Tag;
|
|
212
|
-
}> | Extract<{
|
|
213
|
-
readonly _tag: "WebSearchCall";
|
|
214
|
-
readonly status: "started" | "searching" | "completed";
|
|
215
|
-
readonly query?: string;
|
|
216
|
-
readonly action?: "search" | "open_page" | "find_in_page";
|
|
217
|
-
}, {
|
|
218
|
-
readonly _tag: Tag;
|
|
219
|
-
}>;
|
|
220
|
-
readonly $match: {
|
|
221
|
-
<Cases extends { readonly [Tag in "CitationAdded" | "ImageOutput" | "ReasoningDelta" | "RefusalDelta" | "TextDelta" | "ToolCallArgsDelta" | "ToolCallStart" | "TurnComplete" | "UsageUpdate" | "WebSearchCall"]: (args: Extract<{
|
|
222
|
-
readonly _tag: "CitationAdded";
|
|
223
|
-
readonly annotation: Annotation;
|
|
224
|
-
} | {
|
|
225
|
-
readonly _tag: "ImageOutput";
|
|
226
|
-
readonly image: ImageSource;
|
|
227
|
-
readonly partialIndex?: number;
|
|
228
|
-
} | {
|
|
229
|
-
readonly _tag: "ReasoningDelta";
|
|
230
|
-
readonly text: string;
|
|
231
|
-
readonly kind: "trace" | "summary";
|
|
232
|
-
} | {
|
|
233
|
-
readonly _tag: "RefusalDelta";
|
|
234
|
-
readonly text: string;
|
|
235
|
-
} | {
|
|
236
|
-
readonly _tag: "TextDelta";
|
|
237
|
-
readonly text: string;
|
|
238
|
-
} | {
|
|
239
|
-
readonly _tag: "ToolCallArgsDelta";
|
|
240
|
-
readonly call_id: string;
|
|
241
|
-
readonly delta: string;
|
|
242
|
-
} | {
|
|
243
|
-
readonly _tag: "ToolCallStart";
|
|
244
|
-
readonly call_id: string;
|
|
245
|
-
readonly name: string;
|
|
246
|
-
} | {
|
|
247
|
-
readonly _tag: "TurnComplete";
|
|
248
|
-
readonly turn: Turn;
|
|
249
|
-
} | {
|
|
250
|
-
readonly _tag: "UsageUpdate";
|
|
251
|
-
readonly usage: Usage;
|
|
252
|
-
} | {
|
|
253
|
-
readonly _tag: "WebSearchCall";
|
|
254
|
-
readonly status: "started" | "searching" | "completed";
|
|
255
|
-
readonly query?: string;
|
|
256
|
-
readonly action?: "search" | "open_page" | "find_in_page";
|
|
257
|
-
}, {
|
|
258
|
-
readonly _tag: Tag;
|
|
259
|
-
}>) => any; }>(cases: Cases): (value: {
|
|
260
|
-
readonly _tag: "CitationAdded";
|
|
261
|
-
readonly annotation: Annotation;
|
|
262
|
-
} | {
|
|
263
|
-
readonly _tag: "ImageOutput";
|
|
264
|
-
readonly image: ImageSource;
|
|
265
|
-
readonly partialIndex?: number;
|
|
266
|
-
} | {
|
|
267
|
-
readonly _tag: "ReasoningDelta";
|
|
268
|
-
readonly text: string;
|
|
269
|
-
readonly kind: "trace" | "summary";
|
|
270
|
-
} | {
|
|
271
|
-
readonly _tag: "RefusalDelta";
|
|
272
|
-
readonly text: string;
|
|
273
|
-
} | {
|
|
274
|
-
readonly _tag: "TextDelta";
|
|
275
|
-
readonly text: string;
|
|
276
|
-
} | {
|
|
277
|
-
readonly _tag: "ToolCallArgsDelta";
|
|
278
|
-
readonly call_id: string;
|
|
279
|
-
readonly delta: string;
|
|
280
|
-
} | {
|
|
281
|
-
readonly _tag: "ToolCallStart";
|
|
282
|
-
readonly call_id: string;
|
|
283
|
-
readonly name: string;
|
|
284
|
-
} | {
|
|
285
|
-
readonly _tag: "TurnComplete";
|
|
286
|
-
readonly turn: Turn;
|
|
287
|
-
} | {
|
|
288
|
-
readonly _tag: "UsageUpdate";
|
|
289
|
-
readonly usage: Usage;
|
|
290
|
-
} | {
|
|
291
|
-
readonly _tag: "WebSearchCall";
|
|
292
|
-
readonly status: "started" | "searching" | "completed";
|
|
293
|
-
readonly query?: string;
|
|
294
|
-
readonly action?: "search" | "open_page" | "find_in_page";
|
|
295
|
-
}) => import("effect/Unify").Unify<ReturnType<Cases["CitationAdded" | "ImageOutput" | "ReasoningDelta" | "RefusalDelta" | "TextDelta" | "ToolCallArgsDelta" | "ToolCallStart" | "TurnComplete" | "UsageUpdate" | "WebSearchCall"]>>;
|
|
296
|
-
<Cases extends { readonly [Tag in "CitationAdded" | "ImageOutput" | "ReasoningDelta" | "RefusalDelta" | "TextDelta" | "ToolCallArgsDelta" | "ToolCallStart" | "TurnComplete" | "UsageUpdate" | "WebSearchCall"]: (args: Extract<{
|
|
297
|
-
readonly _tag: "CitationAdded";
|
|
298
|
-
readonly annotation: Annotation;
|
|
299
|
-
} | {
|
|
300
|
-
readonly _tag: "ImageOutput";
|
|
301
|
-
readonly image: ImageSource;
|
|
302
|
-
readonly partialIndex?: number;
|
|
303
|
-
} | {
|
|
304
|
-
readonly _tag: "ReasoningDelta";
|
|
305
|
-
readonly text: string;
|
|
306
|
-
readonly kind: "trace" | "summary";
|
|
307
|
-
} | {
|
|
308
|
-
readonly _tag: "RefusalDelta";
|
|
309
|
-
readonly text: string;
|
|
310
|
-
} | {
|
|
311
|
-
readonly _tag: "TextDelta";
|
|
312
|
-
readonly text: string;
|
|
313
|
-
} | {
|
|
314
|
-
readonly _tag: "ToolCallArgsDelta";
|
|
315
|
-
readonly call_id: string;
|
|
316
|
-
readonly delta: string;
|
|
317
|
-
} | {
|
|
318
|
-
readonly _tag: "ToolCallStart";
|
|
319
|
-
readonly call_id: string;
|
|
320
|
-
readonly name: string;
|
|
321
|
-
} | {
|
|
322
|
-
readonly _tag: "TurnComplete";
|
|
323
|
-
readonly turn: Turn;
|
|
324
|
-
} | {
|
|
325
|
-
readonly _tag: "UsageUpdate";
|
|
326
|
-
readonly usage: Usage;
|
|
327
|
-
} | {
|
|
328
|
-
readonly _tag: "WebSearchCall";
|
|
329
|
-
readonly status: "started" | "searching" | "completed";
|
|
330
|
-
readonly query?: string;
|
|
331
|
-
readonly action?: "search" | "open_page" | "find_in_page";
|
|
332
|
-
}, {
|
|
333
|
-
readonly _tag: Tag;
|
|
334
|
-
}>) => any; }>(value: {
|
|
335
|
-
readonly _tag: "CitationAdded";
|
|
336
|
-
readonly annotation: Annotation;
|
|
337
|
-
} | {
|
|
338
|
-
readonly _tag: "ImageOutput";
|
|
339
|
-
readonly image: ImageSource;
|
|
340
|
-
readonly partialIndex?: number;
|
|
341
|
-
} | {
|
|
342
|
-
readonly _tag: "ReasoningDelta";
|
|
343
|
-
readonly text: string;
|
|
344
|
-
readonly kind: "trace" | "summary";
|
|
345
|
-
} | {
|
|
346
|
-
readonly _tag: "RefusalDelta";
|
|
347
|
-
readonly text: string;
|
|
348
|
-
} | {
|
|
349
|
-
readonly _tag: "TextDelta";
|
|
350
|
-
readonly text: string;
|
|
351
|
-
} | {
|
|
352
|
-
readonly _tag: "ToolCallArgsDelta";
|
|
353
|
-
readonly call_id: string;
|
|
354
|
-
readonly delta: string;
|
|
355
|
-
} | {
|
|
356
|
-
readonly _tag: "ToolCallStart";
|
|
357
|
-
readonly call_id: string;
|
|
358
|
-
readonly name: string;
|
|
359
|
-
} | {
|
|
360
|
-
readonly _tag: "TurnComplete";
|
|
361
|
-
readonly turn: Turn;
|
|
362
|
-
} | {
|
|
363
|
-
readonly _tag: "UsageUpdate";
|
|
364
|
-
readonly usage: Usage;
|
|
365
|
-
} | {
|
|
366
|
-
readonly _tag: "WebSearchCall";
|
|
367
|
-
readonly status: "started" | "searching" | "completed";
|
|
368
|
-
readonly query?: string;
|
|
369
|
-
readonly action?: "search" | "open_page" | "find_in_page";
|
|
370
|
-
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["CitationAdded" | "ImageOutput" | "ReasoningDelta" | "RefusalDelta" | "TextDelta" | "ToolCallArgsDelta" | "ToolCallStart" | "TurnComplete" | "UsageUpdate" | "WebSearchCall"]>>;
|
|
371
|
-
};
|
|
372
|
-
readonly CitationAdded: Data.TaggedEnum.ConstructorFrom<{
|
|
373
|
-
readonly _tag: "CitationAdded";
|
|
374
|
-
readonly annotation: Annotation;
|
|
375
|
-
}, "_tag">;
|
|
376
|
-
readonly ImageOutput: Data.TaggedEnum.ConstructorFrom<{
|
|
377
|
-
readonly _tag: "ImageOutput";
|
|
378
|
-
readonly image: ImageSource;
|
|
379
|
-
readonly partialIndex?: number;
|
|
380
|
-
}, "_tag">;
|
|
381
|
-
readonly ReasoningDelta: Data.TaggedEnum.ConstructorFrom<{
|
|
382
|
-
readonly _tag: "ReasoningDelta";
|
|
383
|
-
readonly text: string;
|
|
384
|
-
readonly kind: "trace" | "summary";
|
|
385
|
-
}, "_tag">;
|
|
386
|
-
readonly RefusalDelta: Data.TaggedEnum.ConstructorFrom<{
|
|
387
|
-
readonly _tag: "RefusalDelta";
|
|
388
|
-
readonly text: string;
|
|
389
|
-
}, "_tag">;
|
|
390
|
-
readonly TextDelta: Data.TaggedEnum.ConstructorFrom<{
|
|
391
|
-
readonly _tag: "TextDelta";
|
|
392
|
-
readonly text: string;
|
|
393
|
-
}, "_tag">;
|
|
394
|
-
readonly ToolCallArgsDelta: Data.TaggedEnum.ConstructorFrom<{
|
|
395
|
-
readonly _tag: "ToolCallArgsDelta";
|
|
396
|
-
readonly call_id: string;
|
|
397
|
-
readonly delta: string;
|
|
398
|
-
}, "_tag">;
|
|
399
|
-
readonly ToolCallStart: Data.TaggedEnum.ConstructorFrom<{
|
|
400
|
-
readonly _tag: "ToolCallStart";
|
|
401
|
-
readonly call_id: string;
|
|
402
|
-
readonly name: string;
|
|
403
|
-
}, "_tag">;
|
|
404
|
-
readonly TurnComplete: Data.TaggedEnum.ConstructorFrom<{
|
|
405
|
-
readonly _tag: "TurnComplete";
|
|
406
|
-
readonly turn: Turn;
|
|
407
|
-
}, "_tag">;
|
|
408
|
-
readonly UsageUpdate: Data.TaggedEnum.ConstructorFrom<{
|
|
409
|
-
readonly _tag: "UsageUpdate";
|
|
410
|
-
readonly usage: Usage;
|
|
411
|
-
}, "_tag">;
|
|
412
|
-
readonly WebSearchCall: Data.TaggedEnum.ConstructorFrom<{
|
|
413
|
-
readonly _tag: "WebSearchCall";
|
|
414
|
-
readonly status: "started" | "searching" | "completed";
|
|
415
|
-
readonly query?: string;
|
|
416
|
-
readonly action?: "search" | "open_page" | "find_in_page";
|
|
417
|
-
}, "_tag">;
|
|
418
|
-
};
|
|
177
|
+
declare const TurnEvent: Data.TaggedEnum.Constructor<{
|
|
178
|
+
readonly _tag: "CitationAdded";
|
|
179
|
+
readonly annotation: Annotation;
|
|
180
|
+
} | {
|
|
181
|
+
readonly _tag: "ImageOutput";
|
|
182
|
+
readonly image: ImageSource;
|
|
183
|
+
readonly partialIndex?: number;
|
|
184
|
+
} | {
|
|
185
|
+
readonly _tag: "ReasoningDelta";
|
|
186
|
+
readonly text: string;
|
|
187
|
+
readonly kind: "trace" | "summary";
|
|
188
|
+
} | {
|
|
189
|
+
readonly _tag: "RefusalDelta";
|
|
190
|
+
readonly text: string;
|
|
191
|
+
} | {
|
|
192
|
+
readonly _tag: "TextDelta";
|
|
193
|
+
readonly text: string;
|
|
194
|
+
} | {
|
|
195
|
+
readonly _tag: "ToolCallArgsDelta";
|
|
196
|
+
readonly call_id: string;
|
|
197
|
+
readonly delta: string;
|
|
198
|
+
} | {
|
|
199
|
+
readonly _tag: "ToolCallStart";
|
|
200
|
+
readonly call_id: string;
|
|
201
|
+
readonly name: string;
|
|
202
|
+
} | {
|
|
203
|
+
readonly _tag: "TurnComplete";
|
|
204
|
+
readonly turn: Turn;
|
|
205
|
+
} | {
|
|
206
|
+
readonly _tag: "UsageUpdate";
|
|
207
|
+
readonly usage: Usage;
|
|
208
|
+
} | {
|
|
209
|
+
readonly _tag: "WebSearchCall";
|
|
210
|
+
readonly status: "started" | "searching" | "completed";
|
|
211
|
+
readonly query?: string;
|
|
212
|
+
readonly action?: "search" | "open_page" | "find_in_page";
|
|
213
|
+
}>;
|
|
419
214
|
/**
|
|
420
215
|
* What flows out of an agent loop body to its consumer per turn: every
|
|
421
216
|
* `TurnEvent` the provider emits (including the terminal `TurnComplete`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Turn.d.mts","names":[],"sources":["../../src/domain/Turn.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Turn.d.mts","names":[],"sources":["../../src/domain/Turn.ts"],"mappings":";;;;;;;;;;;;;cAwBa,MAAI,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKL,cAAc,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmCnB,YAAY,KAAK;EAC3B;aAAsB;;EACtB;aAA2B;aAAuB;;EAClD;aAAyB;;EACzB;aAA0B;aAA0B;;EACpD;aAA8B;aAA0B;;EACxD;aAAwB,OAAO;;EAC/B;aACW;aACA;aACA;;EAEX;aACW,OAAO;;aAEP;;EAEX;aAA0B,YAAY;;EACtC;aAAyB,MAAM;;;cAGpB,WAAS,KAAA,WAAA;;WAJkB,YAAA;;;WAJpB,OAAA;WAEQ;;;WAbO;WAAuB;;;WACzB;;;WAFH;;;WAIW;WAAwB;;;WAD5B;WAAuB;;;WAc3B,MAAA;;;WAZA,OAAA;;;WAEZ;WACA;WACC;;;;;;;;KAmBV,mBAAmB,YAAY;cAE9B,iBAAc,eAAA;;WAbM,MAAA;;cAepB,eAAY,MAAU,SAAO,cAAc;cAE3C,aAAU,MAAU,SAAO,cAAc;cAEzC,oBAAiB,MAAU,SAAO,cAAc;;;;;;;;cAUhD,iBAAc,MAAU,SAAO;;;;;;cAW/B,gBAAa,MAAU;;;;;;cAOvB,kBAAe,MAAU,SAAO,cAAc;;;;;;;;;;;;;;;;;cAsB9C,gBAAa,SAAa,cAAc,iBAAe,cAAc;;;;;;cAqBrE,YAAS,MAAU,SAAO,cAAc;;;;;;cAWxC,kBAAmB;WAAqB,SAAS,cAAc;GAAc,OACjF,GAAC,MACF,MAAI,QACH,cAAc,iBACpB;;;;;;cAcU,aAAc,GAAG,GAAC,MACvB,OAAO,OAAO,WAAW,GAAG,OACjC,OAAO,eAAe,GAAG;;;;;;;;;cAcf,wBAAwB;WAC1B,MAAM;;;;;;;;;;;;cAyBJ,mBAAoB,GAAC,MAC1B,MAAI,QACF,iBAAkC,OACzC,OAAO,OACR,GACA,kBAAkB,iBAAkC"}
|
package/dist/domain/Turn.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "../rolldown-runtime-EAsCxrDo.mjs";
|
|
2
|
-
import { HistoryItem, StopReason, Usage, isOutputImage, isOutputText, isReasoning, isRefusal, isToolCall } from "./Items.mjs";
|
|
3
2
|
import { parseJson } from "../structured-format/StructuredFormat.mjs";
|
|
3
|
+
import { HistoryItem, StopReason, Usage, isOutputImage, isOutputText, isReasoning, isRefusal, isToolCall } from "./Items.mjs";
|
|
4
4
|
import { Data, Effect, Result, Schema, Stream, pipe } from "effect";
|
|
5
5
|
//#region src/domain/Turn.ts
|
|
6
6
|
var Turn_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as ImageSource } from "../Image-
|
|
1
|
+
import { o as ImageSource } from "../Image-Bzc1H_UK.mjs";
|
|
2
2
|
declare namespace Embedding_d_exports {
|
|
3
3
|
export { BinaryEmbedding, EmbedContentPart, EmbedInput, Embedding, EmbeddingFor, Float32Embedding, Int8Embedding, MultivectorEmbedding, ResponseEncoding, SparseEmbedding, Usage, isBinary, isFloat32, isInt8, isMultivector, isSparse };
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AspectRatio } from "../Media-BbX7BAaO.mjs";
|
|
2
|
-
import { a as ImageResolution,
|
|
2
|
+
import { a as ImageResolution, o as ImageSource, t as GeneratedImage, u as ProviderData } from "../Image-Bzc1H_UK.mjs";
|
|
3
3
|
import { t as AiError } from "../AiError-DvhLIbmd.mjs";
|
|
4
4
|
import { Context, Data, Effect, Stream } from "effect";
|
|
5
5
|
declare namespace ImageGenerator_d_exports {
|
|
@@ -74,71 +74,15 @@ type ImageStreamEvent = Data.TaggedEnum<{
|
|
|
74
74
|
* Namespace of constructors, type guards, and matchers for
|
|
75
75
|
* `ImageStreamEvent`, provided by `Data.taggedEnum`.
|
|
76
76
|
*/
|
|
77
|
-
declare const ImageStreamEvent: {
|
|
78
|
-
readonly
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
readonly image: ImageSource;
|
|
87
|
-
readonly index: number;
|
|
88
|
-
}, {
|
|
89
|
-
readonly _tag: Tag;
|
|
90
|
-
}>;
|
|
91
|
-
readonly $match: {
|
|
92
|
-
<Cases extends { readonly [Tag in "Complete" | "PartialImage"]: (args: Extract<{
|
|
93
|
-
readonly _tag: "Complete";
|
|
94
|
-
readonly images: ReadonlyArray<GeneratedImage>;
|
|
95
|
-
readonly usage: ImageUsage;
|
|
96
|
-
} | {
|
|
97
|
-
readonly _tag: "PartialImage";
|
|
98
|
-
readonly image: ImageSource;
|
|
99
|
-
readonly index: number;
|
|
100
|
-
}, {
|
|
101
|
-
readonly _tag: Tag;
|
|
102
|
-
}>) => any; }>(cases: Cases): (value: {
|
|
103
|
-
readonly _tag: "Complete";
|
|
104
|
-
readonly images: ReadonlyArray<GeneratedImage>;
|
|
105
|
-
readonly usage: ImageUsage;
|
|
106
|
-
} | {
|
|
107
|
-
readonly _tag: "PartialImage";
|
|
108
|
-
readonly image: ImageSource;
|
|
109
|
-
readonly index: number;
|
|
110
|
-
}) => import("effect/Unify").Unify<ReturnType<Cases["Complete" | "PartialImage"]>>;
|
|
111
|
-
<Cases extends { readonly [Tag in "Complete" | "PartialImage"]: (args: Extract<{
|
|
112
|
-
readonly _tag: "Complete";
|
|
113
|
-
readonly images: ReadonlyArray<GeneratedImage>;
|
|
114
|
-
readonly usage: ImageUsage;
|
|
115
|
-
} | {
|
|
116
|
-
readonly _tag: "PartialImage";
|
|
117
|
-
readonly image: ImageSource;
|
|
118
|
-
readonly index: number;
|
|
119
|
-
}, {
|
|
120
|
-
readonly _tag: Tag;
|
|
121
|
-
}>) => any; }>(value: {
|
|
122
|
-
readonly _tag: "Complete";
|
|
123
|
-
readonly images: ReadonlyArray<GeneratedImage>;
|
|
124
|
-
readonly usage: ImageUsage;
|
|
125
|
-
} | {
|
|
126
|
-
readonly _tag: "PartialImage";
|
|
127
|
-
readonly image: ImageSource;
|
|
128
|
-
readonly index: number;
|
|
129
|
-
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Complete" | "PartialImage"]>>;
|
|
130
|
-
};
|
|
131
|
-
readonly Complete: Data.TaggedEnum.ConstructorFrom<{
|
|
132
|
-
readonly _tag: "Complete";
|
|
133
|
-
readonly images: ReadonlyArray<GeneratedImage>;
|
|
134
|
-
readonly usage: ImageUsage;
|
|
135
|
-
}, "_tag">;
|
|
136
|
-
readonly PartialImage: Data.TaggedEnum.ConstructorFrom<{
|
|
137
|
-
readonly _tag: "PartialImage";
|
|
138
|
-
readonly image: ImageSource;
|
|
139
|
-
readonly index: number;
|
|
140
|
-
}, "_tag">;
|
|
141
|
-
};
|
|
77
|
+
declare const ImageStreamEvent: Data.TaggedEnum.Constructor<{
|
|
78
|
+
readonly _tag: "Complete";
|
|
79
|
+
readonly images: ReadonlyArray<GeneratedImage>;
|
|
80
|
+
readonly usage: ImageUsage;
|
|
81
|
+
} | {
|
|
82
|
+
readonly _tag: "PartialImage";
|
|
83
|
+
readonly image: ImageSource;
|
|
84
|
+
readonly index: number;
|
|
85
|
+
}>;
|
|
142
86
|
declare const isPartialImage: (u: unknown) => u is {
|
|
143
87
|
readonly _tag: "PartialImage";
|
|
144
88
|
readonly image: ImageSource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGenerator.d.mts","names":[],"sources":["../../src/image-generator/ImageGenerator.ts"],"mappings":";;;;;;;;;;;;;;KAmBY;WACD;;WAEA;WACA,cAAc;WACd,aAAa;;WAEb;;;;;;;;KASC,yBAAyB;WAC1B,QAAQ,cAAc;;;KAIrB,2BAA2B;WAC5B;;;KAIC,+BAA+B;WAChC;;;KAIC;WACD;WACA;WACA;;KAGC;WACD,QAAQ,cAAc;WACtB,OAAO;;;;;;WAMP,eAAe;;;;;;;KAQd,mBAAmB,KAAK;EAClC;aACW,OAAO;;aAEP;;EAEX;aACW,QAAQ,cAAc;aACtB,OAAO;;;;;;;cAQP
|
|
1
|
+
{"version":3,"file":"ImageGenerator.d.mts","names":[],"sources":["../../src/image-generator/ImageGenerator.ts"],"mappings":";;;;;;;;;;;;;;KAmBY;WACD;;WAEA;WACA,cAAc;WACd,aAAa;;WAEb;;;;;;;;KASC,yBAAyB;WAC1B,QAAQ,cAAc;;;KAIrB,2BAA2B;WAC5B;;;KAIC,+BAA+B;WAChC;;;KAIC;WACD;WACA;WACA;;KAGC;WACD,QAAQ,cAAc;WACtB,OAAO;;;;;;WAMP,eAAe;;;;;;;KAQd,mBAAmB,KAAK;EAClC;aACW,OAAO;;aAEP;;EAEX;aACW,QAAQ,cAAc;aACtB,OAAO;;;;;;;cAQP,kBAAgB,KAAA,WAAA;;WATR,QAAA,cAAc;WACf,OAAA;;;WANA,OAAA;WAEA;;cAcP,iBAAc,eAAA;;WAhBP,OAAA;WAEA;;cAeP,aAAU,eAAA;;WAZF,QAAA,cAAc;WACf,OAAA;;KAaR;;WAED,WACP,SAAS,+BACN,OAAO,OAAO,eAAe;;WAEzB,OAAO,SAAS,2BAA2B,OAAO,OAAO,eAAe;;;;;;;WAOxE,mBACP,SAAS,6BACN,OAAO,OAAO,kBAAkB;;WAE5B,aACP,SAAS,iCACN,OAAO,OAAO,kBAAkB;;;cAG1B,uBAAuB;;;;;;;;;cAWvB,uBAAuB;;cAKvB,WAAQ,SACV,+BACR,OAAO,OAAO,eAAe,SAAiB;;cAIpC,OAAI,SACN,2BACR,OAAO,OAAO,eAAe,SAAiB;;cAIpC,mBAAgB,SAClB,6BACR,OAAO,OAAO,kBAAkB,SAAiB,iBAAiB;;cAUxD,aAAU,SACZ,iCACR,OAAO,OAAO,kBAAkB,SAAiB,iBAAiB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as BrowserError_d_exports } from "./browser/BrowserError.mjs";
|
|
2
2
|
import { t as Browser_d_exports } from "./browser/Browser.mjs";
|
|
3
3
|
import { s as Media_d_exports } from "./Media-BbX7BAaO.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { l as Image_d_exports } from "./Image-Bzc1H_UK.mjs";
|
|
5
|
+
import { f as Items_d_exports } from "./Items-Bvx8s9QH.mjs";
|
|
6
|
+
import { S as Tool_d_exports } from "./Tool-Bkryw6-h.mjs";
|
|
7
7
|
import { t as BrowserTool_d_exports } from "./browser/BrowserTool.mjs";
|
|
8
8
|
import { t as Capabilities_d_exports } from "./capabilities/Capabilities.mjs";
|
|
9
9
|
import { n as AiError_d_exports } from "./AiError-DvhLIbmd.mjs";
|
|
@@ -24,10 +24,11 @@ import { t as EmbeddingModel_d_exports } from "./embedding-model/EmbeddingModel.
|
|
|
24
24
|
import { t as ImageGenerator_d_exports } from "./image-generator/ImageGenerator.mjs";
|
|
25
25
|
import { t as DeepResearch_d_exports } from "./research/DeepResearch.mjs";
|
|
26
26
|
import { t as RealtimeSession_d_exports } from "./realtime/RealtimeSession.mjs";
|
|
27
|
-
import { t as Loop_d_exports } from "./Loop-
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
27
|
+
import { t as Loop_d_exports } from "./Loop-CeA0AelN.mjs";
|
|
28
|
+
import { i as ToolEvent_d_exports } from "./ToolEvent-9inLx5cI.mjs";
|
|
29
|
+
import { t as Content_d_exports } from "./Content-D_Qfn8Ja.mjs";
|
|
30
|
+
import { s as ToolOutput_d_exports } from "./ToolOutput-BNTIQgGB.mjs";
|
|
31
|
+
import { h as Toolkit_d_exports } from "./Toolkit-D2VGeD5R.mjs";
|
|
31
32
|
import { t as LanguageModel_d_exports } from "./language-model/LanguageModel.mjs";
|
|
32
33
|
import { r as MessengerError_d_exports } from "./MessengerError-CeK6VAcu.mjs";
|
|
33
34
|
import { t as Messenger_d_exports } from "./messenger/Messenger.mjs";
|
|
@@ -51,7 +52,7 @@ import { t as Tokenizer_d_exports } from "./tokenizer/Tokenizer.mjs";
|
|
|
51
52
|
import { t as Settle_d_exports } from "./streaming/Settle.mjs";
|
|
52
53
|
import { t as WebSocketSession_d_exports } from "./streaming/WebSocketSession.mjs";
|
|
53
54
|
import { t as Retry_d_exports } from "./retry/Retry.mjs";
|
|
54
|
-
import { t as
|
|
55
|
+
import { t as ToolDecision_d_exports } from "./tool/ToolDecision.mjs";
|
|
55
56
|
import { t as HistoryCheck_d_exports } from "./tool/HistoryCheck.mjs";
|
|
56
57
|
import { t as JSONL_d_exports } from "./streaming/JSONL.mjs";
|
|
57
58
|
import { t as Lines_d_exports } from "./streaming/Lines.mjs";
|
|
@@ -59,4 +60,4 @@ import { t as Multipart_d_exports } from "./streaming/Multipart.mjs";
|
|
|
59
60
|
import { t as SSE_d_exports } from "./streaming/SSE.mjs";
|
|
60
61
|
import { t as Metrics_d_exports } from "./observability/Metrics.mjs";
|
|
61
62
|
import { t as Telemetry_d_exports } from "./observability/Telemetry.mjs";
|
|
62
|
-
export { AiError_d_exports as AiError,
|
|
63
|
+
export { AiError_d_exports as AiError, Audio_d_exports as Audio, Browser_d_exports as Browser, BrowserError_d_exports as BrowserError, BrowserTool_d_exports as BrowserTool, Capabilities_d_exports as Capabilities, Chunker_d_exports as Chunker, Citation_d_exports as Citation, Content_d_exports as Content, Decision_d_exports as Decision, DecisionModel_d_exports as DecisionModel, DeepResearch_d_exports as DeepResearch, Embedding_d_exports as Embedding, EmbeddingModel_d_exports as EmbeddingModel, HistoryCheck_d_exports as HistoryCheck, Image_d_exports as Image, ImageGenerator_d_exports as ImageGenerator, Items_d_exports as Items, JSONL_d_exports as JSONL, Job_d_exports as Job, LanguageModel_d_exports as LanguageModel, Lines_d_exports as Lines, Loop_d_exports as Loop, Media_d_exports as Media, Memory_d_exports as Memory, Messenger_d_exports as Messenger, MessengerAdapter_d_exports as MessengerAdapter, MessengerError_d_exports as MessengerError, Metrics_d_exports as Metrics, Multipart_d_exports as Multipart, Music_d_exports as Music, MusicGenerator_d_exports as MusicGenerator, Probability_d_exports as Probability, Realtime_d_exports as Realtime, RealtimeSession_d_exports as RealtimeSession, Reranker_d_exports as Reranker, Research_d_exports as Research, Retry_d_exports as Retry, SSE_d_exports as SSE, Sandbox_d_exports as Sandbox, SandboxError_d_exports as SandboxError, SandboxImage_d_exports as SandboxImage, SandboxNetwork_d_exports as SandboxNetwork, Settle_d_exports as Settle, SpeechSynthesizer_d_exports as SpeechSynthesizer, StructuredFormat_d_exports as StructuredFormat, Telemetry_d_exports as Telemetry, Tokenizer_d_exports as Tokenizer, Tool_d_exports as Tool, ToolDecision_d_exports as ToolDecision, ToolEvent_d_exports as ToolEvent, ToolOutput_d_exports as ToolOutput, Toolkit_d_exports as Toolkit, Transcriber_d_exports as Transcriber, Transcript_d_exports as Transcript, Turn_d_exports as Turn, Vector_d_exports as Vector, WebRead_d_exports as WebRead, WebReadTool_d_exports as WebReadTool, WebSearch_d_exports as WebSearch, WebSearchTool_d_exports as WebSearchTool, WebSocketSession_d_exports as WebSocketSession };
|
package/dist/index.mjs
CHANGED
|
@@ -2,15 +2,15 @@ import { t as AiError_exports } from "./domain/AiError.mjs";
|
|
|
2
2
|
import { t as Audio_exports } from "./domain/Audio.mjs";
|
|
3
3
|
import { t as Browser_exports } from "./browser/Browser.mjs";
|
|
4
4
|
import { t as BrowserError_exports } from "./browser/BrowserError.mjs";
|
|
5
|
+
import { t as Tool_exports } from "./tool/Tool.mjs";
|
|
6
|
+
import { t as StructuredFormat_exports } from "./structured-format/StructuredFormat.mjs";
|
|
5
7
|
import { t as Media_exports } from "./domain/Media.mjs";
|
|
6
8
|
import { t as Image_exports } from "./domain/Image.mjs";
|
|
7
9
|
import { t as Items_exports } from "./domain/Items.mjs";
|
|
8
|
-
import { t as ToolResult_exports } from "./tool/ToolResult.mjs";
|
|
9
|
-
import { t as Tool_exports } from "./tool/Tool.mjs";
|
|
10
|
-
import { t as StructuredFormat_exports } from "./structured-format/StructuredFormat.mjs";
|
|
11
10
|
import { t as Turn_exports } from "./domain/Turn.mjs";
|
|
12
11
|
import { t as Loop_exports } from "./loop/Loop.mjs";
|
|
13
|
-
import { t as
|
|
12
|
+
import { t as Content_exports } from "./tool/Content.mjs";
|
|
13
|
+
import { t as ToolOutput_exports } from "./tool/ToolOutput.mjs";
|
|
14
14
|
import { t as Toolkit_exports } from "./tool/Toolkit.mjs";
|
|
15
15
|
import { t as BrowserTool_exports } from "./browser/BrowserTool.mjs";
|
|
16
16
|
import { t as Capabilities_exports } from "./capabilities/Capabilities.mjs";
|
|
@@ -52,11 +52,12 @@ import { t as Tokenizer_exports } from "./tokenizer/Tokenizer.mjs";
|
|
|
52
52
|
import { t as JSONL_exports } from "./streaming/JSONL.mjs";
|
|
53
53
|
import { t as WebSocketSession_exports } from "./streaming/WebSocketSession.mjs";
|
|
54
54
|
import { t as Retry_exports } from "./retry/Retry.mjs";
|
|
55
|
-
import { t as
|
|
55
|
+
import { t as ToolEvent_exports } from "./tool/ToolEvent.mjs";
|
|
56
|
+
import { t as ToolDecision_exports } from "./tool/ToolDecision.mjs";
|
|
56
57
|
import { t as HistoryCheck_exports } from "./tool/HistoryCheck.mjs";
|
|
57
58
|
import { t as Lines_exports } from "./streaming/Lines.mjs";
|
|
58
59
|
import { t as Multipart_exports } from "./streaming/Multipart.mjs";
|
|
59
60
|
import { t as SSE_exports } from "./streaming/SSE.mjs";
|
|
60
61
|
import { t as Metrics_exports } from "./observability/Metrics.mjs";
|
|
61
62
|
import { t as Telemetry_exports } from "./observability/Telemetry.mjs";
|
|
62
|
-
export { AiError_exports as AiError,
|
|
63
|
+
export { AiError_exports as AiError, Audio_exports as Audio, Browser_exports as Browser, BrowserError_exports as BrowserError, BrowserTool_exports as BrowserTool, Capabilities_exports as Capabilities, Chunker_exports as Chunker, Citation_exports as Citation, Content_exports as Content, Decision_exports as Decision, DecisionModel_exports as DecisionModel, DeepResearch_exports as DeepResearch, Embedding_exports as Embedding, EmbeddingModel_exports as EmbeddingModel, HistoryCheck_exports as HistoryCheck, Image_exports as Image, ImageGenerator_exports as ImageGenerator, Items_exports as Items, JSONL_exports as JSONL, Job_exports as Job, LanguageModel_exports as LanguageModel, Lines_exports as Lines, Loop_exports as Loop, Media_exports as Media, Memory_exports as Memory, Messenger_exports as Messenger, MessengerAdapter_exports as MessengerAdapter, MessengerError_exports as MessengerError, Metrics_exports as Metrics, Multipart_exports as Multipart, Music_exports as Music, MusicGenerator_exports as MusicGenerator, Probability_exports as Probability, Realtime_exports as Realtime, RealtimeSession_exports as RealtimeSession, Reranker_exports as Reranker, Research_exports as Research, Retry_exports as Retry, SSE_exports as SSE, Sandbox_exports as Sandbox, SandboxError_exports as SandboxError, SandboxImage_exports as SandboxImage, SandboxNetwork_exports as SandboxNetwork, Settle_exports as Settle, SpeechSynthesizer_exports as SpeechSynthesizer, StructuredFormat_exports as StructuredFormat, Telemetry_exports as Telemetry, Tokenizer_exports as Tokenizer, Tool_exports as Tool, ToolDecision_exports as ToolDecision, ToolEvent_exports as ToolEvent, ToolOutput_exports as ToolOutput, Toolkit_exports as Toolkit, Transcriber_exports as Transcriber, Transcript_exports as Transcript, Turn_exports as Turn, Vector_exports as Vector, WebRead_exports as WebRead, WebReadTool_exports as WebReadTool, WebSearch_exports as WebSearch, WebSearchTool_exports as WebSearchTool, WebSocketSession_exports as WebSocketSession };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as HistoryItem } from "../Items-
|
|
1
|
+
import { o as HistoryItem } from "../Items-Bvx8s9QH.mjs";
|
|
2
2
|
import { t as AiError } from "../AiError-DvhLIbmd.mjs";
|
|
3
3
|
import { i as StructuredFormat } from "../StructuredFormat-BlZhyOsi.mjs";
|
|
4
4
|
import { Turn, TurnEvent } from "../domain/Turn.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { d as Toolkit } from "../Toolkit-D2VGeD5R.mjs";
|
|
6
6
|
import { Context, Effect, Stream } from "effect";
|
|
7
7
|
declare namespace LanguageModel_d_exports {
|
|
8
8
|
export { CommonRequest, LanguageModel, LanguageModelService, streamTurn, turn, turnFromStream };
|
package/dist/loop/Loop.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StopWith, c as loopOver, d as onTurnComplete, f as stop, i as Stop, l as loopWithState, n as Next, o as Value, p as value, r as Step, s as loop, u as next } from "../Loop-
|
|
1
|
+
import { a as StopWith, c as loopOver, d as onTurnComplete, f as stop, i as Stop, l as loopWithState, n as Next, o as Value, p as value, r as Step, s as loop, u as next } from "../Loop-CeA0AelN.mjs";
|
|
2
2
|
export { Next, Step, Stop, StopWith, Value, loop, loopOver, loopWithState, next, onTurnComplete, stop, value };
|