@effect-uai/core 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Audio-60lKKHxS.d.mts → Audio-_nGR4V0X.d.mts} +2 -2
- package/dist/{Audio-60lKKHxS.d.mts.map → Audio-_nGR4V0X.d.mts.map} +1 -1
- package/dist/Image-Cv6iBLTy.d.mts +99 -0
- package/dist/Image-Cv6iBLTy.d.mts.map +1 -0
- package/dist/{Items-SfUabNuB.d.mts → Items-C7MyrYPX.d.mts} +35 -4
- package/dist/Items-C7MyrYPX.d.mts.map +1 -0
- package/dist/Media-BbX7BAaO.d.mts +60 -0
- package/dist/Media-BbX7BAaO.d.mts.map +1 -0
- package/dist/{Tool-DE-rnvkw.d.mts → Tool-BF78QWtn.d.mts} +2 -2
- package/dist/{Tool-DE-rnvkw.d.mts.map → Tool-BF78QWtn.d.mts.map} +1 -1
- package/dist/{ToolEvent-D99MGQYH.d.mts → ToolEvent-Di4a723B.d.mts} +2 -2
- package/dist/{ToolEvent-D99MGQYH.d.mts.map → ToolEvent-Di4a723B.d.mts.map} +1 -1
- package/dist/{ToolResult-Cj8ChodL.d.mts → ToolResult-BsYQRjmW.d.mts} +2 -2
- package/dist/{ToolResult-Cj8ChodL.d.mts.map → ToolResult-BsYQRjmW.d.mts.map} +1 -1
- package/dist/{Toolkit-BEZrNPTI.d.mts → Toolkit-DAjJ9Tvl.d.mts} +5 -5
- package/dist/{Toolkit-BEZrNPTI.d.mts.map → Toolkit-DAjJ9Tvl.d.mts.map} +1 -1
- package/dist/browser/BrowserTool.d.mts +1 -1
- package/dist/capabilities/Capabilities.d.mts +26 -2
- package/dist/capabilities/Capabilities.d.mts.map +1 -1
- package/dist/capabilities/Capabilities.mjs +32 -1
- package/dist/capabilities/Capabilities.mjs.map +1 -1
- package/dist/domain/Audio.d.mts +1 -1
- package/dist/domain/Image.d.mts +3 -2
- package/dist/domain/Image.mjs +29 -3
- package/dist/domain/Image.mjs.map +1 -1
- package/dist/domain/Items.d.mts +2 -2
- package/dist/domain/Items.mjs +19 -1
- package/dist/domain/Items.mjs.map +1 -1
- package/dist/domain/Media.d.mts +2 -2
- package/dist/domain/Media.mjs +51 -2
- package/dist/domain/Media.mjs.map +1 -1
- package/dist/domain/Music.d.mts +3 -8
- package/dist/domain/Music.d.mts.map +1 -1
- package/dist/domain/Music.mjs.map +1 -1
- package/dist/domain/Research.d.mts +1 -1
- package/dist/domain/Turn.d.mts +73 -9
- package/dist/domain/Turn.d.mts.map +1 -1
- package/dist/domain/Turn.mjs +38 -2
- package/dist/domain/Turn.mjs.map +1 -1
- package/dist/embedding-model/Embedding.d.mts +1 -1
- package/dist/image-generator/ImageGenerator.d.mts +188 -0
- package/dist/image-generator/ImageGenerator.d.mts.map +1 -0
- package/dist/image-generator/ImageGenerator.mjs +50 -0
- package/dist/image-generator/ImageGenerator.mjs.map +1 -0
- package/dist/index.d.mts +11 -9
- package/dist/index.mjs +4 -2
- package/dist/language-model/LanguageModel.d.mts +2 -2
- package/dist/music-generator/MusicGenerator.d.mts +3 -2
- package/dist/music-generator/MusicGenerator.d.mts.map +1 -1
- package/dist/observability/Metrics.d.mts +1 -1
- package/dist/speech-synthesizer/SpeechSynthesizer.d.mts +1 -1
- package/dist/streaming/Multipart.d.mts +21 -0
- package/dist/streaming/Multipart.d.mts.map +1 -0
- package/dist/streaming/Multipart.mjs +26 -0
- package/dist/streaming/Multipart.mjs.map +1 -0
- package/dist/testing/MockMusicGenerator.d.mts +1 -1
- package/dist/testing/MockProvider.d.mts +1 -1
- package/dist/testing/MockSpeechSynthesizer.d.mts +1 -1
- package/dist/tool/Approval.d.mts +3 -3
- package/dist/tool/HistoryCheck.d.mts +2 -2
- package/dist/tool/Tool.d.mts +1 -1
- package/dist/tool/ToolEvent.d.mts +1 -1
- package/dist/tool/ToolResult.d.mts +1 -1
- package/dist/tool/Toolkit.d.mts +1 -1
- package/dist/transcriber/Transcriber.d.mts +1 -1
- package/dist/web-read/WebReadTool.d.mts +1 -1
- package/dist/web-search/WebSearchTool.d.mts +1 -1
- package/package.json +9 -1
- package/src/capabilities/Capabilities.ts +38 -0
- package/src/domain/Image.ts +68 -2
- package/src/domain/Items.ts +18 -1
- package/src/domain/Media.ts +66 -0
- package/src/domain/Music.ts +4 -3
- package/src/domain/Turn.ts +56 -0
- package/src/image-generator/ImageGenerator.ts +165 -0
- package/src/index.ts +2 -0
- package/src/streaming/Multipart.ts +29 -0
- package/dist/Image-BK8-4H6s.d.mts +0 -59
- package/dist/Image-BK8-4H6s.d.mts.map +0 -1
- package/dist/Items-SfUabNuB.d.mts.map +0 -1
- package/dist/Media-DwgpifPD.d.mts +0 -57
- package/dist/Media-DwgpifPD.d.mts.map +0 -1
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
declare namespace Media_d_exports {
|
|
2
|
-
export { MediaBase64, MediaBytes, MediaSource, MediaUrl, isMediaBase64, isMediaBytes, isMediaUrl };
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* Cross-modality media reference shape.
|
|
6
|
-
*
|
|
7
|
-
* Every "media at rest" reference - image, audio, video, document - is one
|
|
8
|
-
* of three variants:
|
|
9
|
-
*
|
|
10
|
-
* - `url` : a remote address (HTTP, GCS, etc.). The model fetches it.
|
|
11
|
-
* `mimeType` is optional - servers usually set Content-Type.
|
|
12
|
-
* Some providers (Gemini `fileData`) want it explicit.
|
|
13
|
-
*
|
|
14
|
-
* - `base64` : an inline base64-encoded payload. Always carries a
|
|
15
|
-
* `mimeType` so the consumer knows how to decode.
|
|
16
|
-
*
|
|
17
|
-
* - `bytes` : raw `Uint8Array`. Provider layers normalize to base64 or
|
|
18
|
-
* multipart upload at the wire boundary - users don't need
|
|
19
|
-
* to encode themselves.
|
|
20
|
-
*
|
|
21
|
-
* Per-modality files (`Image.ts`, future `Audio.ts` / `Video.ts` /
|
|
22
|
-
* `Document.ts`) instantiate this shape with their typed MIME union to
|
|
23
|
-
* get autocomplete on common formats while keeping the structural type
|
|
24
|
-
* uniform across modalities.
|
|
25
|
-
*
|
|
26
|
-
* Streaming media (live mic feed, streaming TTS playback) is *not*
|
|
27
|
-
* modeled here. Streams carry effect parameters (`Stream<A, E, R>`) and
|
|
28
|
-
* lifecycle (Scope, cancellation) that don't apply to media at rest. The
|
|
29
|
-
* complementary type lives alongside this one as `*Stream` in each
|
|
30
|
-
* per-modality file when those modalities land.
|
|
31
|
-
*
|
|
32
|
-
* Provider-uploaded asset references (OpenAI Files `file_id`, Gemini
|
|
33
|
-
* Files API URIs, Anthropic file IDs) are also out of scope here -
|
|
34
|
-
* they're a separate union (`FileRef`) added when needed.
|
|
35
|
-
*/
|
|
36
|
-
type MediaUrl<M extends string = string> = {
|
|
37
|
-
readonly _tag: "url";
|
|
38
|
-
readonly url: string;
|
|
39
|
-
readonly mimeType?: M;
|
|
40
|
-
};
|
|
41
|
-
type MediaBase64<M extends string = string> = {
|
|
42
|
-
readonly _tag: "base64";
|
|
43
|
-
readonly base64: string;
|
|
44
|
-
readonly mimeType: M;
|
|
45
|
-
};
|
|
46
|
-
type MediaBytes<M extends string = string> = {
|
|
47
|
-
readonly _tag: "bytes";
|
|
48
|
-
readonly bytes: Uint8Array;
|
|
49
|
-
readonly mimeType: M;
|
|
50
|
-
};
|
|
51
|
-
type MediaSource<M extends string = string> = MediaUrl<M> | MediaBase64<M> | MediaBytes<M>;
|
|
52
|
-
declare const isMediaUrl: <M extends string>(s: MediaSource<M>) => s is MediaUrl<M>;
|
|
53
|
-
declare const isMediaBase64: <M extends string>(s: MediaSource<M>) => s is MediaBase64<M>;
|
|
54
|
-
declare const isMediaBytes: <M extends string>(s: MediaSource<M>) => s is MediaBytes<M>;
|
|
55
|
-
//#endregion
|
|
56
|
-
export { Media_d_exports as a, isMediaUrl as c, MediaUrl as i, MediaBytes as n, isMediaBase64 as o, MediaSource as r, isMediaBytes as s, MediaBase64 as t };
|
|
57
|
-
//# sourceMappingURL=Media-DwgpifPD.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Media-DwgpifPD.d.mts","names":[],"sources":["../src/domain/Media.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCY,SAAS;WACV;WACA;WACA,WAAW;;KAGV,YAAY;WACb;WACA;WACA,UAAU;;KAGT,WAAW;WACZ;WACA,OAAO;WACP,UAAU;;KAGT,YAAY,6BAA6B,SAAS,KAAK,YAAY,KAAK,WAAW;cAElF,aAAc,kBAAgB,GAAK,YAAY,OAAK,KAAK,SAAS;cAGlE,gBAAiB,kBAAgB,GAAK,YAAY,OAAK,KAAK,YAAY;cAGxE,eAAgB,kBAAgB,GAAK,YAAY,OAAK,KAAK,WAAW"}
|