@opencode/ai 2.0.14 → 2.0.16
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 +399 -56
- package/dist/experimental/evaluation-client.d.ts +1 -1
- package/dist/experimental/evaluation-client.js +39 -3
- package/dist/experimental/evaluation.d.ts +4 -4
- package/dist/experimental/evaluation.js +2 -2
- package/dist/experimental/system-one.d.ts +3 -3
- package/dist/experimental/system-one.js +40 -51
- package/dist/generation.d.ts +83 -0
- package/dist/generation.js +113 -0
- package/dist/image-client.d.ts +16 -7
- package/dist/image-client.js +29 -13
- package/dist/image.d.ts +1410 -81
- package/dist/image.js +97 -67
- package/dist/index.d.ts +17 -2
- package/dist/index.js +12 -1
- package/dist/llm.d.ts +9 -1
- package/dist/media-model.d.ts +44 -0
- package/dist/media-model.js +49 -0
- package/dist/media.d.ts +213 -0
- package/dist/media.js +227 -0
- package/dist/promise.d.ts +974 -0
- package/dist/promise.js +81 -0
- package/dist/protocols/alibaba-chat.d.ts +12 -0
- package/dist/protocols/alibaba-responses.d.ts +2 -2
- package/dist/protocols/anthropic-messages.js +8 -19
- package/dist/protocols/assemblyai-transcription.d.ts +40 -0
- package/dist/protocols/assemblyai-transcription.js +138 -0
- package/dist/protocols/bedrock-converse.d.ts +4 -4
- package/dist/protocols/bedrock-converse.js +6 -17
- package/dist/protocols/bfl-images.d.ts +32 -0
- package/dist/protocols/bfl-images.js +153 -0
- package/dist/protocols/cartesia-speech.d.ts +127 -0
- package/dist/protocols/cartesia-speech.js +126 -0
- package/dist/protocols/deepgram-speech.d.ts +119 -0
- package/dist/protocols/deepgram-speech.js +92 -0
- package/dist/protocols/deepgram-transcription.d.ts +25 -0
- package/dist/protocols/deepgram-transcription.js +129 -0
- package/dist/protocols/elevenlabs-speech.d.ts +122 -0
- package/dist/protocols/elevenlabs-speech.js +115 -0
- package/dist/protocols/fal-images.d.ts +24 -0
- package/dist/protocols/fal-images.js +114 -0
- package/dist/protocols/fal-video.d.ts +29 -0
- package/dist/protocols/fal-video.js +88 -0
- package/dist/protocols/gemini.d.ts +30 -9
- package/dist/protocols/gemini.js +45 -35
- package/dist/protocols/google-images.d.ts +9 -21
- package/dist/protocols/google-images.js +158 -133
- package/dist/protocols/google-speech.d.ts +130 -0
- package/dist/protocols/google-speech.js +84 -0
- package/dist/protocols/google-transcription.d.ts +173 -0
- package/dist/protocols/google-transcription.js +138 -0
- package/dist/protocols/google-video.d.ts +26 -0
- package/dist/protocols/google-video.js +158 -0
- package/dist/protocols/meta-images.d.ts +7 -12
- package/dist/protocols/meta-images.js +85 -66
- package/dist/protocols/meta-responses.d.ts +4 -4
- package/dist/protocols/meta-responses.js +1 -1
- package/dist/protocols/mistral-chat.js +7 -6
- package/dist/protocols/open-responses.d.ts +17 -9
- package/dist/protocols/open-responses.js +24 -14
- package/dist/protocols/openai-chat.d.ts +118 -1
- package/dist/protocols/openai-chat.js +125 -44
- package/dist/protocols/openai-compatible-chat.d.ts +12 -0
- package/dist/protocols/openai-compatible-responses.d.ts +2 -2
- package/dist/protocols/openai-images.d.ts +128 -18
- package/dist/protocols/openai-images.js +177 -154
- package/dist/protocols/openai-responses.d.ts +15 -15
- package/dist/protocols/openai-responses.js +5 -6
- package/dist/protocols/openai-speech.d.ts +116 -0
- package/dist/protocols/openai-speech.js +98 -0
- package/dist/protocols/openai-transcription.d.ts +207 -0
- package/dist/protocols/openai-transcription.js +190 -0
- package/dist/protocols/replicate-images.d.ts +28 -0
- package/dist/protocols/replicate-images.js +133 -0
- package/dist/protocols/runway-video.d.ts +38 -0
- package/dist/protocols/runway-video.js +146 -0
- package/dist/protocols/shared.d.ts +27 -17
- package/dist/protocols/shared.js +52 -35
- package/dist/protocols/stability-images.d.ts +38 -0
- package/dist/protocols/stability-images.js +148 -0
- package/dist/protocols/utils/bedrock-media.d.ts +2 -3
- package/dist/protocols/utils/bedrock-media.js +4 -4
- package/dist/protocols/utils/fal-queue.d.ts +28 -0
- package/dist/protocols/utils/fal-queue.js +69 -0
- package/dist/protocols/utils/gemini-generate-content.d.ts +65 -0
- package/dist/protocols/utils/gemini-generate-content.js +65 -0
- package/dist/protocols/utils/gemini-json-schema.d.ts +3 -0
- package/dist/protocols/utils/gemini-json-schema.js +76 -0
- package/dist/protocols/utils/media-input.d.ts +18 -0
- package/dist/protocols/utils/media-input.js +35 -0
- package/dist/protocols/utils/responses-compaction.js +6 -5
- package/dist/protocols/utils/speech-stream.d.ts +49 -0
- package/dist/protocols/utils/speech-stream.js +67 -0
- package/dist/protocols/utils/tool-schema.d.ts +2 -2
- package/dist/protocols/utils/tool-schema.js +40 -17
- package/dist/protocols/utils/tool-stream.d.ts +27 -3
- package/dist/protocols/xai-images.d.ts +9 -15
- package/dist/protocols/xai-images.js +75 -84
- package/dist/protocols/xai-responses.d.ts +2 -2
- package/dist/protocols/xai-video.d.ts +34 -0
- package/dist/protocols/xai-video.js +147 -0
- package/dist/protocols/zai-chat.d.ts +13 -1
- package/dist/protocols/zai-images.d.ts +9 -13
- package/dist/protocols/zai-images.js +59 -57
- package/dist/provider-error.js +3 -0
- package/dist/providers/alibaba.d.ts +14 -2
- package/dist/providers/amazon-bedrock-mantle.d.ts +14 -2
- package/dist/providers/amazon-bedrock.d.ts +2 -2
- package/dist/providers/assemblyai.d.ts +25 -0
- package/dist/providers/assemblyai.js +29 -0
- package/dist/providers/azure.d.ts +18 -6
- package/dist/providers/baseten.d.ts +24 -0
- package/dist/providers/black-forest-labs.d.ts +25 -0
- package/dist/providers/black-forest-labs.js +28 -0
- package/dist/providers/cartesia.d.ts +24 -0
- package/dist/providers/cartesia.js +22 -0
- package/dist/providers/cerebras.d.ts +24 -0
- package/dist/providers/cerebras.js +6 -1
- package/dist/providers/cloudflare-ai-gateway.d.ts +30 -6
- package/dist/providers/cloudflare-workers-ai.d.ts +24 -0
- package/dist/providers/deepgram.d.ts +29 -0
- package/dist/providers/deepgram.js +31 -0
- package/dist/providers/deepinfra.d.ts +24 -0
- package/dist/providers/deepinfra.js +6 -1
- package/dist/providers/deepseek.d.ts +24 -0
- package/dist/providers/elevenlabs.d.ts +24 -0
- package/dist/providers/elevenlabs.js +28 -0
- package/dist/providers/fal.d.ts +29 -0
- package/dist/providers/fal.js +33 -0
- package/dist/providers/fireworks.d.ts +24 -0
- package/dist/providers/google-vertex-chat.d.ts +12 -0
- package/dist/providers/google-vertex-responses.d.ts +2 -2
- package/dist/providers/google-vertex.d.ts +10 -3
- package/dist/providers/google.d.ts +25 -3
- package/dist/providers/google.js +11 -2
- package/dist/providers/groq.d.ts +24 -0
- package/dist/providers/index.d.ts +10 -0
- package/dist/providers/index.js +10 -0
- package/dist/providers/meta.d.ts +14 -2
- package/dist/providers/minimax.d.ts +14 -2
- package/dist/providers/moonshot.d.ts +14 -2
- package/dist/providers/moonshot.js +3 -3
- package/dist/providers/openai-compatible-responses.d.ts +2 -2
- package/dist/providers/openai-compatible.d.ts +12 -0
- package/dist/providers/openai.d.ts +25 -3
- package/dist/providers/openai.js +10 -1
- package/dist/providers/openrouter.d.ts +67 -0
- package/dist/providers/openrouter.js +13 -1
- package/dist/providers/replicate.d.ts +25 -0
- package/dist/providers/replicate.js +22 -0
- package/dist/providers/runway.d.ts +24 -0
- package/dist/providers/runway.js +22 -0
- package/dist/providers/stability.d.ts +28 -0
- package/dist/providers/stability.js +23 -0
- package/dist/providers/togetherai.d.ts +24 -0
- package/dist/providers/vercel-ai-gateway.d.ts +41 -0
- package/dist/providers/vercel-ai-gateway.js +85 -0
- package/dist/providers/xai.d.ts +17 -0
- package/dist/providers/xai.js +5 -2
- package/dist/providers/zai-coding-plan.d.ts +15 -3
- package/dist/providers/zai.d.ts +13 -1
- package/dist/route/auth.d.ts +4 -1
- package/dist/route/auth.js +6 -0
- package/dist/route/client.d.ts +9 -1
- package/dist/route/endpoint.d.ts +10 -10
- package/dist/route/executor-service.d.ts +12 -0
- package/dist/route/executor-service.js +3 -0
- package/dist/route/executor.d.ts +4 -9
- package/dist/route/executor.js +3 -3
- package/dist/route/framing.d.ts +5 -1
- package/dist/route/framing.js +9 -0
- package/dist/route/index.d.ts +2 -0
- package/dist/route/index.js +2 -0
- package/dist/route/media-protocol.d.ts +158 -0
- package/dist/route/media-protocol.js +96 -0
- package/dist/route/media.d.ts +97 -0
- package/dist/route/media.js +236 -0
- package/dist/schema/errors.d.ts +13 -3
- package/dist/schema/errors.js +7 -0
- package/dist/schema/events.d.ts +557 -40
- package/dist/schema/events.js +35 -2
- package/dist/schema/messages.d.ts +95 -8
- package/dist/schema/messages.js +8 -6
- package/dist/schema/options.d.ts +6 -3
- package/dist/schema/options.js +6 -2
- package/dist/speech-client.d.ts +21 -0
- package/dist/speech-client.js +25 -0
- package/dist/speech.d.ts +1150 -0
- package/dist/speech.js +119 -0
- package/dist/testing.d.ts +72 -8
- package/dist/transcription-client.d.ts +28 -0
- package/dist/transcription-client.js +44 -0
- package/dist/transcription.d.ts +1504 -0
- package/dist/transcription.js +133 -0
- package/dist/utils/bytes.d.ts +1 -0
- package/dist/utils/bytes.js +10 -0
- package/dist/utils/media-type.d.ts +7 -0
- package/dist/utils/media-type.js +70 -0
- package/dist/utils/sanitize.js +3 -1
- package/dist/video-client.d.ts +28 -0
- package/dist/video-client.js +40 -0
- package/dist/video.d.ts +1359 -0
- package/dist/video.js +119 -0
- package/package.json +7 -3
- package/dist/protocols/utils/gemini-tool-schema.d.ts +0 -2
- package/dist/protocols/utils/gemini-tool-schema.js +0 -103
- package/dist/protocols/utils/image-input.d.ts +0 -21
- package/dist/protocols/utils/image-input.js +0 -20
package/dist/schema/events.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { ContentBlockID, ToolCallID } from "./ids.js";
|
|
3
|
-
import { Message, CompactionPart,
|
|
3
|
+
import { Message, CompactionPart, ToolOutput, ToolResultValue } from "./messages.js";
|
|
4
|
+
import { ProviderMetadata } from "./options.js";
|
|
5
|
+
import { Media } from "../media.js";
|
|
4
6
|
export declare const FinishReason: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
5
7
|
export type FinishReason = Schema.Schema.Type<typeof FinishReason>;
|
|
6
|
-
export { ProviderMetadata } from "./messages.js";
|
|
7
8
|
declare const Usage_base: Schema.Class<Usage, Schema.Struct<{
|
|
8
9
|
/** Effective input size of the final message iteration, when reported; not billed totals. */
|
|
9
10
|
readonly contextTokens: Schema.optional<Schema.Number>;
|
|
@@ -72,6 +73,30 @@ export declare class Usage extends Usage_base {
|
|
|
72
73
|
static from(input: UsageInput): Usage;
|
|
73
74
|
}
|
|
74
75
|
export type UsageInput = Usage | ConstructorParameters<typeof Usage>[0];
|
|
76
|
+
/**
|
|
77
|
+
* Usage reported by media routes. Providers bill images, video, speech, and transcription in different units, so
|
|
78
|
+
* each response carries the unit it was actually metered in instead of forcing everything into tokens.
|
|
79
|
+
*/
|
|
80
|
+
export declare const MediaUsage: Schema.Union<readonly [Schema.Struct<{
|
|
81
|
+
readonly type: Schema.Literal<"tokens">;
|
|
82
|
+
readonly input: Schema.optional<Schema.Number>;
|
|
83
|
+
readonly output: Schema.optional<Schema.Number>;
|
|
84
|
+
readonly total: Schema.optional<Schema.Number>;
|
|
85
|
+
readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
86
|
+
}>, Schema.Struct<{
|
|
87
|
+
readonly type: Schema.Literal<"seconds">;
|
|
88
|
+
readonly seconds: Schema.Number;
|
|
89
|
+
}>, Schema.Struct<{
|
|
90
|
+
readonly type: Schema.Literal<"characters">;
|
|
91
|
+
readonly characters: Schema.Number;
|
|
92
|
+
}>, Schema.Struct<{
|
|
93
|
+
readonly type: Schema.Literal<"credits">;
|
|
94
|
+
readonly credits: Schema.Number;
|
|
95
|
+
}>, Schema.Struct<{
|
|
96
|
+
readonly type: Schema.Literal<"compute">;
|
|
97
|
+
readonly seconds: Schema.Number;
|
|
98
|
+
}>]>;
|
|
99
|
+
export type MediaUsage = Schema.Schema.Type<typeof MediaUsage>;
|
|
75
100
|
declare const CompactionResponse_base: Schema.Class<CompactionResponse, Schema.Struct<{
|
|
76
101
|
readonly replacement: Schema.$Array<typeof Message>;
|
|
77
102
|
readonly usage: Schema.optional<typeof Usage>;
|
|
@@ -323,6 +348,43 @@ export declare const Finish: Schema.Struct<{
|
|
|
323
348
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
324
349
|
}>;
|
|
325
350
|
export type Finish = Schema.Schema.Type<typeof Finish>;
|
|
351
|
+
/** A generated media asset (image, audio, …) emitted by the model as first-class output rather than a tool result. */
|
|
352
|
+
export declare const MediaEvent: Schema.Struct<{
|
|
353
|
+
readonly type: Schema.tag<"media">;
|
|
354
|
+
readonly media: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
355
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
356
|
+
readonly type: Schema.Literal<"bytes">;
|
|
357
|
+
readonly data: Schema.Uint8Array;
|
|
358
|
+
readonly mediaType: Schema.String;
|
|
359
|
+
}>, Schema.Struct<{
|
|
360
|
+
readonly type: Schema.Literal<"base64">;
|
|
361
|
+
readonly data: Schema.String;
|
|
362
|
+
readonly mediaType: Schema.String;
|
|
363
|
+
}>, Schema.Struct<{
|
|
364
|
+
readonly type: Schema.Literal<"url">;
|
|
365
|
+
readonly url: Schema.String;
|
|
366
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
367
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
368
|
+
}>, Schema.Struct<{
|
|
369
|
+
readonly type: Schema.Literal<"ref">;
|
|
370
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
371
|
+
readonly id: Schema.String;
|
|
372
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
373
|
+
}>]>;
|
|
374
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
375
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
376
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
377
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
378
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
379
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
380
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
381
|
+
readonly format: Schema.optional<Schema.String>;
|
|
382
|
+
}>>;
|
|
383
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
384
|
+
}>, never, never>;
|
|
385
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
386
|
+
}>;
|
|
387
|
+
export type MediaEvent = Schema.Schema.Type<typeof MediaEvent>;
|
|
326
388
|
export declare const ProviderErrorEvent: Schema.Struct<{
|
|
327
389
|
readonly type: Schema.tag<"provider-error">;
|
|
328
390
|
readonly message: Schema.String;
|
|
@@ -499,6 +561,40 @@ declare const llmEventTagged: Schema.toTaggedUnion<"type", readonly [Schema.refi
|
|
|
499
561
|
readonly message: Schema.String;
|
|
500
562
|
readonly error: Schema.optional<Schema.Defect>;
|
|
501
563
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
564
|
+
}>, Schema.Struct<{
|
|
565
|
+
readonly type: Schema.tag<"media">;
|
|
566
|
+
readonly media: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
567
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
568
|
+
readonly type: Schema.Literal<"bytes">;
|
|
569
|
+
readonly data: Schema.Uint8Array;
|
|
570
|
+
readonly mediaType: Schema.String;
|
|
571
|
+
}>, Schema.Struct<{
|
|
572
|
+
readonly type: Schema.Literal<"base64">;
|
|
573
|
+
readonly data: Schema.String;
|
|
574
|
+
readonly mediaType: Schema.String;
|
|
575
|
+
}>, Schema.Struct<{
|
|
576
|
+
readonly type: Schema.Literal<"url">;
|
|
577
|
+
readonly url: Schema.String;
|
|
578
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
579
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
580
|
+
}>, Schema.Struct<{
|
|
581
|
+
readonly type: Schema.Literal<"ref">;
|
|
582
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
583
|
+
readonly id: Schema.String;
|
|
584
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
585
|
+
}>]>;
|
|
586
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
587
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
588
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
589
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
590
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
591
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
592
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
593
|
+
readonly format: Schema.optional<Schema.String>;
|
|
594
|
+
}>>;
|
|
595
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
596
|
+
}>, never, never>;
|
|
597
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
502
598
|
}>, Schema.Struct<{
|
|
503
599
|
readonly type: Schema.tag<"step-finish">;
|
|
504
600
|
readonly index: Schema.Number;
|
|
@@ -706,6 +802,40 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
706
802
|
readonly message: Schema.String;
|
|
707
803
|
readonly error: Schema.optional<Schema.Defect>;
|
|
708
804
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
805
|
+
}>, Schema.Struct<{
|
|
806
|
+
readonly type: Schema.tag<"media">;
|
|
807
|
+
readonly media: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
808
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
809
|
+
readonly type: Schema.Literal<"bytes">;
|
|
810
|
+
readonly data: Schema.Uint8Array;
|
|
811
|
+
readonly mediaType: Schema.String;
|
|
812
|
+
}>, Schema.Struct<{
|
|
813
|
+
readonly type: Schema.Literal<"base64">;
|
|
814
|
+
readonly data: Schema.String;
|
|
815
|
+
readonly mediaType: Schema.String;
|
|
816
|
+
}>, Schema.Struct<{
|
|
817
|
+
readonly type: Schema.Literal<"url">;
|
|
818
|
+
readonly url: Schema.String;
|
|
819
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
820
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
821
|
+
}>, Schema.Struct<{
|
|
822
|
+
readonly type: Schema.Literal<"ref">;
|
|
823
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
824
|
+
readonly id: Schema.String;
|
|
825
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
826
|
+
}>]>;
|
|
827
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
828
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
829
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
830
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
831
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
832
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
833
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
834
|
+
readonly format: Schema.optional<Schema.String>;
|
|
835
|
+
}>>;
|
|
836
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
837
|
+
}>, never, never>;
|
|
838
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
709
839
|
}>, Schema.Struct<{
|
|
710
840
|
readonly type: Schema.tag<"step-finish">;
|
|
711
841
|
readonly index: Schema.Number;
|
|
@@ -729,7 +859,7 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
729
859
|
readonly classification: Schema.optional<Schema.Literals<readonly ["context-overflow", "payload-too-large"]>>;
|
|
730
860
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
731
861
|
}>]> & {
|
|
732
|
-
readonly discriminants: readonly ["compaction", "step-start", "text-start", "text-delta", "text-end", "reasoning-start", "reasoning-delta", "reasoning-end", "tool-input-start", "tool-input-delta", "tool-input-end", "tool-input-error", "tool-call", "tool-result", "tool-error", "step-finish", "finish", "provider-error"];
|
|
862
|
+
readonly discriminants: readonly ["compaction", "step-start", "text-start", "text-delta", "text-end", "reasoning-start", "reasoning-delta", "reasoning-end", "tool-input-start", "tool-input-delta", "tool-input-end", "tool-input-error", "tool-call", "tool-result", "tool-error", "media", "step-finish", "finish", "provider-error"];
|
|
733
863
|
readonly cases: {
|
|
734
864
|
compaction: Schema.refine<{
|
|
735
865
|
readonly type: "compaction";
|
|
@@ -915,6 +1045,41 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
915
1045
|
readonly error: Schema.optional<Schema.Defect>;
|
|
916
1046
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
917
1047
|
}>;
|
|
1048
|
+
media: Schema.Struct<{
|
|
1049
|
+
readonly type: Schema.tag<"media">;
|
|
1050
|
+
readonly media: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
1051
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1052
|
+
readonly type: Schema.Literal<"bytes">;
|
|
1053
|
+
readonly data: Schema.Uint8Array;
|
|
1054
|
+
readonly mediaType: Schema.String;
|
|
1055
|
+
}>, Schema.Struct<{
|
|
1056
|
+
readonly type: Schema.Literal<"base64">;
|
|
1057
|
+
readonly data: Schema.String;
|
|
1058
|
+
readonly mediaType: Schema.String;
|
|
1059
|
+
}>, Schema.Struct<{
|
|
1060
|
+
readonly type: Schema.Literal<"url">;
|
|
1061
|
+
readonly url: Schema.String;
|
|
1062
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
1063
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
1064
|
+
}>, Schema.Struct<{
|
|
1065
|
+
readonly type: Schema.Literal<"ref">;
|
|
1066
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
1067
|
+
readonly id: Schema.String;
|
|
1068
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
1069
|
+
}>]>;
|
|
1070
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
1071
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
1072
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
1073
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
1074
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
1075
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
1076
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
1077
|
+
readonly format: Schema.optional<Schema.String>;
|
|
1078
|
+
}>>;
|
|
1079
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1080
|
+
}>, never, never>;
|
|
1081
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1082
|
+
}>;
|
|
918
1083
|
"step-finish": Schema.Struct<{
|
|
919
1084
|
readonly type: Schema.tag<"step-finish">;
|
|
920
1085
|
readonly index: Schema.Number;
|
|
@@ -1110,6 +1275,14 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
1110
1275
|
};
|
|
1111
1276
|
} | undefined;
|
|
1112
1277
|
readonly namespace?: string | undefined;
|
|
1278
|
+
} | {
|
|
1279
|
+
readonly type: "media";
|
|
1280
|
+
readonly media: Media.Asset;
|
|
1281
|
+
readonly providerMetadata?: {
|
|
1282
|
+
readonly [x: string]: {
|
|
1283
|
+
readonly [x: string]: unknown;
|
|
1284
|
+
};
|
|
1285
|
+
} | undefined;
|
|
1113
1286
|
} | {
|
|
1114
1287
|
readonly type: "step-finish";
|
|
1115
1288
|
readonly reason: {
|
|
@@ -1138,12 +1311,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
1138
1311
|
} | {
|
|
1139
1312
|
readonly type: "provider-error";
|
|
1140
1313
|
readonly message: string;
|
|
1314
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
1141
1315
|
readonly providerMetadata?: {
|
|
1142
1316
|
readonly [x: string]: {
|
|
1143
1317
|
readonly [x: string]: unknown;
|
|
1144
1318
|
};
|
|
1145
1319
|
} | undefined;
|
|
1146
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
1147
1320
|
}) => value is Extract<{
|
|
1148
1321
|
readonly type: "compaction";
|
|
1149
1322
|
readonly provider: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
@@ -1351,6 +1524,16 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
1351
1524
|
readonly namespace?: string | undefined;
|
|
1352
1525
|
}, {
|
|
1353
1526
|
readonly type: Keys;
|
|
1527
|
+
}> | Extract<{
|
|
1528
|
+
readonly type: "media";
|
|
1529
|
+
readonly media: Media.Asset;
|
|
1530
|
+
readonly providerMetadata?: {
|
|
1531
|
+
readonly [x: string]: {
|
|
1532
|
+
readonly [x: string]: unknown;
|
|
1533
|
+
};
|
|
1534
|
+
} | undefined;
|
|
1535
|
+
}, {
|
|
1536
|
+
readonly type: Keys;
|
|
1354
1537
|
}> | Extract<{
|
|
1355
1538
|
readonly type: "step-finish";
|
|
1356
1539
|
readonly reason: {
|
|
@@ -1383,12 +1566,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
1383
1566
|
}> | Extract<{
|
|
1384
1567
|
readonly type: "provider-error";
|
|
1385
1568
|
readonly message: string;
|
|
1569
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
1386
1570
|
readonly providerMetadata?: {
|
|
1387
1571
|
readonly [x: string]: {
|
|
1388
1572
|
readonly [x: string]: unknown;
|
|
1389
1573
|
};
|
|
1390
1574
|
} | undefined;
|
|
1391
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
1392
1575
|
}, {
|
|
1393
1576
|
readonly type: Keys;
|
|
1394
1577
|
}>;
|
|
@@ -1577,6 +1760,15 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
1577
1760
|
} | undefined;
|
|
1578
1761
|
readonly namespace?: string | undefined;
|
|
1579
1762
|
};
|
|
1763
|
+
media: (u: unknown) => u is {
|
|
1764
|
+
readonly type: "media";
|
|
1765
|
+
readonly media: Media.Asset;
|
|
1766
|
+
readonly providerMetadata?: {
|
|
1767
|
+
readonly [x: string]: {
|
|
1768
|
+
readonly [x: string]: unknown;
|
|
1769
|
+
};
|
|
1770
|
+
} | undefined;
|
|
1771
|
+
};
|
|
1580
1772
|
"step-finish": (u: unknown) => u is {
|
|
1581
1773
|
readonly type: "step-finish";
|
|
1582
1774
|
readonly reason: {
|
|
@@ -1607,12 +1799,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
1607
1799
|
"provider-error": (u: unknown) => u is {
|
|
1608
1800
|
readonly type: "provider-error";
|
|
1609
1801
|
readonly message: string;
|
|
1802
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
1610
1803
|
readonly providerMetadata?: {
|
|
1611
1804
|
readonly [x: string]: {
|
|
1612
1805
|
readonly [x: string]: unknown;
|
|
1613
1806
|
};
|
|
1614
1807
|
} | undefined;
|
|
1615
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
1616
1808
|
};
|
|
1617
1809
|
};
|
|
1618
1810
|
readonly match: {
|
|
@@ -1801,6 +1993,15 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
1801
1993
|
} | undefined;
|
|
1802
1994
|
readonly namespace?: string | undefined;
|
|
1803
1995
|
}) => any;
|
|
1996
|
+
media: (value: {
|
|
1997
|
+
readonly type: "media";
|
|
1998
|
+
readonly media: Media.Asset;
|
|
1999
|
+
readonly providerMetadata?: {
|
|
2000
|
+
readonly [x: string]: {
|
|
2001
|
+
readonly [x: string]: unknown;
|
|
2002
|
+
};
|
|
2003
|
+
} | undefined;
|
|
2004
|
+
}) => any;
|
|
1804
2005
|
"step-finish": (value: {
|
|
1805
2006
|
readonly type: "step-finish";
|
|
1806
2007
|
readonly reason: {
|
|
@@ -1831,12 +2032,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
1831
2032
|
"provider-error": (value: {
|
|
1832
2033
|
readonly type: "provider-error";
|
|
1833
2034
|
readonly message: string;
|
|
2035
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
1834
2036
|
readonly providerMetadata?: {
|
|
1835
2037
|
readonly [x: string]: {
|
|
1836
2038
|
readonly [x: string]: unknown;
|
|
1837
2039
|
};
|
|
1838
2040
|
} | undefined;
|
|
1839
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
1840
2041
|
}) => any;
|
|
1841
2042
|
}>(value: ({
|
|
1842
2043
|
readonly type: "compaction";
|
|
@@ -2007,6 +2208,14 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2007
2208
|
};
|
|
2008
2209
|
} | undefined;
|
|
2009
2210
|
readonly namespace?: string | undefined;
|
|
2211
|
+
} | {
|
|
2212
|
+
readonly type: "media";
|
|
2213
|
+
readonly media: Media.Asset;
|
|
2214
|
+
readonly providerMetadata?: {
|
|
2215
|
+
readonly [x: string]: {
|
|
2216
|
+
readonly [x: string]: unknown;
|
|
2217
|
+
};
|
|
2218
|
+
} | undefined;
|
|
2010
2219
|
} | {
|
|
2011
2220
|
readonly type: "step-finish";
|
|
2012
2221
|
readonly reason: {
|
|
@@ -2035,12 +2244,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2035
2244
|
} | {
|
|
2036
2245
|
readonly type: "provider-error";
|
|
2037
2246
|
readonly message: string;
|
|
2247
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2038
2248
|
readonly providerMetadata?: {
|
|
2039
2249
|
readonly [x: string]: {
|
|
2040
2250
|
readonly [x: string]: unknown;
|
|
2041
2251
|
};
|
|
2042
2252
|
} | undefined;
|
|
2043
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2044
2253
|
}, cases: Cases): Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never;
|
|
2045
2254
|
<Cases extends {
|
|
2046
2255
|
compaction: (value: {
|
|
@@ -2227,6 +2436,15 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2227
2436
|
} | undefined;
|
|
2228
2437
|
readonly namespace?: string | undefined;
|
|
2229
2438
|
}) => any;
|
|
2439
|
+
media: (value: {
|
|
2440
|
+
readonly type: "media";
|
|
2441
|
+
readonly media: Media.Asset;
|
|
2442
|
+
readonly providerMetadata?: {
|
|
2443
|
+
readonly [x: string]: {
|
|
2444
|
+
readonly [x: string]: unknown;
|
|
2445
|
+
};
|
|
2446
|
+
} | undefined;
|
|
2447
|
+
}) => any;
|
|
2230
2448
|
"step-finish": (value: {
|
|
2231
2449
|
readonly type: "step-finish";
|
|
2232
2450
|
readonly reason: {
|
|
@@ -2257,12 +2475,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2257
2475
|
"provider-error": (value: {
|
|
2258
2476
|
readonly type: "provider-error";
|
|
2259
2477
|
readonly message: string;
|
|
2478
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2260
2479
|
readonly providerMetadata?: {
|
|
2261
2480
|
readonly [x: string]: {
|
|
2262
2481
|
readonly [x: string]: unknown;
|
|
2263
2482
|
};
|
|
2264
2483
|
} | undefined;
|
|
2265
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2266
2484
|
}) => any;
|
|
2267
2485
|
}>(cases: Cases): (value: ({
|
|
2268
2486
|
readonly type: "compaction";
|
|
@@ -2433,6 +2651,14 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2433
2651
|
};
|
|
2434
2652
|
} | undefined;
|
|
2435
2653
|
readonly namespace?: string | undefined;
|
|
2654
|
+
} | {
|
|
2655
|
+
readonly type: "media";
|
|
2656
|
+
readonly media: Media.Asset;
|
|
2657
|
+
readonly providerMetadata?: {
|
|
2658
|
+
readonly [x: string]: {
|
|
2659
|
+
readonly [x: string]: unknown;
|
|
2660
|
+
};
|
|
2661
|
+
} | undefined;
|
|
2436
2662
|
} | {
|
|
2437
2663
|
readonly type: "step-finish";
|
|
2438
2664
|
readonly reason: {
|
|
@@ -2461,12 +2687,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2461
2687
|
} | {
|
|
2462
2688
|
readonly type: "provider-error";
|
|
2463
2689
|
readonly message: string;
|
|
2690
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2464
2691
|
readonly providerMetadata?: {
|
|
2465
2692
|
readonly [x: string]: {
|
|
2466
2693
|
readonly [x: string]: unknown;
|
|
2467
2694
|
};
|
|
2468
2695
|
} | undefined;
|
|
2469
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2470
2696
|
}) => Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never;
|
|
2471
2697
|
};
|
|
2472
2698
|
readonly matchOrElse: {
|
|
@@ -2655,6 +2881,15 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2655
2881
|
} | undefined;
|
|
2656
2882
|
readonly namespace?: string | undefined;
|
|
2657
2883
|
}) => any) | undefined;
|
|
2884
|
+
media?: ((value: {
|
|
2885
|
+
readonly type: "media";
|
|
2886
|
+
readonly media: Media.Asset;
|
|
2887
|
+
readonly providerMetadata?: {
|
|
2888
|
+
readonly [x: string]: {
|
|
2889
|
+
readonly [x: string]: unknown;
|
|
2890
|
+
};
|
|
2891
|
+
} | undefined;
|
|
2892
|
+
}) => any) | undefined;
|
|
2658
2893
|
"step-finish"?: ((value: {
|
|
2659
2894
|
readonly type: "step-finish";
|
|
2660
2895
|
readonly reason: {
|
|
@@ -2685,14 +2920,14 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2685
2920
|
"provider-error"?: ((value: {
|
|
2686
2921
|
readonly type: "provider-error";
|
|
2687
2922
|
readonly message: string;
|
|
2923
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2688
2924
|
readonly providerMetadata?: {
|
|
2689
2925
|
readonly [x: string]: {
|
|
2690
2926
|
readonly [x: string]: unknown;
|
|
2691
2927
|
};
|
|
2692
2928
|
} | undefined;
|
|
2693
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2694
2929
|
}) => any) | undefined;
|
|
2695
|
-
} & { [K in Exclude<keyof Cases, "compaction" | "finish" | "tool-call" | "tool-result" | "step-start" | "text-start" | "text-delta" | "text-end" | "reasoning-start" | "reasoning-delta" | "reasoning-end" | "tool-input-start" | "tool-input-delta" | "tool-input-end" | "tool-input-error" | "tool-error" | "step-finish" | "provider-error">]: never; }, OrElse extends (value: Exclude<{
|
|
2930
|
+
} & { [K in Exclude<keyof Cases, "compaction" | "finish" | "media" | "tool-call" | "tool-result" | "step-start" | "text-start" | "text-delta" | "text-end" | "reasoning-start" | "reasoning-delta" | "reasoning-end" | "tool-input-start" | "tool-input-delta" | "tool-input-end" | "tool-input-error" | "tool-error" | "step-finish" | "provider-error">]: never; }, OrElse extends (value: Exclude<{
|
|
2696
2931
|
readonly type: "compaction";
|
|
2697
2932
|
readonly provider: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
2698
2933
|
readonly id?: string | undefined;
|
|
@@ -2899,6 +3134,16 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2899
3134
|
readonly namespace?: string | undefined;
|
|
2900
3135
|
}, {
|
|
2901
3136
|
readonly type: keyof Cases;
|
|
3137
|
+
}> | Exclude<{
|
|
3138
|
+
readonly type: "media";
|
|
3139
|
+
readonly media: Media.Asset;
|
|
3140
|
+
readonly providerMetadata?: {
|
|
3141
|
+
readonly [x: string]: {
|
|
3142
|
+
readonly [x: string]: unknown;
|
|
3143
|
+
};
|
|
3144
|
+
} | undefined;
|
|
3145
|
+
}, {
|
|
3146
|
+
readonly type: keyof Cases;
|
|
2902
3147
|
}> | Exclude<{
|
|
2903
3148
|
readonly type: "step-finish";
|
|
2904
3149
|
readonly reason: {
|
|
@@ -2931,12 +3176,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
2931
3176
|
}> | Exclude<{
|
|
2932
3177
|
readonly type: "provider-error";
|
|
2933
3178
|
readonly message: string;
|
|
3179
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2934
3180
|
readonly providerMetadata?: {
|
|
2935
3181
|
readonly [x: string]: {
|
|
2936
3182
|
readonly [x: string]: unknown;
|
|
2937
3183
|
};
|
|
2938
3184
|
} | undefined;
|
|
2939
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
2940
3185
|
}, {
|
|
2941
3186
|
readonly type: keyof Cases;
|
|
2942
3187
|
}>) => any>(value: ({
|
|
@@ -3108,6 +3353,14 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
3108
3353
|
};
|
|
3109
3354
|
} | undefined;
|
|
3110
3355
|
readonly namespace?: string | undefined;
|
|
3356
|
+
} | {
|
|
3357
|
+
readonly type: "media";
|
|
3358
|
+
readonly media: Media.Asset;
|
|
3359
|
+
readonly providerMetadata?: {
|
|
3360
|
+
readonly [x: string]: {
|
|
3361
|
+
readonly [x: string]: unknown;
|
|
3362
|
+
};
|
|
3363
|
+
} | undefined;
|
|
3111
3364
|
} | {
|
|
3112
3365
|
readonly type: "step-finish";
|
|
3113
3366
|
readonly reason: {
|
|
@@ -3136,12 +3389,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
3136
3389
|
} | {
|
|
3137
3390
|
readonly type: "provider-error";
|
|
3138
3391
|
readonly message: string;
|
|
3392
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
3139
3393
|
readonly providerMetadata?: {
|
|
3140
3394
|
readonly [x: string]: {
|
|
3141
3395
|
readonly [x: string]: unknown;
|
|
3142
3396
|
};
|
|
3143
3397
|
} | undefined;
|
|
3144
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
3145
3398
|
}, cases: Cases, orElse: OrElse): import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
|
|
3146
3399
|
<Cases extends {
|
|
3147
3400
|
compaction?: ((value: {
|
|
@@ -3328,6 +3581,15 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
3328
3581
|
} | undefined;
|
|
3329
3582
|
readonly namespace?: string | undefined;
|
|
3330
3583
|
}) => any) | undefined;
|
|
3584
|
+
media?: ((value: {
|
|
3585
|
+
readonly type: "media";
|
|
3586
|
+
readonly media: Media.Asset;
|
|
3587
|
+
readonly providerMetadata?: {
|
|
3588
|
+
readonly [x: string]: {
|
|
3589
|
+
readonly [x: string]: unknown;
|
|
3590
|
+
};
|
|
3591
|
+
} | undefined;
|
|
3592
|
+
}) => any) | undefined;
|
|
3331
3593
|
"step-finish"?: ((value: {
|
|
3332
3594
|
readonly type: "step-finish";
|
|
3333
3595
|
readonly reason: {
|
|
@@ -3358,14 +3620,14 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
3358
3620
|
"provider-error"?: ((value: {
|
|
3359
3621
|
readonly type: "provider-error";
|
|
3360
3622
|
readonly message: string;
|
|
3623
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
3361
3624
|
readonly providerMetadata?: {
|
|
3362
3625
|
readonly [x: string]: {
|
|
3363
3626
|
readonly [x: string]: unknown;
|
|
3364
3627
|
};
|
|
3365
3628
|
} | undefined;
|
|
3366
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
3367
3629
|
}) => any) | undefined;
|
|
3368
|
-
} & { [K in Exclude<keyof Cases, "compaction" | "finish" | "tool-call" | "tool-result" | "step-start" | "text-start" | "text-delta" | "text-end" | "reasoning-start" | "reasoning-delta" | "reasoning-end" | "tool-input-start" | "tool-input-delta" | "tool-input-end" | "tool-input-error" | "tool-error" | "step-finish" | "provider-error">]: never; }, OrElse extends (value: Exclude<{
|
|
3630
|
+
} & { [K in Exclude<keyof Cases, "compaction" | "finish" | "media" | "tool-call" | "tool-result" | "step-start" | "text-start" | "text-delta" | "text-end" | "reasoning-start" | "reasoning-delta" | "reasoning-end" | "tool-input-start" | "tool-input-delta" | "tool-input-end" | "tool-input-error" | "tool-error" | "step-finish" | "provider-error">]: never; }, OrElse extends (value: Exclude<{
|
|
3369
3631
|
readonly type: "compaction";
|
|
3370
3632
|
readonly provider: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
3371
3633
|
readonly id?: string | undefined;
|
|
@@ -3572,6 +3834,16 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
3572
3834
|
readonly namespace?: string | undefined;
|
|
3573
3835
|
}, {
|
|
3574
3836
|
readonly type: keyof Cases;
|
|
3837
|
+
}> | Exclude<{
|
|
3838
|
+
readonly type: "media";
|
|
3839
|
+
readonly media: Media.Asset;
|
|
3840
|
+
readonly providerMetadata?: {
|
|
3841
|
+
readonly [x: string]: {
|
|
3842
|
+
readonly [x: string]: unknown;
|
|
3843
|
+
};
|
|
3844
|
+
} | undefined;
|
|
3845
|
+
}, {
|
|
3846
|
+
readonly type: keyof Cases;
|
|
3575
3847
|
}> | Exclude<{
|
|
3576
3848
|
readonly type: "step-finish";
|
|
3577
3849
|
readonly reason: {
|
|
@@ -3604,12 +3876,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
3604
3876
|
}> | Exclude<{
|
|
3605
3877
|
readonly type: "provider-error";
|
|
3606
3878
|
readonly message: string;
|
|
3879
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
3607
3880
|
readonly providerMetadata?: {
|
|
3608
3881
|
readonly [x: string]: {
|
|
3609
3882
|
readonly [x: string]: unknown;
|
|
3610
3883
|
};
|
|
3611
3884
|
} | undefined;
|
|
3612
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
3613
3885
|
}, {
|
|
3614
3886
|
readonly type: keyof Cases;
|
|
3615
3887
|
}>) => any>(cases: Cases, orElse: OrElse): (value: ({
|
|
@@ -3781,6 +4053,14 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
3781
4053
|
};
|
|
3782
4054
|
} | undefined;
|
|
3783
4055
|
readonly namespace?: string | undefined;
|
|
4056
|
+
} | {
|
|
4057
|
+
readonly type: "media";
|
|
4058
|
+
readonly media: Media.Asset;
|
|
4059
|
+
readonly providerMetadata?: {
|
|
4060
|
+
readonly [x: string]: {
|
|
4061
|
+
readonly [x: string]: unknown;
|
|
4062
|
+
};
|
|
4063
|
+
} | undefined;
|
|
3784
4064
|
} | {
|
|
3785
4065
|
readonly type: "step-finish";
|
|
3786
4066
|
readonly reason: {
|
|
@@ -3809,12 +4089,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
3809
4089
|
} | {
|
|
3810
4090
|
readonly type: "provider-error";
|
|
3811
4091
|
readonly message: string;
|
|
4092
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
3812
4093
|
readonly providerMetadata?: {
|
|
3813
4094
|
readonly [x: string]: {
|
|
3814
4095
|
readonly [x: string]: unknown;
|
|
3815
4096
|
};
|
|
3816
4097
|
} | undefined;
|
|
3817
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
3818
4098
|
}) => import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
|
|
3819
4099
|
};
|
|
3820
4100
|
} & {
|
|
@@ -4017,6 +4297,23 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
4017
4297
|
} | undefined;
|
|
4018
4298
|
readonly namespace?: string | undefined;
|
|
4019
4299
|
};
|
|
4300
|
+
media: (input: {
|
|
4301
|
+
readonly media: Media.Asset;
|
|
4302
|
+
readonly type?: "media" | undefined;
|
|
4303
|
+
readonly providerMetadata?: {
|
|
4304
|
+
readonly [x: string]: {
|
|
4305
|
+
readonly [x: string]: unknown;
|
|
4306
|
+
};
|
|
4307
|
+
} | undefined;
|
|
4308
|
+
}, options?: Schema.MakeOptions) => {
|
|
4309
|
+
readonly type: "media";
|
|
4310
|
+
readonly media: Media.Asset;
|
|
4311
|
+
readonly providerMetadata?: {
|
|
4312
|
+
readonly [x: string]: {
|
|
4313
|
+
readonly [x: string]: unknown;
|
|
4314
|
+
};
|
|
4315
|
+
} | undefined;
|
|
4316
|
+
};
|
|
4020
4317
|
stepFinish: (input: WithUsage<StepFinish>) => {
|
|
4021
4318
|
readonly type: "step-finish";
|
|
4022
4319
|
readonly reason: {
|
|
@@ -4047,21 +4344,21 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
4047
4344
|
providerError: (input: {
|
|
4048
4345
|
readonly message: string;
|
|
4049
4346
|
readonly type?: "provider-error" | undefined;
|
|
4347
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
4050
4348
|
readonly providerMetadata?: {
|
|
4051
4349
|
readonly [x: string]: {
|
|
4052
4350
|
readonly [x: string]: unknown;
|
|
4053
4351
|
};
|
|
4054
4352
|
} | undefined;
|
|
4055
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
4056
4353
|
}, options?: Schema.MakeOptions) => {
|
|
4057
4354
|
readonly type: "provider-error";
|
|
4058
4355
|
readonly message: string;
|
|
4356
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
4059
4357
|
readonly providerMetadata?: {
|
|
4060
4358
|
readonly [x: string]: {
|
|
4061
4359
|
readonly [x: string]: unknown;
|
|
4062
4360
|
};
|
|
4063
4361
|
} | undefined;
|
|
4064
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
4065
4362
|
};
|
|
4066
4363
|
is: {
|
|
4067
4364
|
compaction: (u: unknown) => u is {
|
|
@@ -4248,6 +4545,15 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
4248
4545
|
} | undefined;
|
|
4249
4546
|
readonly namespace?: string | undefined;
|
|
4250
4547
|
};
|
|
4548
|
+
media: (u: unknown) => u is {
|
|
4549
|
+
readonly type: "media";
|
|
4550
|
+
readonly media: Media.Asset;
|
|
4551
|
+
readonly providerMetadata?: {
|
|
4552
|
+
readonly [x: string]: {
|
|
4553
|
+
readonly [x: string]: unknown;
|
|
4554
|
+
};
|
|
4555
|
+
} | undefined;
|
|
4556
|
+
};
|
|
4251
4557
|
stepFinish: (u: unknown) => u is {
|
|
4252
4558
|
readonly type: "step-finish";
|
|
4253
4559
|
readonly reason: {
|
|
@@ -4278,12 +4584,12 @@ export declare const LLMEvent: Schema.Union<readonly [Schema.refine<{
|
|
|
4278
4584
|
providerError: (u: unknown) => u is {
|
|
4279
4585
|
readonly type: "provider-error";
|
|
4280
4586
|
readonly message: string;
|
|
4587
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
4281
4588
|
readonly providerMetadata?: {
|
|
4282
4589
|
readonly [x: string]: {
|
|
4283
4590
|
readonly [x: string]: unknown;
|
|
4284
4591
|
};
|
|
4285
4592
|
} | undefined;
|
|
4286
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
4287
4593
|
};
|
|
4288
4594
|
};
|
|
4289
4595
|
};
|
|
@@ -4479,6 +4785,40 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
4479
4785
|
readonly message: Schema.String;
|
|
4480
4786
|
readonly error: Schema.optional<Schema.Defect>;
|
|
4481
4787
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
4788
|
+
}>, Schema.Struct<{
|
|
4789
|
+
readonly type: Schema.tag<"media">;
|
|
4790
|
+
readonly media: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
4791
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
4792
|
+
readonly type: Schema.Literal<"bytes">;
|
|
4793
|
+
readonly data: Schema.Uint8Array;
|
|
4794
|
+
readonly mediaType: Schema.String;
|
|
4795
|
+
}>, Schema.Struct<{
|
|
4796
|
+
readonly type: Schema.Literal<"base64">;
|
|
4797
|
+
readonly data: Schema.String;
|
|
4798
|
+
readonly mediaType: Schema.String;
|
|
4799
|
+
}>, Schema.Struct<{
|
|
4800
|
+
readonly type: Schema.Literal<"url">;
|
|
4801
|
+
readonly url: Schema.String;
|
|
4802
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
4803
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
4804
|
+
}>, Schema.Struct<{
|
|
4805
|
+
readonly type: Schema.Literal<"ref">;
|
|
4806
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
4807
|
+
readonly id: Schema.String;
|
|
4808
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
4809
|
+
}>]>;
|
|
4810
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
4811
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
4812
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
4813
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
4814
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
4815
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
4816
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
4817
|
+
readonly format: Schema.optional<Schema.String>;
|
|
4818
|
+
}>>;
|
|
4819
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
4820
|
+
}>, never, never>;
|
|
4821
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
4482
4822
|
}>, Schema.Struct<{
|
|
4483
4823
|
readonly type: Schema.tag<"step-finish">;
|
|
4484
4824
|
readonly index: Schema.Number;
|
|
@@ -4502,7 +4842,7 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
4502
4842
|
readonly classification: Schema.optional<Schema.Literals<readonly ["context-overflow", "payload-too-large"]>>;
|
|
4503
4843
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
4504
4844
|
}>]> & {
|
|
4505
|
-
readonly discriminants: readonly ["compaction", "step-start", "text-start", "text-delta", "text-end", "reasoning-start", "reasoning-delta", "reasoning-end", "tool-input-start", "tool-input-delta", "tool-input-end", "tool-input-error", "tool-call", "tool-result", "tool-error", "step-finish", "finish", "provider-error"];
|
|
4845
|
+
readonly discriminants: readonly ["compaction", "step-start", "text-start", "text-delta", "text-end", "reasoning-start", "reasoning-delta", "reasoning-end", "tool-input-start", "tool-input-delta", "tool-input-end", "tool-input-error", "tool-call", "tool-result", "tool-error", "media", "step-finish", "finish", "provider-error"];
|
|
4506
4846
|
readonly cases: {
|
|
4507
4847
|
compaction: Schema.refine<{
|
|
4508
4848
|
readonly type: "compaction";
|
|
@@ -4688,6 +5028,41 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
4688
5028
|
readonly error: Schema.optional<Schema.Defect>;
|
|
4689
5029
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
4690
5030
|
}>;
|
|
5031
|
+
media: Schema.Struct<{
|
|
5032
|
+
readonly type: Schema.tag<"media">;
|
|
5033
|
+
readonly media: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
5034
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
5035
|
+
readonly type: Schema.Literal<"bytes">;
|
|
5036
|
+
readonly data: Schema.Uint8Array;
|
|
5037
|
+
readonly mediaType: Schema.String;
|
|
5038
|
+
}>, Schema.Struct<{
|
|
5039
|
+
readonly type: Schema.Literal<"base64">;
|
|
5040
|
+
readonly data: Schema.String;
|
|
5041
|
+
readonly mediaType: Schema.String;
|
|
5042
|
+
}>, Schema.Struct<{
|
|
5043
|
+
readonly type: Schema.Literal<"url">;
|
|
5044
|
+
readonly url: Schema.String;
|
|
5045
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
5046
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
5047
|
+
}>, Schema.Struct<{
|
|
5048
|
+
readonly type: Schema.Literal<"ref">;
|
|
5049
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
5050
|
+
readonly id: Schema.String;
|
|
5051
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
5052
|
+
}>]>;
|
|
5053
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
5054
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
5055
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
5056
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
5057
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
5058
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
5059
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
5060
|
+
readonly format: Schema.optional<Schema.String>;
|
|
5061
|
+
}>>;
|
|
5062
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
5063
|
+
}>, never, never>;
|
|
5064
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
5065
|
+
}>;
|
|
4691
5066
|
"step-finish": Schema.Struct<{
|
|
4692
5067
|
readonly type: Schema.tag<"step-finish">;
|
|
4693
5068
|
readonly index: Schema.Number;
|
|
@@ -4883,6 +5258,14 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
4883
5258
|
};
|
|
4884
5259
|
} | undefined;
|
|
4885
5260
|
readonly namespace?: string | undefined;
|
|
5261
|
+
} | {
|
|
5262
|
+
readonly type: "media";
|
|
5263
|
+
readonly media: Media.Asset;
|
|
5264
|
+
readonly providerMetadata?: {
|
|
5265
|
+
readonly [x: string]: {
|
|
5266
|
+
readonly [x: string]: unknown;
|
|
5267
|
+
};
|
|
5268
|
+
} | undefined;
|
|
4886
5269
|
} | {
|
|
4887
5270
|
readonly type: "step-finish";
|
|
4888
5271
|
readonly reason: {
|
|
@@ -4911,12 +5294,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
4911
5294
|
} | {
|
|
4912
5295
|
readonly type: "provider-error";
|
|
4913
5296
|
readonly message: string;
|
|
5297
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
4914
5298
|
readonly providerMetadata?: {
|
|
4915
5299
|
readonly [x: string]: {
|
|
4916
5300
|
readonly [x: string]: unknown;
|
|
4917
5301
|
};
|
|
4918
5302
|
} | undefined;
|
|
4919
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
4920
5303
|
}) => value is Extract<{
|
|
4921
5304
|
readonly type: "compaction";
|
|
4922
5305
|
readonly provider: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
@@ -5124,6 +5507,16 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
5124
5507
|
readonly namespace?: string | undefined;
|
|
5125
5508
|
}, {
|
|
5126
5509
|
readonly type: Keys;
|
|
5510
|
+
}> | Extract<{
|
|
5511
|
+
readonly type: "media";
|
|
5512
|
+
readonly media: Media.Asset;
|
|
5513
|
+
readonly providerMetadata?: {
|
|
5514
|
+
readonly [x: string]: {
|
|
5515
|
+
readonly [x: string]: unknown;
|
|
5516
|
+
};
|
|
5517
|
+
} | undefined;
|
|
5518
|
+
}, {
|
|
5519
|
+
readonly type: Keys;
|
|
5127
5520
|
}> | Extract<{
|
|
5128
5521
|
readonly type: "step-finish";
|
|
5129
5522
|
readonly reason: {
|
|
@@ -5156,12 +5549,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
5156
5549
|
}> | Extract<{
|
|
5157
5550
|
readonly type: "provider-error";
|
|
5158
5551
|
readonly message: string;
|
|
5552
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
5159
5553
|
readonly providerMetadata?: {
|
|
5160
5554
|
readonly [x: string]: {
|
|
5161
5555
|
readonly [x: string]: unknown;
|
|
5162
5556
|
};
|
|
5163
5557
|
} | undefined;
|
|
5164
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
5165
5558
|
}, {
|
|
5166
5559
|
readonly type: Keys;
|
|
5167
5560
|
}>;
|
|
@@ -5350,6 +5743,15 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
5350
5743
|
} | undefined;
|
|
5351
5744
|
readonly namespace?: string | undefined;
|
|
5352
5745
|
};
|
|
5746
|
+
media: (u: unknown) => u is {
|
|
5747
|
+
readonly type: "media";
|
|
5748
|
+
readonly media: Media.Asset;
|
|
5749
|
+
readonly providerMetadata?: {
|
|
5750
|
+
readonly [x: string]: {
|
|
5751
|
+
readonly [x: string]: unknown;
|
|
5752
|
+
};
|
|
5753
|
+
} | undefined;
|
|
5754
|
+
};
|
|
5353
5755
|
"step-finish": (u: unknown) => u is {
|
|
5354
5756
|
readonly type: "step-finish";
|
|
5355
5757
|
readonly reason: {
|
|
@@ -5380,12 +5782,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
5380
5782
|
"provider-error": (u: unknown) => u is {
|
|
5381
5783
|
readonly type: "provider-error";
|
|
5382
5784
|
readonly message: string;
|
|
5785
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
5383
5786
|
readonly providerMetadata?: {
|
|
5384
5787
|
readonly [x: string]: {
|
|
5385
5788
|
readonly [x: string]: unknown;
|
|
5386
5789
|
};
|
|
5387
5790
|
} | undefined;
|
|
5388
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
5389
5791
|
};
|
|
5390
5792
|
};
|
|
5391
5793
|
readonly match: {
|
|
@@ -5574,6 +5976,15 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
5574
5976
|
} | undefined;
|
|
5575
5977
|
readonly namespace?: string | undefined;
|
|
5576
5978
|
}) => any;
|
|
5979
|
+
media: (value: {
|
|
5980
|
+
readonly type: "media";
|
|
5981
|
+
readonly media: Media.Asset;
|
|
5982
|
+
readonly providerMetadata?: {
|
|
5983
|
+
readonly [x: string]: {
|
|
5984
|
+
readonly [x: string]: unknown;
|
|
5985
|
+
};
|
|
5986
|
+
} | undefined;
|
|
5987
|
+
}) => any;
|
|
5577
5988
|
"step-finish": (value: {
|
|
5578
5989
|
readonly type: "step-finish";
|
|
5579
5990
|
readonly reason: {
|
|
@@ -5604,12 +6015,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
5604
6015
|
"provider-error": (value: {
|
|
5605
6016
|
readonly type: "provider-error";
|
|
5606
6017
|
readonly message: string;
|
|
6018
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
5607
6019
|
readonly providerMetadata?: {
|
|
5608
6020
|
readonly [x: string]: {
|
|
5609
6021
|
readonly [x: string]: unknown;
|
|
5610
6022
|
};
|
|
5611
6023
|
} | undefined;
|
|
5612
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
5613
6024
|
}) => any;
|
|
5614
6025
|
}>(value: ({
|
|
5615
6026
|
readonly type: "compaction";
|
|
@@ -5780,6 +6191,14 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
5780
6191
|
};
|
|
5781
6192
|
} | undefined;
|
|
5782
6193
|
readonly namespace?: string | undefined;
|
|
6194
|
+
} | {
|
|
6195
|
+
readonly type: "media";
|
|
6196
|
+
readonly media: Media.Asset;
|
|
6197
|
+
readonly providerMetadata?: {
|
|
6198
|
+
readonly [x: string]: {
|
|
6199
|
+
readonly [x: string]: unknown;
|
|
6200
|
+
};
|
|
6201
|
+
} | undefined;
|
|
5783
6202
|
} | {
|
|
5784
6203
|
readonly type: "step-finish";
|
|
5785
6204
|
readonly reason: {
|
|
@@ -5808,12 +6227,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
5808
6227
|
} | {
|
|
5809
6228
|
readonly type: "provider-error";
|
|
5810
6229
|
readonly message: string;
|
|
6230
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
5811
6231
|
readonly providerMetadata?: {
|
|
5812
6232
|
readonly [x: string]: {
|
|
5813
6233
|
readonly [x: string]: unknown;
|
|
5814
6234
|
};
|
|
5815
6235
|
} | undefined;
|
|
5816
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
5817
6236
|
}, cases: Cases): Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never;
|
|
5818
6237
|
<Cases extends {
|
|
5819
6238
|
compaction: (value: {
|
|
@@ -6000,6 +6419,15 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6000
6419
|
} | undefined;
|
|
6001
6420
|
readonly namespace?: string | undefined;
|
|
6002
6421
|
}) => any;
|
|
6422
|
+
media: (value: {
|
|
6423
|
+
readonly type: "media";
|
|
6424
|
+
readonly media: Media.Asset;
|
|
6425
|
+
readonly providerMetadata?: {
|
|
6426
|
+
readonly [x: string]: {
|
|
6427
|
+
readonly [x: string]: unknown;
|
|
6428
|
+
};
|
|
6429
|
+
} | undefined;
|
|
6430
|
+
}) => any;
|
|
6003
6431
|
"step-finish": (value: {
|
|
6004
6432
|
readonly type: "step-finish";
|
|
6005
6433
|
readonly reason: {
|
|
@@ -6030,12 +6458,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6030
6458
|
"provider-error": (value: {
|
|
6031
6459
|
readonly type: "provider-error";
|
|
6032
6460
|
readonly message: string;
|
|
6461
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6033
6462
|
readonly providerMetadata?: {
|
|
6034
6463
|
readonly [x: string]: {
|
|
6035
6464
|
readonly [x: string]: unknown;
|
|
6036
6465
|
};
|
|
6037
6466
|
} | undefined;
|
|
6038
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6039
6467
|
}) => any;
|
|
6040
6468
|
}>(cases: Cases): (value: ({
|
|
6041
6469
|
readonly type: "compaction";
|
|
@@ -6206,6 +6634,14 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6206
6634
|
};
|
|
6207
6635
|
} | undefined;
|
|
6208
6636
|
readonly namespace?: string | undefined;
|
|
6637
|
+
} | {
|
|
6638
|
+
readonly type: "media";
|
|
6639
|
+
readonly media: Media.Asset;
|
|
6640
|
+
readonly providerMetadata?: {
|
|
6641
|
+
readonly [x: string]: {
|
|
6642
|
+
readonly [x: string]: unknown;
|
|
6643
|
+
};
|
|
6644
|
+
} | undefined;
|
|
6209
6645
|
} | {
|
|
6210
6646
|
readonly type: "step-finish";
|
|
6211
6647
|
readonly reason: {
|
|
@@ -6234,12 +6670,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6234
6670
|
} | {
|
|
6235
6671
|
readonly type: "provider-error";
|
|
6236
6672
|
readonly message: string;
|
|
6673
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6237
6674
|
readonly providerMetadata?: {
|
|
6238
6675
|
readonly [x: string]: {
|
|
6239
6676
|
readonly [x: string]: unknown;
|
|
6240
6677
|
};
|
|
6241
6678
|
} | undefined;
|
|
6242
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6243
6679
|
}) => Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never;
|
|
6244
6680
|
};
|
|
6245
6681
|
readonly matchOrElse: {
|
|
@@ -6428,6 +6864,15 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6428
6864
|
} | undefined;
|
|
6429
6865
|
readonly namespace?: string | undefined;
|
|
6430
6866
|
}) => any) | undefined;
|
|
6867
|
+
media?: ((value: {
|
|
6868
|
+
readonly type: "media";
|
|
6869
|
+
readonly media: Media.Asset;
|
|
6870
|
+
readonly providerMetadata?: {
|
|
6871
|
+
readonly [x: string]: {
|
|
6872
|
+
readonly [x: string]: unknown;
|
|
6873
|
+
};
|
|
6874
|
+
} | undefined;
|
|
6875
|
+
}) => any) | undefined;
|
|
6431
6876
|
"step-finish"?: ((value: {
|
|
6432
6877
|
readonly type: "step-finish";
|
|
6433
6878
|
readonly reason: {
|
|
@@ -6458,14 +6903,14 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6458
6903
|
"provider-error"?: ((value: {
|
|
6459
6904
|
readonly type: "provider-error";
|
|
6460
6905
|
readonly message: string;
|
|
6906
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6461
6907
|
readonly providerMetadata?: {
|
|
6462
6908
|
readonly [x: string]: {
|
|
6463
6909
|
readonly [x: string]: unknown;
|
|
6464
6910
|
};
|
|
6465
6911
|
} | undefined;
|
|
6466
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6467
6912
|
}) => any) | undefined;
|
|
6468
|
-
} & { [K in Exclude<keyof Cases, "compaction" | "finish" | "tool-call" | "tool-result" | "step-start" | "text-start" | "text-delta" | "text-end" | "reasoning-start" | "reasoning-delta" | "reasoning-end" | "tool-input-start" | "tool-input-delta" | "tool-input-end" | "tool-input-error" | "tool-error" | "step-finish" | "provider-error">]: never; }, OrElse extends (value: Exclude<{
|
|
6913
|
+
} & { [K in Exclude<keyof Cases, "compaction" | "finish" | "media" | "tool-call" | "tool-result" | "step-start" | "text-start" | "text-delta" | "text-end" | "reasoning-start" | "reasoning-delta" | "reasoning-end" | "tool-input-start" | "tool-input-delta" | "tool-input-end" | "tool-input-error" | "tool-error" | "step-finish" | "provider-error">]: never; }, OrElse extends (value: Exclude<{
|
|
6469
6914
|
readonly type: "compaction";
|
|
6470
6915
|
readonly provider: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
6471
6916
|
readonly id?: string | undefined;
|
|
@@ -6672,6 +7117,16 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6672
7117
|
readonly namespace?: string | undefined;
|
|
6673
7118
|
}, {
|
|
6674
7119
|
readonly type: keyof Cases;
|
|
7120
|
+
}> | Exclude<{
|
|
7121
|
+
readonly type: "media";
|
|
7122
|
+
readonly media: Media.Asset;
|
|
7123
|
+
readonly providerMetadata?: {
|
|
7124
|
+
readonly [x: string]: {
|
|
7125
|
+
readonly [x: string]: unknown;
|
|
7126
|
+
};
|
|
7127
|
+
} | undefined;
|
|
7128
|
+
}, {
|
|
7129
|
+
readonly type: keyof Cases;
|
|
6675
7130
|
}> | Exclude<{
|
|
6676
7131
|
readonly type: "step-finish";
|
|
6677
7132
|
readonly reason: {
|
|
@@ -6704,12 +7159,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6704
7159
|
}> | Exclude<{
|
|
6705
7160
|
readonly type: "provider-error";
|
|
6706
7161
|
readonly message: string;
|
|
7162
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6707
7163
|
readonly providerMetadata?: {
|
|
6708
7164
|
readonly [x: string]: {
|
|
6709
7165
|
readonly [x: string]: unknown;
|
|
6710
7166
|
};
|
|
6711
7167
|
} | undefined;
|
|
6712
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6713
7168
|
}, {
|
|
6714
7169
|
readonly type: keyof Cases;
|
|
6715
7170
|
}>) => any>(value: ({
|
|
@@ -6881,6 +7336,14 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6881
7336
|
};
|
|
6882
7337
|
} | undefined;
|
|
6883
7338
|
readonly namespace?: string | undefined;
|
|
7339
|
+
} | {
|
|
7340
|
+
readonly type: "media";
|
|
7341
|
+
readonly media: Media.Asset;
|
|
7342
|
+
readonly providerMetadata?: {
|
|
7343
|
+
readonly [x: string]: {
|
|
7344
|
+
readonly [x: string]: unknown;
|
|
7345
|
+
};
|
|
7346
|
+
} | undefined;
|
|
6884
7347
|
} | {
|
|
6885
7348
|
readonly type: "step-finish";
|
|
6886
7349
|
readonly reason: {
|
|
@@ -6909,12 +7372,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
6909
7372
|
} | {
|
|
6910
7373
|
readonly type: "provider-error";
|
|
6911
7374
|
readonly message: string;
|
|
7375
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6912
7376
|
readonly providerMetadata?: {
|
|
6913
7377
|
readonly [x: string]: {
|
|
6914
7378
|
readonly [x: string]: unknown;
|
|
6915
7379
|
};
|
|
6916
7380
|
} | undefined;
|
|
6917
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
6918
7381
|
}, cases: Cases, orElse: OrElse): import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
|
|
6919
7382
|
<Cases extends {
|
|
6920
7383
|
compaction?: ((value: {
|
|
@@ -7101,6 +7564,15 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
7101
7564
|
} | undefined;
|
|
7102
7565
|
readonly namespace?: string | undefined;
|
|
7103
7566
|
}) => any) | undefined;
|
|
7567
|
+
media?: ((value: {
|
|
7568
|
+
readonly type: "media";
|
|
7569
|
+
readonly media: Media.Asset;
|
|
7570
|
+
readonly providerMetadata?: {
|
|
7571
|
+
readonly [x: string]: {
|
|
7572
|
+
readonly [x: string]: unknown;
|
|
7573
|
+
};
|
|
7574
|
+
} | undefined;
|
|
7575
|
+
}) => any) | undefined;
|
|
7104
7576
|
"step-finish"?: ((value: {
|
|
7105
7577
|
readonly type: "step-finish";
|
|
7106
7578
|
readonly reason: {
|
|
@@ -7131,14 +7603,14 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
7131
7603
|
"provider-error"?: ((value: {
|
|
7132
7604
|
readonly type: "provider-error";
|
|
7133
7605
|
readonly message: string;
|
|
7606
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7134
7607
|
readonly providerMetadata?: {
|
|
7135
7608
|
readonly [x: string]: {
|
|
7136
7609
|
readonly [x: string]: unknown;
|
|
7137
7610
|
};
|
|
7138
7611
|
} | undefined;
|
|
7139
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7140
7612
|
}) => any) | undefined;
|
|
7141
|
-
} & { [K in Exclude<keyof Cases, "compaction" | "finish" | "tool-call" | "tool-result" | "step-start" | "text-start" | "text-delta" | "text-end" | "reasoning-start" | "reasoning-delta" | "reasoning-end" | "tool-input-start" | "tool-input-delta" | "tool-input-end" | "tool-input-error" | "tool-error" | "step-finish" | "provider-error">]: never; }, OrElse extends (value: Exclude<{
|
|
7613
|
+
} & { [K in Exclude<keyof Cases, "compaction" | "finish" | "media" | "tool-call" | "tool-result" | "step-start" | "text-start" | "text-delta" | "text-end" | "reasoning-start" | "reasoning-delta" | "reasoning-end" | "tool-input-start" | "tool-input-delta" | "tool-input-end" | "tool-input-error" | "tool-error" | "step-finish" | "provider-error">]: never; }, OrElse extends (value: Exclude<{
|
|
7142
7614
|
readonly type: "compaction";
|
|
7143
7615
|
readonly provider: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
7144
7616
|
readonly id?: string | undefined;
|
|
@@ -7345,6 +7817,16 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
7345
7817
|
readonly namespace?: string | undefined;
|
|
7346
7818
|
}, {
|
|
7347
7819
|
readonly type: keyof Cases;
|
|
7820
|
+
}> | Exclude<{
|
|
7821
|
+
readonly type: "media";
|
|
7822
|
+
readonly media: Media.Asset;
|
|
7823
|
+
readonly providerMetadata?: {
|
|
7824
|
+
readonly [x: string]: {
|
|
7825
|
+
readonly [x: string]: unknown;
|
|
7826
|
+
};
|
|
7827
|
+
} | undefined;
|
|
7828
|
+
}, {
|
|
7829
|
+
readonly type: keyof Cases;
|
|
7348
7830
|
}> | Exclude<{
|
|
7349
7831
|
readonly type: "step-finish";
|
|
7350
7832
|
readonly reason: {
|
|
@@ -7377,12 +7859,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
7377
7859
|
}> | Exclude<{
|
|
7378
7860
|
readonly type: "provider-error";
|
|
7379
7861
|
readonly message: string;
|
|
7862
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7380
7863
|
readonly providerMetadata?: {
|
|
7381
7864
|
readonly [x: string]: {
|
|
7382
7865
|
readonly [x: string]: unknown;
|
|
7383
7866
|
};
|
|
7384
7867
|
} | undefined;
|
|
7385
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7386
7868
|
}, {
|
|
7387
7869
|
readonly type: keyof Cases;
|
|
7388
7870
|
}>) => any>(cases: Cases, orElse: OrElse): (value: ({
|
|
@@ -7554,6 +8036,14 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
7554
8036
|
};
|
|
7555
8037
|
} | undefined;
|
|
7556
8038
|
readonly namespace?: string | undefined;
|
|
8039
|
+
} | {
|
|
8040
|
+
readonly type: "media";
|
|
8041
|
+
readonly media: Media.Asset;
|
|
8042
|
+
readonly providerMetadata?: {
|
|
8043
|
+
readonly [x: string]: {
|
|
8044
|
+
readonly [x: string]: unknown;
|
|
8045
|
+
};
|
|
8046
|
+
} | undefined;
|
|
7557
8047
|
} | {
|
|
7558
8048
|
readonly type: "step-finish";
|
|
7559
8049
|
readonly reason: {
|
|
@@ -7582,12 +8072,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
7582
8072
|
} | {
|
|
7583
8073
|
readonly type: "provider-error";
|
|
7584
8074
|
readonly message: string;
|
|
8075
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7585
8076
|
readonly providerMetadata?: {
|
|
7586
8077
|
readonly [x: string]: {
|
|
7587
8078
|
readonly [x: string]: unknown;
|
|
7588
8079
|
};
|
|
7589
8080
|
} | undefined;
|
|
7590
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7591
8081
|
}) => import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
|
|
7592
8082
|
};
|
|
7593
8083
|
} & {
|
|
@@ -7790,6 +8280,23 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
7790
8280
|
} | undefined;
|
|
7791
8281
|
readonly namespace?: string | undefined;
|
|
7792
8282
|
};
|
|
8283
|
+
media: (input: {
|
|
8284
|
+
readonly media: Media.Asset;
|
|
8285
|
+
readonly type?: "media" | undefined;
|
|
8286
|
+
readonly providerMetadata?: {
|
|
8287
|
+
readonly [x: string]: {
|
|
8288
|
+
readonly [x: string]: unknown;
|
|
8289
|
+
};
|
|
8290
|
+
} | undefined;
|
|
8291
|
+
}, options?: Schema.MakeOptions) => {
|
|
8292
|
+
readonly type: "media";
|
|
8293
|
+
readonly media: Media.Asset;
|
|
8294
|
+
readonly providerMetadata?: {
|
|
8295
|
+
readonly [x: string]: {
|
|
8296
|
+
readonly [x: string]: unknown;
|
|
8297
|
+
};
|
|
8298
|
+
} | undefined;
|
|
8299
|
+
};
|
|
7793
8300
|
stepFinish: (input: WithUsage<StepFinish>) => {
|
|
7794
8301
|
readonly type: "step-finish";
|
|
7795
8302
|
readonly reason: {
|
|
@@ -7820,21 +8327,21 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
7820
8327
|
providerError: (input: {
|
|
7821
8328
|
readonly message: string;
|
|
7822
8329
|
readonly type?: "provider-error" | undefined;
|
|
8330
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7823
8331
|
readonly providerMetadata?: {
|
|
7824
8332
|
readonly [x: string]: {
|
|
7825
8333
|
readonly [x: string]: unknown;
|
|
7826
8334
|
};
|
|
7827
8335
|
} | undefined;
|
|
7828
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7829
8336
|
}, options?: Schema.MakeOptions) => {
|
|
7830
8337
|
readonly type: "provider-error";
|
|
7831
8338
|
readonly message: string;
|
|
8339
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7832
8340
|
readonly providerMetadata?: {
|
|
7833
8341
|
readonly [x: string]: {
|
|
7834
8342
|
readonly [x: string]: unknown;
|
|
7835
8343
|
};
|
|
7836
8344
|
} | undefined;
|
|
7837
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
7838
8345
|
};
|
|
7839
8346
|
is: {
|
|
7840
8347
|
compaction: (u: unknown) => u is {
|
|
@@ -8021,6 +8528,15 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
8021
8528
|
} | undefined;
|
|
8022
8529
|
readonly namespace?: string | undefined;
|
|
8023
8530
|
};
|
|
8531
|
+
media: (u: unknown) => u is {
|
|
8532
|
+
readonly type: "media";
|
|
8533
|
+
readonly media: Media.Asset;
|
|
8534
|
+
readonly providerMetadata?: {
|
|
8535
|
+
readonly [x: string]: {
|
|
8536
|
+
readonly [x: string]: unknown;
|
|
8537
|
+
};
|
|
8538
|
+
} | undefined;
|
|
8539
|
+
};
|
|
8024
8540
|
stepFinish: (u: unknown) => u is {
|
|
8025
8541
|
readonly type: "step-finish";
|
|
8026
8542
|
readonly reason: {
|
|
@@ -8051,12 +8567,12 @@ declare const LLMResponse_base: Schema.Class<LLMResponse, Schema.Struct<{
|
|
|
8051
8567
|
providerError: (u: unknown) => u is {
|
|
8052
8568
|
readonly type: "provider-error";
|
|
8053
8569
|
readonly message: string;
|
|
8570
|
+
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
8054
8571
|
readonly providerMetadata?: {
|
|
8055
8572
|
readonly [x: string]: {
|
|
8056
8573
|
readonly [x: string]: unknown;
|
|
8057
8574
|
};
|
|
8058
8575
|
} | undefined;
|
|
8059
|
-
readonly classification?: "context-overflow" | "payload-too-large" | undefined;
|
|
8060
8576
|
};
|
|
8061
8577
|
};
|
|
8062
8578
|
}>;
|
|
@@ -8121,3 +8637,4 @@ export declare namespace LLMResponse {
|
|
|
8121
8637
|
/** Concatenate reasoning text from a response or collected event list. */
|
|
8122
8638
|
const reasoning: (response: Output) => string;
|
|
8123
8639
|
}
|
|
8640
|
+
export {};
|