@effect-uai/core 0.5.0 → 0.5.1
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/{Items-DqbaJoz7.d.mts → Items-BH8xUkoR.d.mts} +6 -6
- package/dist/{Items-DqbaJoz7.d.mts.map → Items-BH8xUkoR.d.mts.map} +1 -1
- package/dist/{Tool-Y0__Py1H.d.mts → Tool-87ViKCCO.d.mts} +2 -2
- package/dist/{Tool-Y0__Py1H.d.mts.map → Tool-87ViKCCO.d.mts.map} +1 -1
- package/dist/{Turn-ChbL2foc.d.mts → Turn-0CwCAyVe.d.mts} +2 -2
- package/dist/{Turn-ChbL2foc.d.mts.map → Turn-0CwCAyVe.d.mts.map} +1 -1
- package/dist/domain/Items.d.mts +1 -1
- package/dist/domain/Turn.d.mts +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/language-model/LanguageModel.d.mts +3 -3
- package/dist/loop/Loop.d.mts +1 -1
- package/dist/testing/MockProvider.d.mts +2 -2
- package/dist/tool/HistoryCheck.d.mts +1 -1
- package/dist/tool/Outcome.d.mts +1 -1
- package/dist/tool/Resolvers.d.mts +1 -1
- package/dist/tool/Tool.d.mts +1 -1
- package/dist/tool/Toolkit.d.mts +2 -2
- package/package.json +1 -1
|
@@ -74,8 +74,8 @@ declare const Annotation: Schema.Union<readonly [Schema.Struct<{
|
|
|
74
74
|
}>]>;
|
|
75
75
|
type Annotation = typeof Annotation.Type;
|
|
76
76
|
declare const isUrlCitation: <I>(input: I) => input is I & {
|
|
77
|
-
readonly type: "url_citation";
|
|
78
77
|
readonly url: string;
|
|
78
|
+
readonly type: "url_citation";
|
|
79
79
|
readonly start_index: number;
|
|
80
80
|
readonly end_index: number;
|
|
81
81
|
readonly title: string;
|
|
@@ -309,8 +309,8 @@ declare const isOutputText: <I>(input: I) => input is I & {
|
|
|
309
309
|
readonly type: "output_text";
|
|
310
310
|
readonly text: string;
|
|
311
311
|
readonly annotations?: readonly ({
|
|
312
|
-
readonly type: "url_citation";
|
|
313
312
|
readonly url: string;
|
|
313
|
+
readonly type: "url_citation";
|
|
314
314
|
readonly start_index: number;
|
|
315
315
|
readonly end_index: number;
|
|
316
316
|
readonly title: string;
|
|
@@ -346,8 +346,8 @@ declare const isMessage: <I>(input: I) => input is I & {
|
|
|
346
346
|
readonly type: "output_text";
|
|
347
347
|
readonly text: string;
|
|
348
348
|
readonly annotations?: readonly ({
|
|
349
|
-
readonly type: "url_citation";
|
|
350
349
|
readonly url: string;
|
|
350
|
+
readonly type: "url_citation";
|
|
351
351
|
readonly start_index: number;
|
|
352
352
|
readonly end_index: number;
|
|
353
353
|
readonly title: string;
|
|
@@ -374,15 +374,15 @@ declare const isMessage: <I>(input: I) => input is I & {
|
|
|
374
374
|
readonly providerData?: unknown;
|
|
375
375
|
};
|
|
376
376
|
declare const isFunctionCall: <I>(input: I) => input is I & {
|
|
377
|
-
readonly call_id: string;
|
|
378
377
|
readonly type: "function_call";
|
|
378
|
+
readonly call_id: string;
|
|
379
379
|
readonly name: string;
|
|
380
380
|
readonly arguments: string;
|
|
381
381
|
readonly providerData?: unknown;
|
|
382
382
|
};
|
|
383
383
|
declare const isFunctionCallOutput: <I>(input: I) => input is I & {
|
|
384
|
-
readonly call_id: string;
|
|
385
384
|
readonly type: "function_call_output";
|
|
385
|
+
readonly call_id: string;
|
|
386
386
|
readonly output: string;
|
|
387
387
|
readonly providerData?: unknown;
|
|
388
388
|
};
|
|
@@ -421,4 +421,4 @@ declare const assistantText: (text: string) => Message;
|
|
|
421
421
|
declare const functionCallOutput: (call_id: string, output: string) => FunctionCallOutput;
|
|
422
422
|
//#endregion
|
|
423
423
|
export { isInputText as A, functionCallOutput as C, isFunctionCall as D, isFilePath as E, isUrlCitation as F, systemText as I, userText as L, isOutputText as M, isReasoning as N, isFunctionCallOutput as O, isRefusal as P, assistantText as S, isFileCitation as T, Refusal as _, FilePath as a, UrlCitation as b, InputImage as c, Item as d, Items_d_exports as f, Reasoning as g, OutputTokensDetails as h, FileCitation as i, isMessage as j, isInputImage as k, InputText as l, OutputText as m, ContainerFileCitation as n, FunctionCall as o, Message as p, ContentBlock as r, FunctionCallOutput as s, Annotation as t, InputTokensDetails as u, Role as v, isContainerFileCitation as w, Usage as x, StopReason as y };
|
|
424
|
-
//# sourceMappingURL=Items-
|
|
424
|
+
//# sourceMappingURL=Items-BH8xUkoR.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Items-
|
|
1
|
+
{"version":3,"file":"Items-BH8xUkoR.d.mts","names":[],"sources":["../src/domain/Items.ts"],"mappings":";;;;;;;cAOa,SAAA,EAAS,MAAA,CAAA,MAAA;EAAA;;;KAIV,SAAA,UAAmB,SAAA,CAAU,IAAA;;;;;;;;;cAU5B,UAAA,EAAU,MAAA,CAAA,MAAA;EAAA;;;KAIX,UAAA,UAAoB,UAAA,CAAW,IAAA;AAAA,cAQ9B,WAAA,EAAW,MAAA,CAAA,MAAA;EAAA;;;;;;KAOZ,WAAA,UAAqB,WAAA,CAAY,IAAA;AAAA,cAEhC,YAAA,EAAY,MAAA,CAAA,MAAA;EAAA;;;;KAKb,YAAA,UAAsB,YAAA,CAAa,IAAA;AAAA,cAElC,qBAAA,EAAqB,MAAA,CAAA,MAAA;EAAA;;;;;;KAOtB,qBAAA,UAA+B,qBAAA,CAAsB,IAAA;AAAA,cAEpD,QAAA,EAAQ,MAAA,CAAA,MAAA;EAAA;;;;KAKT,QAAA,UAAkB,QAAA,CAAS,IAAA;AAAA,cAE1B,UAAA,EAAU,MAAA,CAAA,KAAA,WAAA,MAAA,CAAA,MAAA;EAAA;;;;;;;;;;;;;;;;;;;;KACX,UAAA,UAAoB,UAAA,CAAW,IAAA;AAAA,cAE9B,aAAA,MAAa,KAAA,EAAA,CAAA,KAAA,KAAA,IAAA,CAAA;EAAA;;;;;;cACb,cAAA,MAAc,KAAA,EAAA,CAAA,KAAA,KAAA,IAAA,CAAA;EAAA;;;;cACd,uBAAA,M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items-BH8xUkoR.mjs";
|
|
2
2
|
import { Effect, Schema, Stream } from "effect";
|
|
3
3
|
import * as _$effect_Cause0 from "effect/Cause";
|
|
4
4
|
import { StandardJSONSchemaV1, StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -99,4 +99,4 @@ declare const toDescriptors: <R>(tools: ReadonlyArray<AnyKindTool<R>>) => Readon
|
|
|
99
99
|
declare const execute: <Name extends string, Input, Output, R>(tool: Tool<Name, Input, Output, R>, call: FunctionCall) => Effect.Effect<FunctionCallOutput, ToolError, R>;
|
|
100
100
|
//#endregion
|
|
101
101
|
export { Tool as a, ToolInputSchema as c, fromEffectSchema as d, fromStandardSchema as f, toDescriptors as g, streaming as h, StreamingTool as i, Tool_d_exports as l, make as m, AnyPlainTool as n, ToolDescriptor as o, isStreamingTool as p, AnyStreamingTool as r, ToolError as s, AnyKindTool as t, execute as u };
|
|
102
|
-
//# sourceMappingURL=Tool-
|
|
102
|
+
//# sourceMappingURL=Tool-87ViKCCO.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tool-
|
|
1
|
+
{"version":3,"file":"Tool-87ViKCCO.d.mts","names":[],"sources":["../src/tool/Tool.ts"],"mappings":";;;;;;;;;cAE0E,cAAA;;;;;;cAG7D,SAAA,SAAkB,cAAA;;;;;;;;;;KAmBnB,eAAA,oBAAmC,gBAAA,UAA0B,KAAA,IACvE,oBAAA,UAA8B,KAAA;;;;AAvB0C;;cA8B7D,gBAAA,aAA8B,MAAA,CAAO,KAAA,wBAChD,MAAA,EAAQ,CAAA,KACP,CAAA,GAAI,eAAA,CAAgB,CAAA;;;;;;;;;;;;;;;;cAmBV,kBAAA,aAAgC,gBAAA,GAAmB,oBAAA,EAC9D,MAAA,EAAQ,CAAA,KACP,CAAA,GAAI,eAAA,CAAgB,gBAAA,CAAiB,WAAA,CAAY,CAAA;AAAA,KAGxC,IAAA;EAAA,SACD,IAAA,EAAM,IAAA;EAAA,SACN,WAAA;EAAA,S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CAAY,CAAA,OAChC,aAAA,CAAc,cAAA;;;;;;cAkBJ,OAAA,0CACX,IAAA,EAAM,IAAA,CAAK,IAAA,EAAM,KAAA,EAAO,MAAA,EAAQ,CAAA,GAChC,IAAA,EAAM,YAAA,KACL,MAAA,CAAO,MAAA,CAAO,kBAAA,EAAoB,SAAA,EAAW,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ImageSource } from "./Image-HNmMpMTh.mjs";
|
|
2
|
-
import { d as Item, g as Reasoning, o as FunctionCall, p as Message, s as FunctionCallOutput, x as Usage } from "./Items-
|
|
2
|
+
import { d as Item, g as Reasoning, o as FunctionCall, p as Message, s as FunctionCallOutput, x as Usage } from "./Items-BH8xUkoR.mjs";
|
|
3
3
|
import { i as StructuredFormat, n as JsonParseError, r as StructuredDecodeError } from "./StructuredFormat-BbN4dosH.mjs";
|
|
4
4
|
import { Data, Effect, Schema, Stream } from "effect";
|
|
5
5
|
import * as _$effect_Types0 from "effect/Types";
|
|
@@ -385,4 +385,4 @@ declare class RefusalRejected extends RefusalRejected_base<{
|
|
|
385
385
|
declare const toStructured: <A>(turn: Turn, format: StructuredFormat<A>) => Effect.Effect<A, RefusalRejected | JsonParseError | StructuredDecodeError>;
|
|
386
386
|
//#endregion
|
|
387
387
|
export { Turn_d_exports as a, assistantText as c, isTurnComplete as d, reasonings as f, TurnEvent as i, assistantTexts as l, toStructured as m, RefusalRejected as n, appendTurn as o, textDeltas as p, Turn as r, assistantMessages as s, InteractionEvent as t, functionCalls as u };
|
|
388
|
-
//# sourceMappingURL=Turn-
|
|
388
|
+
//# sourceMappingURL=Turn-0CwCAyVe.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Turn-
|
|
1
|
+
{"version":3,"file":"Turn-0CwCAyVe.d.mts","names":[],"sources":["../src/domain/Turn.ts"],"mappings":";;;;;;;;;;;;;;;;;cAmBa,IAAA,EAAI,MAAA,CAAA,MAAA;EAAA;;;;;;;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,IAAA,KAAO,aAAA,CAAc,SAAA;AAAA,cAGzC,iBAAA,GAAqB,IAAA,EAAM,IAAA,KAAO,aAAA,CAAc,OAAA;;;;;;;;cAUhD,cAAA,GAAkB,IAAA,EAAM,IAAA,KAAO,aAAA;;;;;;cAW/B,aAAA,GAAiB,IAAA,EAAM,IAAA;;;;;AAjDpC;cAwDa,UAAA;EAAA,SAAmC,OAAA,EAAS,aAAA,CAAc,IAAA;AAAA,GACrE,KAAA,EAAO,CAAA,EACP,IAAA,EAAM,IAAA,EACN,KAAA,GAAO,aAAA,CAAc,IAAA,MACpB,CAAA;;;;;;cAcU,UAAA,SACX,IAAA,EAAM,MAAA,CAAO,MAAA,CAAO,SAAA,EAAW,CAAA,EAAG,CAAA,MACjC,MAAA,CAAO,MAAA,SAAe,CAAA,EAAG,CAAA;AAAA,cAGzB,oBAAA;;;;;;;;cAWU,eAAA,SAAwB,oBAAA;EAAA,SAC1B,IAAA,EAAM,IAAA;AAAA;;;;;;;;;;AAjFjB;cA0Ga,YAAA,MACX,IAAA,EAAM,IAAA,EACN,MAAA,EAAQ,gBAAA,CAAkC,CAAA,MACzC,MAAA,CAAO,MAAA,CACR,CAAA,EACA,eAAA,GAAkB,cAAA,GAAkC,qBAAA"}
|
package/dist/domain/Items.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as isInputText, C as functionCallOutput, D as isFunctionCall, E as isFilePath, F as isUrlCitation, I as systemText, L as userText, M as isOutputText, N as isReasoning, O as isFunctionCallOutput, P as isRefusal, S as assistantText, T as isFileCitation, _ as Refusal, a as FilePath, b as UrlCitation, c as InputImage, d as Item, g as Reasoning, h as OutputTokensDetails, i as FileCitation, j as isMessage, k as isInputImage, l as InputText, m as OutputText, n as ContainerFileCitation, o as FunctionCall, p as Message, r as ContentBlock, s as FunctionCallOutput, t as Annotation, u as InputTokensDetails, v as Role, w as isContainerFileCitation, x as Usage, y as StopReason } from "../Items-
|
|
1
|
+
import { A as isInputText, C as functionCallOutput, D as isFunctionCall, E as isFilePath, F as isUrlCitation, I as systemText, L as userText, M as isOutputText, N as isReasoning, O as isFunctionCallOutput, P as isRefusal, S as assistantText, T as isFileCitation, _ as Refusal, a as FilePath, b as UrlCitation, c as InputImage, d as Item, g as Reasoning, h as OutputTokensDetails, i as FileCitation, j as isMessage, k as isInputImage, l as InputText, m as OutputText, n as ContainerFileCitation, o as FunctionCall, p as Message, r as ContentBlock, s as FunctionCallOutput, t as Annotation, u as InputTokensDetails, v as Role, w as isContainerFileCitation, x as Usage, y as StopReason } from "../Items-BH8xUkoR.mjs";
|
|
2
2
|
export { Annotation, ContainerFileCitation, ContentBlock, FileCitation, FilePath, FunctionCall, FunctionCallOutput, InputImage, InputText, InputTokensDetails, Item, Message, OutputText, OutputTokensDetails, Reasoning, Refusal, Role, StopReason, UrlCitation, Usage, assistantText, functionCallOutput, isContainerFileCitation, isFileCitation, isFilePath, isFunctionCall, isFunctionCallOutput, isInputImage, isInputText, isMessage, isOutputText, isReasoning, isRefusal, isUrlCitation, systemText, userText };
|
package/dist/domain/Turn.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as assistantText, d as isTurnComplete, f as reasonings, i as TurnEvent, l as assistantTexts, m as toStructured, n as RefusalRejected, o as appendTurn, p as textDeltas, r as Turn, s as assistantMessages, t as InteractionEvent, u as functionCalls } from "../Turn-
|
|
1
|
+
import { c as assistantText, d as isTurnComplete, f as reasonings, i as TurnEvent, l as assistantTexts, m as toStructured, n as RefusalRejected, o as appendTurn, p as textDeltas, r as Turn, s as assistantMessages, t as InteractionEvent, u as functionCalls } from "../Turn-0CwCAyVe.mjs";
|
|
2
2
|
export { InteractionEvent, RefusalRejected, Turn, TurnEvent, appendTurn, assistantMessages, assistantText, assistantTexts, functionCalls, isTurnComplete, reasonings, textDeltas, toStructured };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,14 +2,14 @@ import { n as AiError_d_exports } from "./AiError-CAX_48RU.mjs";
|
|
|
2
2
|
import { a as Media_d_exports } from "./Media-D_CpcM1Z.mjs";
|
|
3
3
|
import { o as Audio_d_exports } from "./Audio-BfCTGnH3.mjs";
|
|
4
4
|
import { o as Image_d_exports } from "./Image-HNmMpMTh.mjs";
|
|
5
|
-
import { f as Items_d_exports } from "./Items-
|
|
5
|
+
import { f as Items_d_exports } from "./Items-BH8xUkoR.mjs";
|
|
6
6
|
import { t as Music_d_exports } from "./domain/Music.mjs";
|
|
7
7
|
import { t as Transcript_d_exports } from "./domain/Transcript.mjs";
|
|
8
8
|
import { a as StructuredFormat_d_exports } from "./StructuredFormat-BbN4dosH.mjs";
|
|
9
|
-
import { a as Turn_d_exports } from "./Turn-
|
|
9
|
+
import { a as Turn_d_exports } from "./Turn-0CwCAyVe.mjs";
|
|
10
10
|
import { t as Embedding_d_exports } from "./embedding-model/Embedding.mjs";
|
|
11
11
|
import { t as EmbeddingModel_d_exports } from "./embedding-model/EmbeddingModel.mjs";
|
|
12
|
-
import { l as Tool_d_exports } from "./Tool-
|
|
12
|
+
import { l as Tool_d_exports } from "./Tool-87ViKCCO.mjs";
|
|
13
13
|
import { t as LanguageModel_d_exports } from "./language-model/LanguageModel.mjs";
|
|
14
14
|
import { t as MusicGenerator_d_exports } from "./music-generator/MusicGenerator.mjs";
|
|
15
15
|
import { t as SpeechSynthesizer_d_exports } from "./speech-synthesizer/SpeechSynthesizer.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as RateLimited, l as IncompleteTurn, m as Unavailable, p as Timeout, t as AiError } from "../AiError-CAX_48RU.mjs";
|
|
2
|
-
import { d as Item } from "../Items-
|
|
2
|
+
import { d as Item } from "../Items-BH8xUkoR.mjs";
|
|
3
3
|
import { i as StructuredFormat } from "../StructuredFormat-BbN4dosH.mjs";
|
|
4
|
-
import { i as TurnEvent, r as Turn } from "../Turn-
|
|
5
|
-
import { o as ToolDescriptor } from "../Tool-
|
|
4
|
+
import { i as TurnEvent, r as Turn } from "../Turn-0CwCAyVe.mjs";
|
|
5
|
+
import { o as ToolDescriptor } from "../Tool-87ViKCCO.mjs";
|
|
6
6
|
import { Context, Effect, Schedule, Stream } from "effect";
|
|
7
7
|
import * as _$effect_Types0 from "effect/Types";
|
|
8
8
|
import * as _$effect_Cause0 from "effect/Cause";
|
package/dist/loop/Loop.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as IncompleteTurn } from "../AiError-CAX_48RU.mjs";
|
|
2
|
-
import { i as TurnEvent, r as Turn } from "../Turn-
|
|
2
|
+
import { i as TurnEvent, r as Turn } from "../Turn-0CwCAyVe.mjs";
|
|
3
3
|
import { Data, Effect, Stream, SubscriptionRef } from "effect";
|
|
4
4
|
|
|
5
5
|
//#region src/loop/Loop.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as Item } from "../Items-
|
|
2
|
-
import { r as Turn } from "../Turn-
|
|
1
|
+
import { d as Item } from "../Items-BH8xUkoR.mjs";
|
|
2
|
+
import { r as Turn } from "../Turn-0CwCAyVe.mjs";
|
|
3
3
|
import { LanguageModel, LanguageModelService } from "../language-model/LanguageModel.mjs";
|
|
4
4
|
import { Duration, Effect, Layer } from "effect";
|
|
5
5
|
|
package/dist/tool/Outcome.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as FunctionCall } from "../Items-
|
|
1
|
+
import { o as FunctionCall } from "../Items-BH8xUkoR.mjs";
|
|
2
2
|
import { ToolResult } from "./Outcome.mjs";
|
|
3
3
|
import { ToolEvent } from "./ToolEvent.mjs";
|
|
4
4
|
import { Data, Effect, Queue, Scope, Stream } from "effect";
|
package/dist/tool/Tool.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Tool, c as ToolInputSchema, d as fromEffectSchema, f as fromStandardSchema, g as toDescriptors, h as streaming, i as StreamingTool, m as make, n as AnyPlainTool, o as ToolDescriptor, p as isStreamingTool, r as AnyStreamingTool, s as ToolError, t as AnyKindTool, u as execute } from "../Tool-
|
|
1
|
+
import { a as Tool, c as ToolInputSchema, d as fromEffectSchema, f as fromStandardSchema, g as toDescriptors, h as streaming, i as StreamingTool, m as make, n as AnyPlainTool, o as ToolDescriptor, p as isStreamingTool, r as AnyStreamingTool, s as ToolError, t as AnyKindTool, u as execute } from "../Tool-87ViKCCO.mjs";
|
|
2
2
|
export { AnyKindTool, AnyPlainTool, AnyStreamingTool, StreamingTool, Tool, ToolDescriptor, ToolError, ToolInputSchema, execute, fromEffectSchema, fromStandardSchema, isStreamingTool, make, streaming, toDescriptors };
|
package/dist/tool/Toolkit.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as FunctionCall } from "../Items-
|
|
2
|
-
import { a as Tool, i as StreamingTool, o as ToolDescriptor, t as AnyKindTool } from "../Tool-
|
|
1
|
+
import { o as FunctionCall } from "../Items-BH8xUkoR.mjs";
|
|
2
|
+
import { a as Tool, i as StreamingTool, o as ToolDescriptor, t as AnyKindTool } from "../Tool-87ViKCCO.mjs";
|
|
3
3
|
import { Event } from "../loop/Loop.mjs";
|
|
4
4
|
import { ToolResult } from "./Outcome.mjs";
|
|
5
5
|
import { ToolEvent } from "./ToolEvent.mjs";
|