@effect/ai 0.26.0 → 0.27.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/Chat/package.json +6 -0
- package/EmbeddingModel/package.json +6 -0
- package/IdGenerator/package.json +6 -0
- package/LanguageModel/package.json +6 -0
- package/Model/package.json +6 -0
- package/Prompt/package.json +6 -0
- package/Response/package.json +6 -0
- package/Telemetry/package.json +6 -0
- package/Tool/package.json +6 -0
- package/Toolkit/package.json +6 -0
- package/dist/cjs/AiError.js +575 -11
- package/dist/cjs/AiError.js.map +1 -1
- package/dist/cjs/Chat.js +302 -0
- package/dist/cjs/Chat.js.map +1 -0
- package/dist/cjs/EmbeddingModel.js +184 -0
- package/dist/cjs/EmbeddingModel.js.map +1 -0
- package/dist/cjs/IdGenerator.js +255 -0
- package/dist/cjs/IdGenerator.js.map +1 -0
- package/dist/cjs/LanguageModel.js +584 -0
- package/dist/cjs/LanguageModel.js.map +1 -0
- package/dist/cjs/McpServer.js +12 -4
- package/dist/cjs/McpServer.js.map +1 -1
- package/dist/cjs/Model.js +118 -0
- package/dist/cjs/Model.js.map +1 -0
- package/dist/cjs/Prompt.js +649 -0
- package/dist/cjs/Prompt.js.map +1 -0
- package/dist/cjs/Response.js +635 -0
- package/dist/cjs/Response.js.map +1 -0
- package/dist/cjs/Telemetry.js +176 -0
- package/dist/cjs/Telemetry.js.map +1 -0
- package/dist/cjs/Tokenizer.js +87 -8
- package/dist/cjs/Tokenizer.js.map +1 -1
- package/dist/cjs/Tool.js +556 -0
- package/dist/cjs/Tool.js.map +1 -0
- package/dist/cjs/Toolkit.js +279 -0
- package/dist/cjs/Toolkit.js.map +1 -0
- package/dist/cjs/index.js +21 -19
- package/dist/dts/AiError.d.ts +577 -9
- package/dist/dts/AiError.d.ts.map +1 -1
- package/dist/dts/Chat.d.ts +356 -0
- package/dist/dts/Chat.d.ts.map +1 -0
- package/dist/dts/EmbeddingModel.d.ts +153 -0
- package/dist/dts/EmbeddingModel.d.ts.map +1 -0
- package/dist/dts/IdGenerator.d.ts +272 -0
- package/dist/dts/IdGenerator.d.ts.map +1 -0
- package/dist/dts/LanguageModel.d.ts +458 -0
- package/dist/dts/LanguageModel.d.ts.map +1 -0
- package/dist/dts/McpSchema.d.ts +25 -25
- package/dist/dts/McpServer.d.ts +6 -4
- package/dist/dts/McpServer.d.ts.map +1 -1
- package/dist/dts/Model.d.ts +124 -0
- package/dist/dts/Model.d.ts.map +1 -0
- package/dist/dts/Prompt.d.ts +1119 -0
- package/dist/dts/Prompt.d.ts.map +1 -0
- package/dist/dts/Response.d.ts +1519 -0
- package/dist/dts/Response.d.ts.map +1 -0
- package/dist/dts/Telemetry.d.ts +520 -0
- package/dist/dts/Telemetry.d.ts.map +1 -0
- package/dist/dts/Tokenizer.d.ts +131 -13
- package/dist/dts/Tokenizer.d.ts.map +1 -1
- package/dist/dts/Tool.d.ts +876 -0
- package/dist/dts/Tool.d.ts.map +1 -0
- package/dist/dts/Toolkit.d.ts +310 -0
- package/dist/dts/Toolkit.d.ts.map +1 -0
- package/dist/dts/index.d.ts +498 -13
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/esm/AiError.js +570 -10
- package/dist/esm/AiError.js.map +1 -1
- package/dist/esm/Chat.js +291 -0
- package/dist/esm/Chat.js.map +1 -0
- package/dist/esm/EmbeddingModel.js +173 -0
- package/dist/esm/EmbeddingModel.js.map +1 -0
- package/dist/esm/IdGenerator.js +245 -0
- package/dist/esm/IdGenerator.js.map +1 -0
- package/dist/esm/LanguageModel.js +572 -0
- package/dist/esm/LanguageModel.js.map +1 -0
- package/dist/esm/McpServer.js +12 -4
- package/dist/esm/McpServer.js.map +1 -1
- package/dist/esm/Model.js +108 -0
- package/dist/esm/Model.js.map +1 -0
- package/dist/esm/Prompt.js +633 -0
- package/dist/esm/Prompt.js.map +1 -0
- package/dist/esm/Response.js +619 -0
- package/dist/esm/Response.js.map +1 -0
- package/dist/esm/Telemetry.js +166 -0
- package/dist/esm/Telemetry.js.map +1 -0
- package/dist/esm/Tokenizer.js +87 -8
- package/dist/esm/Tokenizer.js.map +1 -1
- package/dist/esm/Tool.js +534 -0
- package/dist/esm/Tool.js.map +1 -0
- package/dist/esm/Toolkit.js +269 -0
- package/dist/esm/Toolkit.js.map +1 -0
- package/dist/esm/index.js +498 -13
- package/dist/esm/index.js.map +1 -1
- package/package.json +76 -68
- package/src/AiError.ts +739 -9
- package/src/Chat.ts +546 -0
- package/src/EmbeddingModel.ts +311 -0
- package/src/IdGenerator.ts +320 -0
- package/src/LanguageModel.ts +1074 -0
- package/src/McpServer.ts +337 -194
- package/src/Model.ts +155 -0
- package/src/Prompt.ts +1616 -0
- package/src/Response.ts +2131 -0
- package/src/Telemetry.ts +655 -0
- package/src/Tokenizer.ts +145 -24
- package/src/Tool.ts +1267 -0
- package/src/Toolkit.ts +516 -0
- package/src/index.ts +499 -13
- package/AiChat/package.json +0 -6
- package/AiEmbeddingModel/package.json +0 -6
- package/AiInput/package.json +0 -6
- package/AiLanguageModel/package.json +0 -6
- package/AiModel/package.json +0 -6
- package/AiResponse/package.json +0 -6
- package/AiTelemetry/package.json +0 -6
- package/AiTool/package.json +0 -6
- package/AiToolkit/package.json +0 -6
- package/dist/cjs/AiChat.js +0 -122
- package/dist/cjs/AiChat.js.map +0 -1
- package/dist/cjs/AiEmbeddingModel.js +0 -109
- package/dist/cjs/AiEmbeddingModel.js.map +0 -1
- package/dist/cjs/AiInput.js +0 -458
- package/dist/cjs/AiInput.js.map +0 -1
- package/dist/cjs/AiLanguageModel.js +0 -351
- package/dist/cjs/AiLanguageModel.js.map +0 -1
- package/dist/cjs/AiModel.js +0 -37
- package/dist/cjs/AiModel.js.map +0 -1
- package/dist/cjs/AiResponse.js +0 -681
- package/dist/cjs/AiResponse.js.map +0 -1
- package/dist/cjs/AiTelemetry.js +0 -58
- package/dist/cjs/AiTelemetry.js.map +0 -1
- package/dist/cjs/AiTool.js +0 -150
- package/dist/cjs/AiTool.js.map +0 -1
- package/dist/cjs/AiToolkit.js +0 -157
- package/dist/cjs/AiToolkit.js.map +0 -1
- package/dist/cjs/internal/common.js +0 -21
- package/dist/cjs/internal/common.js.map +0 -1
- package/dist/dts/AiChat.d.ts +0 -101
- package/dist/dts/AiChat.d.ts.map +0 -1
- package/dist/dts/AiEmbeddingModel.d.ts +0 -65
- package/dist/dts/AiEmbeddingModel.d.ts.map +0 -1
- package/dist/dts/AiInput.d.ts +0 -590
- package/dist/dts/AiInput.d.ts.map +0 -1
- package/dist/dts/AiLanguageModel.d.ts +0 -302
- package/dist/dts/AiLanguageModel.d.ts.map +0 -1
- package/dist/dts/AiModel.d.ts +0 -25
- package/dist/dts/AiModel.d.ts.map +0 -1
- package/dist/dts/AiResponse.d.ts +0 -863
- package/dist/dts/AiResponse.d.ts.map +0 -1
- package/dist/dts/AiTelemetry.d.ts +0 -242
- package/dist/dts/AiTelemetry.d.ts.map +0 -1
- package/dist/dts/AiTool.d.ts +0 -334
- package/dist/dts/AiTool.d.ts.map +0 -1
- package/dist/dts/AiToolkit.d.ts +0 -96
- package/dist/dts/AiToolkit.d.ts.map +0 -1
- package/dist/dts/internal/common.d.ts +0 -2
- package/dist/dts/internal/common.d.ts.map +0 -1
- package/dist/esm/AiChat.js +0 -111
- package/dist/esm/AiChat.js.map +0 -1
- package/dist/esm/AiEmbeddingModel.js +0 -98
- package/dist/esm/AiEmbeddingModel.js.map +0 -1
- package/dist/esm/AiInput.js +0 -433
- package/dist/esm/AiInput.js.map +0 -1
- package/dist/esm/AiLanguageModel.js +0 -340
- package/dist/esm/AiLanguageModel.js.map +0 -1
- package/dist/esm/AiModel.js +0 -29
- package/dist/esm/AiModel.js.map +0 -1
- package/dist/esm/AiResponse.js +0 -657
- package/dist/esm/AiResponse.js.map +0 -1
- package/dist/esm/AiTelemetry.js +0 -48
- package/dist/esm/AiTelemetry.js.map +0 -1
- package/dist/esm/AiTool.js +0 -134
- package/dist/esm/AiTool.js.map +0 -1
- package/dist/esm/AiToolkit.js +0 -147
- package/dist/esm/AiToolkit.js.map +0 -1
- package/dist/esm/internal/common.js +0 -14
- package/dist/esm/internal/common.js.map +0 -1
- package/src/AiChat.ts +0 -251
- package/src/AiEmbeddingModel.ts +0 -169
- package/src/AiInput.ts +0 -602
- package/src/AiLanguageModel.ts +0 -685
- package/src/AiModel.ts +0 -53
- package/src/AiResponse.ts +0 -986
- package/src/AiTelemetry.ts +0 -333
- package/src/AiTool.ts +0 -579
- package/src/AiToolkit.ts +0 -265
- package/src/internal/common.ts +0 -12
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AiResponse.d.ts","sourceRoot":"","sources":["../../src/AiResponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAK1C;;;GAGG;AACH,eAAO,MAAM,MAAM,eAAsC,CAAA;AAEzD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAA;;IAWhC;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAXL;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,eAO9B;IACA;;OAEG;IACH,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAS;IAElC;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAUjB;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,YAAY,CAG/B;IAED;;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AAErD;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,UAGnB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE;IAClB;;;;;OAKG;IACH,CAAC,KAAK,EAAE,UAAU,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,UAAU,CAAA;IACrD;;;;;OAKG;IACH,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,CAAA;CA2DjD,CAAA;AA2CF;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE;IAC9B;;;;;;;;;OASG;IACH,CACE,SAAS,EAAE,QAAQ,CAAC;QAClB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KACxB,CAAC,GACD,CAAC,IAAI,EAAE,UAAU,KAAK,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAC3D;;;;;;;;;OASG;IACH,CACE,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,QAAQ,CAAC;QAClB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KACxB,CAAC,GACD,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;CA4CnC,CAAA"}
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import * as Context from "effect/Context";
|
|
5
|
-
import type { Span } from "effect/Tracer";
|
|
6
|
-
import type { Simplify } from "effect/Types";
|
|
7
|
-
import type { AiLanguageModelOptions } from "./AiLanguageModel.js";
|
|
8
|
-
import type { AiResponse } from "./AiResponse.js";
|
|
9
|
-
/**
|
|
10
|
-
* The attributes used to describe telemetry in the context of Generative
|
|
11
|
-
* Artificial Intelligence (GenAI) Models requests and responses.
|
|
12
|
-
*
|
|
13
|
-
* {@see https://opentelemetry.io/docs/specs/semconv/attributes-registry/gen-ai/}
|
|
14
|
-
*
|
|
15
|
-
* @since 1.0.0
|
|
16
|
-
* @category Models
|
|
17
|
-
*/
|
|
18
|
-
export type GenAITelemetryAttributes = Simplify<AttributesWithPrefix<BaseAttributes, "gen_ai"> & AttributesWithPrefix<OperationAttributes, "gen_ai.operation"> & AttributesWithPrefix<TokenAttributes, "gen_ai.token"> & AttributesWithPrefix<UsageAttributes, "gen_ai.usage"> & AttributesWithPrefix<RequestAttributes, "gen_ai.request"> & AttributesWithPrefix<ResponseAttributes, "gen_ai.response">>;
|
|
19
|
-
/**
|
|
20
|
-
* All telemetry attributes which are part of the GenAI specification.
|
|
21
|
-
*
|
|
22
|
-
* @since 1.0.0
|
|
23
|
-
* @category Models
|
|
24
|
-
*/
|
|
25
|
-
export type AllAttributes = BaseAttributes & OperationAttributes & TokenAttributes & UsageAttributes & RequestAttributes & ResponseAttributes;
|
|
26
|
-
/**
|
|
27
|
-
* Telemetry attributes which are part of the GenAI specification and are
|
|
28
|
-
* namespaced by `gen_ai`.
|
|
29
|
-
*
|
|
30
|
-
* @since 1.0.0
|
|
31
|
-
* @category Models
|
|
32
|
-
*/
|
|
33
|
-
export interface BaseAttributes {
|
|
34
|
-
/**
|
|
35
|
-
* The Generative AI product as identified by the client or server
|
|
36
|
-
* instrumentation.
|
|
37
|
-
*/
|
|
38
|
-
readonly system?: (string & {}) | WellKnownSystem | null | undefined;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Telemetry attributes which are part of the GenAI specification and are
|
|
42
|
-
* namespaced by `gen_ai.operation`.
|
|
43
|
-
*
|
|
44
|
-
* @since 1.0.0
|
|
45
|
-
* @category Models
|
|
46
|
-
*/
|
|
47
|
-
export interface OperationAttributes {
|
|
48
|
-
readonly name?: (string & {}) | WellKnownOperationName | null | undefined;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Telemetry attributes which are part of the GenAI specification and are
|
|
52
|
-
* namespaced by `gen_ai.token`.
|
|
53
|
-
*
|
|
54
|
-
* @since 1.0.0
|
|
55
|
-
* @category Models
|
|
56
|
-
*/
|
|
57
|
-
export interface TokenAttributes {
|
|
58
|
-
readonly type?: string | null | undefined;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Telemetry attributes which are part of the GenAI specification and are
|
|
62
|
-
* namespaced by `gen_ai.usage`.
|
|
63
|
-
*
|
|
64
|
-
* @since 1.0.0
|
|
65
|
-
* @category Models
|
|
66
|
-
*/
|
|
67
|
-
export interface UsageAttributes {
|
|
68
|
-
readonly inputTokens?: number | null | undefined;
|
|
69
|
-
readonly outputTokens?: number | null | undefined;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Telemetry attributes which are part of the GenAI specification and are
|
|
73
|
-
* namespaced by `gen_ai.request`.
|
|
74
|
-
*
|
|
75
|
-
* @since 1.0.0
|
|
76
|
-
* @category Models
|
|
77
|
-
*/
|
|
78
|
-
export interface RequestAttributes {
|
|
79
|
-
/**
|
|
80
|
-
* The name of the GenAI model a request is being made to.
|
|
81
|
-
*/
|
|
82
|
-
readonly model?: string | null | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* The temperature setting for the GenAI request.
|
|
85
|
-
*/
|
|
86
|
-
readonly temperature?: number | null | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* The temperature setting for the GenAI request.
|
|
89
|
-
*/
|
|
90
|
-
readonly topK?: number | null | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* The top_k sampling setting for the GenAI request.
|
|
93
|
-
*/
|
|
94
|
-
readonly topP?: number | null | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* The top_p sampling setting for the GenAI request.
|
|
97
|
-
*/
|
|
98
|
-
readonly maxTokens?: number | null | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* The encoding formats requested in an embeddings operation, if specified.
|
|
101
|
-
*/
|
|
102
|
-
readonly encodingFormats?: ReadonlyArray<string> | null | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* List of sequences that the model will use to stop generating further
|
|
105
|
-
* tokens.
|
|
106
|
-
*/
|
|
107
|
-
readonly stopSequences?: ReadonlyArray<string> | null | undefined;
|
|
108
|
-
/**
|
|
109
|
-
* The frequency penalty setting for the GenAI request.
|
|
110
|
-
*/
|
|
111
|
-
readonly frequencyPenalty?: number | null | undefined;
|
|
112
|
-
/**
|
|
113
|
-
* The presence penalty setting for the GenAI request.
|
|
114
|
-
*/
|
|
115
|
-
readonly presencePenalty?: number | null | undefined;
|
|
116
|
-
/**
|
|
117
|
-
* The seed setting for the GenAI request. Requests with same seed value
|
|
118
|
-
* are more likely to return same result.
|
|
119
|
-
*/
|
|
120
|
-
readonly seed?: number | null | undefined;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Telemetry attributes which are part of the GenAI specification and are
|
|
124
|
-
* namespaced by `gen_ai.response`.
|
|
125
|
-
*
|
|
126
|
-
* @since 1.0.0
|
|
127
|
-
* @category Models
|
|
128
|
-
*/
|
|
129
|
-
export interface ResponseAttributes {
|
|
130
|
-
/**
|
|
131
|
-
* The unique identifier for the completion.
|
|
132
|
-
*/
|
|
133
|
-
readonly id?: string | null | undefined;
|
|
134
|
-
/**
|
|
135
|
-
* The name of the model that generated the response.
|
|
136
|
-
*/
|
|
137
|
-
readonly model?: string | null | undefined;
|
|
138
|
-
/**
|
|
139
|
-
* Array of reasons the model stopped generating tokens, corresponding to
|
|
140
|
-
* each generation received.
|
|
141
|
-
*/
|
|
142
|
-
readonly finishReasons?: ReadonlyArray<string> | null | undefined;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* The `gen_ai.operation.name` attribute has the following list of well-known
|
|
146
|
-
* values.
|
|
147
|
-
*
|
|
148
|
-
* If one of them applies, then the respective value **MUST** be used;
|
|
149
|
-
* otherwise, a custom value **MAY** be used.
|
|
150
|
-
*
|
|
151
|
-
* @since 1.0.0
|
|
152
|
-
* @category Models
|
|
153
|
-
*/
|
|
154
|
-
export type WellKnownOperationName = "chat" | "embeddings" | "text_completion";
|
|
155
|
-
/**
|
|
156
|
-
* The `gen_ai.system` attribute has the following list of well-known values.
|
|
157
|
-
*
|
|
158
|
-
* If one of them applies, then the respective value **MUST** be used;
|
|
159
|
-
* otherwise, a custom value **MAY** be used.
|
|
160
|
-
*
|
|
161
|
-
* @since 1.0.0
|
|
162
|
-
* @category Models
|
|
163
|
-
*/
|
|
164
|
-
export type WellKnownSystem = "anthropic" | "aws.bedrock" | "az.ai.inference" | "az.ai.openai" | "cohere" | "deepseek" | "gemini" | "groq" | "ibm.watsonx.ai" | "mistral_ai" | "openai" | "perplexity" | "vertex_ai" | "xai";
|
|
165
|
-
/**
|
|
166
|
-
* @since 1.0.0
|
|
167
|
-
* @category Models
|
|
168
|
-
*/
|
|
169
|
-
export type AttributesWithPrefix<Attributes extends Record<string, any>, Prefix extends string> = {
|
|
170
|
-
[Name in keyof Attributes as `${Prefix}.${FormatAttributeName<Name>}`]: Attributes[Name];
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* @since 1.0.0
|
|
174
|
-
* @category Utility Types
|
|
175
|
-
*/
|
|
176
|
-
export type FormatAttributeName<T extends string | number | symbol> = T extends string ? T extends `${infer First}${infer Rest}` ? `${First extends Uppercase<First> ? "_" : ""}${Lowercase<First>}${FormatAttributeName<Rest>}` : T : never;
|
|
177
|
-
/**
|
|
178
|
-
* @since 1.0.0
|
|
179
|
-
* @category Utilities
|
|
180
|
-
*/
|
|
181
|
-
export declare const addSpanAttributes: (keyPrefix: string, transformKey: (key: string) => string) => <Attributes extends Record<string, any>>(span: Span, attributes: Attributes) => void;
|
|
182
|
-
/**
|
|
183
|
-
* @since 1.0.0
|
|
184
|
-
* @since Models
|
|
185
|
-
*/
|
|
186
|
-
export type GenAITelemetryAttributeOptions = BaseAttributes & {
|
|
187
|
-
readonly operation?: OperationAttributes | undefined;
|
|
188
|
-
readonly request?: RequestAttributes | undefined;
|
|
189
|
-
readonly response?: ResponseAttributes | undefined;
|
|
190
|
-
readonly token?: TokenAttributes | undefined;
|
|
191
|
-
readonly usage?: UsageAttributes | undefined;
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Applies the specified GenAI telemetry attributes to the provided `Span`.
|
|
195
|
-
*
|
|
196
|
-
* **NOTE**: This method will mutate the `Span` **in-place**.
|
|
197
|
-
*
|
|
198
|
-
* @since 1.0.0
|
|
199
|
-
* @since Utilities
|
|
200
|
-
*/
|
|
201
|
-
export declare const addGenAIAnnotations: {
|
|
202
|
-
/**
|
|
203
|
-
* Applies the specified GenAI telemetry attributes to the provided `Span`.
|
|
204
|
-
*
|
|
205
|
-
* **NOTE**: This method will mutate the `Span` **in-place**.
|
|
206
|
-
*
|
|
207
|
-
* @since 1.0.0
|
|
208
|
-
* @since Utilities
|
|
209
|
-
*/
|
|
210
|
-
(options: GenAITelemetryAttributeOptions): (span: Span) => void;
|
|
211
|
-
/**
|
|
212
|
-
* Applies the specified GenAI telemetry attributes to the provided `Span`.
|
|
213
|
-
*
|
|
214
|
-
* **NOTE**: This method will mutate the `Span` **in-place**.
|
|
215
|
-
*
|
|
216
|
-
* @since 1.0.0
|
|
217
|
-
* @since Utilities
|
|
218
|
-
*/
|
|
219
|
-
(span: Span, options: GenAITelemetryAttributeOptions): void;
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* Represents a method which receives the elements of the request / response to
|
|
223
|
-
* a large language model and can be used to modify the span used to trace the
|
|
224
|
-
* API call.
|
|
225
|
-
*
|
|
226
|
-
* @since 1.0.0
|
|
227
|
-
* @category Models
|
|
228
|
-
*/
|
|
229
|
-
export interface SpanTransformer {
|
|
230
|
-
(options: AiLanguageModelOptions & {
|
|
231
|
-
readonly response: AiResponse;
|
|
232
|
-
}): void;
|
|
233
|
-
}
|
|
234
|
-
declare const CurrentSpanTransformer_base: Context.TagClass<CurrentSpanTransformer, "@effect/ai/AiTelemetry/CurrentSpanTransformer", SpanTransformer>;
|
|
235
|
-
/**
|
|
236
|
-
* @since 1.0.0
|
|
237
|
-
* @category Context
|
|
238
|
-
*/
|
|
239
|
-
export declare class CurrentSpanTransformer extends CurrentSpanTransformer_base {
|
|
240
|
-
}
|
|
241
|
-
export {};
|
|
242
|
-
//# sourceMappingURL=AiTelemetry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AiTelemetry.d.ts","sourceRoot":"","sources":["../../src/AiTelemetry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAIzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;;;;;;;GAQG;AACH,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAC3C,oBAAoB,CAAC,cAAc,EAAE,QAAQ,CAAC,GAC9C,oBAAoB,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,GAC7D,oBAAoB,CAAC,eAAe,EAAE,cAAc,CAAC,GACrD,oBAAoB,CAAC,eAAe,EAAE,cAAc,CAAC,GACrD,oBAAoB,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,GACzD,oBAAoB,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAC9D,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GACrB,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,iBAAiB,GACjB,kBAAkB,CAAA;AAEtB;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,QAA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;QAAE,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAA;KAAE,GAAG,IAAI,CAAA;CAC5E;;AAED;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,2BAGzC;CAAG"}
|
package/dist/dts/AiTool.d.ts
DELETED
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import * as Context_ from "effect/Context";
|
|
5
|
-
import type * as Effect from "effect/Effect";
|
|
6
|
-
import { type Pipeable } from "effect/Pipeable";
|
|
7
|
-
import * as Schema from "effect/Schema";
|
|
8
|
-
import * as AST from "effect/SchemaAST";
|
|
9
|
-
import type * as Types from "effect/Types";
|
|
10
|
-
import type { AiError } from "./AiError.js";
|
|
11
|
-
/**
|
|
12
|
-
* @since 1.0.0
|
|
13
|
-
* @category Type Ids
|
|
14
|
-
*/
|
|
15
|
-
export declare const TypeId: unique symbol;
|
|
16
|
-
/**
|
|
17
|
-
* @since 1.0.0
|
|
18
|
-
* @category Type Ids
|
|
19
|
-
*/
|
|
20
|
-
export type TypeId = typeof TypeId;
|
|
21
|
-
/**
|
|
22
|
-
* A `AiTool` represents an action that a large language model can take within
|
|
23
|
-
* your application. The results of a tool call can be returned back to the
|
|
24
|
-
* large language model to be incorporated into its next response.
|
|
25
|
-
*
|
|
26
|
-
* @since 1.0.0
|
|
27
|
-
* @category Models
|
|
28
|
-
*/
|
|
29
|
-
export interface AiTool<out Name extends string, out Parameters extends AnyStructSchema = Schema.Struct<{}>, out Success extends Schema.Schema.Any = typeof Schema.Void, out Failure extends Schema.Schema.All = typeof Schema.Never, out Requirements = never> extends Pipeable {
|
|
30
|
-
readonly [TypeId]: {
|
|
31
|
-
readonly _Requirements: Types.Covariant<Requirements>;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* The name of the tool.
|
|
35
|
-
*/
|
|
36
|
-
readonly name: Name;
|
|
37
|
-
/**
|
|
38
|
-
* The optional description of the tool.
|
|
39
|
-
*/
|
|
40
|
-
readonly description?: string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* A key for the tool, used to identify the tool within a `Context`.
|
|
43
|
-
*/
|
|
44
|
-
readonly key: string;
|
|
45
|
-
/**
|
|
46
|
-
* A `Schema` representing the type of the parameters that a tool handler
|
|
47
|
-
* must be called with.
|
|
48
|
-
*/
|
|
49
|
-
readonly parametersSchema: Parameters;
|
|
50
|
-
/**
|
|
51
|
-
* A `Schema` representing the type that a tool returns from its handler
|
|
52
|
-
* if successful.
|
|
53
|
-
*/
|
|
54
|
-
readonly successSchema: Success;
|
|
55
|
-
/**
|
|
56
|
-
* A `Schema` representing the type that a tool returns from its handler
|
|
57
|
-
* if it fails.
|
|
58
|
-
*/
|
|
59
|
-
readonly failureSchema: Failure;
|
|
60
|
-
readonly annotations: Context_.Context<never>;
|
|
61
|
-
/**
|
|
62
|
-
* Adds a requirement on a particular service for the tool call to be able to
|
|
63
|
-
* be executed.
|
|
64
|
-
*/
|
|
65
|
-
addRequirement<Requirement>(): AiTool<Name, Parameters, Success, Failure, Requirements | Requirement>;
|
|
66
|
-
/**
|
|
67
|
-
* Set the schema to use for tool handler success.
|
|
68
|
-
*/
|
|
69
|
-
setSuccess<SuccessSchema extends Schema.Schema.Any>(schema: SuccessSchema): AiTool<Name, Parameters, SuccessSchema, Failure, Requirements>;
|
|
70
|
-
/**
|
|
71
|
-
* Set the schema to use for tool handler failure.
|
|
72
|
-
*/
|
|
73
|
-
setFailure<FailureSchema extends Schema.Schema.Any>(schema: FailureSchema): AiTool<Name, Parameters, Success, FailureSchema, Requirements>;
|
|
74
|
-
/**
|
|
75
|
-
* Set the schema for the tool parameters.
|
|
76
|
-
*/
|
|
77
|
-
setParameters<ParametersSchema extends Schema.Struct<any> | Schema.Struct.Fields>(schema: ParametersSchema): AiTool<Name, ParametersSchema extends Schema.Struct<infer _> ? ParametersSchema : ParametersSchema extends Schema.Struct.Fields ? Schema.Struct<ParametersSchema> : never, Success, Failure, Requirements>;
|
|
78
|
-
/**
|
|
79
|
-
* Add an annotation to the tool.
|
|
80
|
-
*/
|
|
81
|
-
annotate<I, S>(tag: Context_.Tag<I, S>, value: S): AiTool<Name, Parameters, Success, Failure, Requirements>;
|
|
82
|
-
/**
|
|
83
|
-
* Add many annotations to the tool.
|
|
84
|
-
*/
|
|
85
|
-
annotateContext<I>(context: Context_.Context<I>): AiTool<Name, Parameters, Success, Failure, Requirements>;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* @since 1.0.0
|
|
89
|
-
* @category Guards
|
|
90
|
-
*/
|
|
91
|
-
export declare const isAiTool: (u: unknown) => u is AiTool<any, any, any, any, any>;
|
|
92
|
-
/**
|
|
93
|
-
* @since 1.0.0
|
|
94
|
-
* @category Models
|
|
95
|
-
*/
|
|
96
|
-
export interface Any extends Pipeable {
|
|
97
|
-
readonly [TypeId]: {
|
|
98
|
-
readonly _Requirements: Types.Covariant<any>;
|
|
99
|
-
};
|
|
100
|
-
readonly name: string;
|
|
101
|
-
readonly description?: string | undefined;
|
|
102
|
-
readonly key: string;
|
|
103
|
-
readonly parametersSchema: AnyStructSchema;
|
|
104
|
-
readonly annotations: Context_.Context<never>;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @since 1.0.0
|
|
108
|
-
* @category Models
|
|
109
|
-
*/
|
|
110
|
-
export interface AnyWithProtocol extends Any {
|
|
111
|
-
readonly successSchema: Schema.Schema.Any;
|
|
112
|
-
readonly failureSchema: Schema.Schema.All;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Represents an `AiTool` that has been implemented within the application.
|
|
116
|
-
*
|
|
117
|
-
* @since 1.0.0
|
|
118
|
-
* @category Models
|
|
119
|
-
*/
|
|
120
|
-
export interface Handler<Name extends string> {
|
|
121
|
-
readonly _: unique symbol;
|
|
122
|
-
readonly name: Name;
|
|
123
|
-
readonly handler: (params: any) => Effect.Effect<any, any>;
|
|
124
|
-
readonly context: Context_.Context<never>;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* A utility type which returns the type of the `Effect` that will be used to
|
|
128
|
-
* resolve a tool call.
|
|
129
|
-
*
|
|
130
|
-
* @since 1.0.0
|
|
131
|
-
* @category Utility Types
|
|
132
|
-
*/
|
|
133
|
-
export type HandlerEffect<Tool extends Any> = [Tool] extends [
|
|
134
|
-
AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements>
|
|
135
|
-
] ? Effect.Effect<_Success["Type"], AiError | _Failure["Type"], _Parameters["Context"] | _Success["Context"] | _Failure["Context"] | _Requirements> : never;
|
|
136
|
-
/**
|
|
137
|
-
* Represents the result of calling the handler for a particular tool.
|
|
138
|
-
*
|
|
139
|
-
* @since 1.0.0
|
|
140
|
-
* @category Models
|
|
141
|
-
*/
|
|
142
|
-
export interface HandlerResult<Tool extends Any> {
|
|
143
|
-
/**
|
|
144
|
-
* The result of executing the handler for a particular tool.
|
|
145
|
-
*/
|
|
146
|
-
readonly result: Success<Tool>;
|
|
147
|
-
/**
|
|
148
|
-
* The encoded result of executing the handler for a particular tool, which
|
|
149
|
-
* is suitable for returning back to the large language model for
|
|
150
|
-
* incorporation into further responses.
|
|
151
|
-
*/
|
|
152
|
-
readonly encodedResult: unknown;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* A utility mapped type which associates tool names with tools.
|
|
156
|
-
*
|
|
157
|
-
* @since 1.0.0
|
|
158
|
-
* @category Utility Types
|
|
159
|
-
*/
|
|
160
|
-
export type ByName<Tools extends Any> = {
|
|
161
|
-
readonly [Tool in Tools as Tool["name"]]: Tool;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* A utility type to extract the `Name` type from an `AiTool`.
|
|
165
|
-
*
|
|
166
|
-
* @since 1.0.0
|
|
167
|
-
* @category Utility Types
|
|
168
|
-
*/
|
|
169
|
-
export type Name<Tool> = Tool extends AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements> ? _Name : never;
|
|
170
|
-
/**
|
|
171
|
-
* A utility type to extract the type of the parameters which an `AiTool` must
|
|
172
|
-
* be called with.
|
|
173
|
-
*
|
|
174
|
-
* @since 1.0.0
|
|
175
|
-
* @category Utility Types
|
|
176
|
-
*/
|
|
177
|
-
export type Parameters<Tool> = Tool extends AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements> ? _Parameters["Type"] : never;
|
|
178
|
-
/**
|
|
179
|
-
* A utility type to extract the schema type of the parameters which an `AiTool`
|
|
180
|
-
* must be called with.
|
|
181
|
-
*
|
|
182
|
-
* @since 1.0.0
|
|
183
|
-
* @category Utility Types
|
|
184
|
-
*/
|
|
185
|
-
export type ParametersSchema<Tool> = Tool extends AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements> ? _Parameters : never;
|
|
186
|
-
/**
|
|
187
|
-
* A utility type to extract the type of the response that an `AiTool` returns
|
|
188
|
-
* from its handler if successful.
|
|
189
|
-
*
|
|
190
|
-
* @since 1.0.0
|
|
191
|
-
* @category Utility Types
|
|
192
|
-
*/
|
|
193
|
-
export type Success<Tool> = Tool extends AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements> ? _Success["Type"] : never;
|
|
194
|
-
/**
|
|
195
|
-
* A utility type to extract the schema type of the response that an `AiTool`
|
|
196
|
-
* returns from its handler if successful.
|
|
197
|
-
*
|
|
198
|
-
* @since 1.0.0
|
|
199
|
-
* @category Utility Types
|
|
200
|
-
*/
|
|
201
|
-
export type SuccessSchema<Tool> = Tool extends AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements> ? _Success : never;
|
|
202
|
-
/**
|
|
203
|
-
* A utility type to extract the type of the response that an `AiTool` returns
|
|
204
|
-
* from its handler if it fails.
|
|
205
|
-
*
|
|
206
|
-
* @since 1.0.0
|
|
207
|
-
* @category Utility Types
|
|
208
|
-
*/
|
|
209
|
-
export type Failure<Tool> = Tool extends AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements> ? _Failure["Type"] : never;
|
|
210
|
-
/**
|
|
211
|
-
* A utility type to extract the schema type of the response that an `AiTool`
|
|
212
|
-
* returns from its handler if it fails.
|
|
213
|
-
*
|
|
214
|
-
* @since 1.0.0
|
|
215
|
-
* @category Utility Types
|
|
216
|
-
*/
|
|
217
|
-
export type FailureSchema<Tool> = Tool extends AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements> ? _Failure : never;
|
|
218
|
-
/**
|
|
219
|
-
* A utility type to the `Context` type from an `AiTool`.
|
|
220
|
-
*
|
|
221
|
-
* @since 1.0.0
|
|
222
|
-
* @category Utility Types
|
|
223
|
-
*/
|
|
224
|
-
export type Context<Tool> = Tool extends AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements> ? _Parameters["Context"] | _Success["Context"] | _Failure["Context"] | _Requirements : never;
|
|
225
|
-
/**
|
|
226
|
-
* @since 1.0.0
|
|
227
|
-
* @category Utility Types
|
|
228
|
-
*/
|
|
229
|
-
export interface AnyStructSchema extends Pipeable {
|
|
230
|
-
readonly [Schema.TypeId]: any;
|
|
231
|
-
readonly make: any;
|
|
232
|
-
readonly Type: any;
|
|
233
|
-
readonly Encoded: any;
|
|
234
|
-
readonly Context: any;
|
|
235
|
-
readonly ast: AST.AST;
|
|
236
|
-
readonly fields: Schema.Struct.Fields;
|
|
237
|
-
readonly annotations: any;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* @since 1.0.0
|
|
241
|
-
* @category Utility Types
|
|
242
|
-
*/
|
|
243
|
-
export interface AnyTaggedRequestSchema extends AnyStructSchema {
|
|
244
|
-
readonly _tag: string;
|
|
245
|
-
readonly success: Schema.Schema.Any;
|
|
246
|
-
readonly failure: Schema.Schema.All;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* A utility type to convert a `Schema.TaggedRequest` into an `AiTool`.
|
|
250
|
-
*
|
|
251
|
-
* @since 1.0.0
|
|
252
|
-
* @category Utility Types
|
|
253
|
-
*/
|
|
254
|
-
export interface FromTaggedRequest<S extends AnyTaggedRequestSchema> extends AiTool<S["_tag"], S, S["success"], S["failure"]> {
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* A utility type which returns the handler type for an `AiTool`.
|
|
258
|
-
*
|
|
259
|
-
* @since 1.0.0
|
|
260
|
-
* @category Utility Types
|
|
261
|
-
*/
|
|
262
|
-
export type ToHandler<Tool extends Any> = Tool extends AiTool<infer _Name, infer _Parameters, infer _Success, infer _Failure, infer _Requirements> ? Handler<_Name> : never;
|
|
263
|
-
/**
|
|
264
|
-
* Constructs an `AiTool` from a name and, optionally, a specification for the
|
|
265
|
-
* tool call's protocol.
|
|
266
|
-
*
|
|
267
|
-
* @since 1.0.0
|
|
268
|
-
* @category constructors
|
|
269
|
-
*/
|
|
270
|
-
export declare const make: <const Name extends string, Parameters extends Schema.Struct.Fields = {}, Success extends Schema.Schema.Any = typeof Schema.Void, Failure extends Schema.Schema.All = typeof Schema.Never>(name: Name, options?: {
|
|
271
|
-
/**
|
|
272
|
-
* An optional description of the tool.
|
|
273
|
-
*/
|
|
274
|
-
readonly description?: string | undefined;
|
|
275
|
-
/**
|
|
276
|
-
* A `Schema` representing the type of the parameters that a tool call
|
|
277
|
-
* handler must be provided with.
|
|
278
|
-
*/
|
|
279
|
-
readonly parameters?: Parameters;
|
|
280
|
-
/**
|
|
281
|
-
* A `Schema` representing the type that a tool returns from its handler if
|
|
282
|
-
* successful.
|
|
283
|
-
*/
|
|
284
|
-
readonly success?: Success;
|
|
285
|
-
/**
|
|
286
|
-
* A `Schema` representing the type that a tool returns from its handler if
|
|
287
|
-
* it fails.
|
|
288
|
-
*/
|
|
289
|
-
readonly failure?: Failure;
|
|
290
|
-
}) => AiTool<Name, Schema.Struct<Parameters>, Success, Failure>;
|
|
291
|
-
/**
|
|
292
|
-
* Constructs a new `AiTool` from a `Schema.TaggedRequest`.
|
|
293
|
-
*
|
|
294
|
-
* @since 1.0.0
|
|
295
|
-
* @category constructors
|
|
296
|
-
*/
|
|
297
|
-
export declare const fromTaggedRequest: <S extends AnyTaggedRequestSchema>(schema: S) => FromTaggedRequest<S>;
|
|
298
|
-
declare const Title_base: Context_.TagClass<Title, "@effect/ai/AiTool/Title", string>;
|
|
299
|
-
/**
|
|
300
|
-
* @since 1.0.0
|
|
301
|
-
* @category Annotations
|
|
302
|
-
*/
|
|
303
|
-
export declare class Title extends Title_base {
|
|
304
|
-
}
|
|
305
|
-
declare const Readonly_base: Context_.ReferenceClass<Readonly, "@effect/ai/AiTool/Readonly", boolean>;
|
|
306
|
-
/**
|
|
307
|
-
* @since 1.0.0
|
|
308
|
-
* @category Annotations
|
|
309
|
-
*/
|
|
310
|
-
export declare class Readonly extends Readonly_base {
|
|
311
|
-
}
|
|
312
|
-
declare const Destructive_base: Context_.ReferenceClass<Destructive, "@effect/ai/AiTool/Destructive", boolean>;
|
|
313
|
-
/**
|
|
314
|
-
* @since 1.0.0
|
|
315
|
-
* @category Annotations
|
|
316
|
-
*/
|
|
317
|
-
export declare class Destructive extends Destructive_base {
|
|
318
|
-
}
|
|
319
|
-
declare const Idempotent_base: Context_.ReferenceClass<Idempotent, "@effect/ai/AiTool/Idempotent", boolean>;
|
|
320
|
-
/**
|
|
321
|
-
* @since 1.0.0
|
|
322
|
-
* @category Annotations
|
|
323
|
-
*/
|
|
324
|
-
export declare class Idempotent extends Idempotent_base {
|
|
325
|
-
}
|
|
326
|
-
declare const OpenWorld_base: Context_.ReferenceClass<OpenWorld, "@effect/ai/AiTool/OpenWorld", boolean>;
|
|
327
|
-
/**
|
|
328
|
-
* @since 1.0.0
|
|
329
|
-
* @category Annotations
|
|
330
|
-
*/
|
|
331
|
-
export declare class OpenWorld extends OpenWorld_base {
|
|
332
|
-
}
|
|
333
|
-
export {};
|
|
334
|
-
//# sourceMappingURL=AiTool.d.ts.map
|
package/dist/dts/AiTool.d.ts.map
DELETED
|
@@ -1 +0,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