@effect/ai-anthropic 4.0.0-beta.70 → 4.0.0-beta.72
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/AnthropicClient.d.ts +51 -2
- package/dist/AnthropicClient.d.ts.map +1 -1
- package/dist/AnthropicClient.js +64 -4
- package/dist/AnthropicClient.js.map +1 -1
- package/dist/AnthropicConfig.d.ts +22 -0
- package/dist/AnthropicConfig.d.ts.map +1 -1
- package/dist/AnthropicConfig.js +12 -0
- package/dist/AnthropicConfig.js.map +1 -1
- package/dist/AnthropicError.d.ts +8 -0
- package/dist/AnthropicError.d.ts.map +1 -1
- package/dist/AnthropicLanguageModel.d.ts +105 -7
- package/dist/AnthropicLanguageModel.d.ts.map +1 -1
- package/dist/AnthropicLanguageModel.js +55 -5
- package/dist/AnthropicLanguageModel.js.map +1 -1
- package/dist/AnthropicTelemetry.d.ts +21 -1
- package/dist/AnthropicTelemetry.d.ts.map +1 -1
- package/dist/AnthropicTelemetry.js +38 -4
- package/dist/AnthropicTelemetry.js.map +1 -1
- package/dist/AnthropicTool.d.ts +940 -165
- package/dist/AnthropicTool.d.ts.map +1 -1
- package/dist/AnthropicTool.js +760 -123
- package/dist/AnthropicTool.js.map +1 -1
- package/dist/index.d.ts +0 -65
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -65
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/AnthropicClient.ts +80 -5
- package/src/AnthropicConfig.ts +22 -0
- package/src/AnthropicError.ts +8 -0
- package/src/AnthropicLanguageModel.ts +135 -9
- package/src/AnthropicTelemetry.ts +54 -5
- package/src/AnthropicTool.ts +938 -163
- package/src/index.ts +0 -65
|
@@ -78,7 +78,16 @@ export interface Service {
|
|
|
78
78
|
export type MessageStreamEvent = typeof Generated.BetaMessageStartEvent.Type | typeof Generated.BetaMessageDeltaEvent.Type | typeof Generated.BetaMessageStopEvent.Type | typeof Generated.BetaContentBlockStartEvent.Type | typeof Generated.BetaContentBlockDeltaEvent.Type | typeof Generated.BetaContentBlockStopEvent.Type | typeof Generated.BetaErrorResponse.Type;
|
|
79
79
|
declare const AnthropicClient_base: Context.ServiceClass<AnthropicClient, "@effect/ai-anthropic/AnthropicClient", Service>;
|
|
80
80
|
/**
|
|
81
|
-
* Service
|
|
81
|
+
* Service tag for the Anthropic client.
|
|
82
|
+
*
|
|
83
|
+
* **When to use**
|
|
84
|
+
*
|
|
85
|
+
* Use when accessing or providing the Anthropic client service through Effect's
|
|
86
|
+
* context.
|
|
87
|
+
*
|
|
88
|
+
* @see {@link make} for constructing an Anthropic client effectfully
|
|
89
|
+
* @see {@link layer} for providing a client from explicit options
|
|
90
|
+
* @see {@link layerConfig} for providing a client from `Config`
|
|
82
91
|
*
|
|
83
92
|
* @category services
|
|
84
93
|
* @since 4.0.0
|
|
@@ -86,7 +95,22 @@ declare const AnthropicClient_base: Context.ServiceClass<AnthropicClient, "@effe
|
|
|
86
95
|
export declare class AnthropicClient extends AnthropicClient_base {
|
|
87
96
|
}
|
|
88
97
|
/**
|
|
89
|
-
* Configuration
|
|
98
|
+
* Configuration for creating an Anthropic client.
|
|
99
|
+
*
|
|
100
|
+
* **When to use**
|
|
101
|
+
*
|
|
102
|
+
* Use when the Anthropic client settings are already available as values and
|
|
103
|
+
* should be passed directly to `make` or `layer`.
|
|
104
|
+
*
|
|
105
|
+
* **Details**
|
|
106
|
+
*
|
|
107
|
+
* These options configure the base Anthropic URL, the `x-api-key`
|
|
108
|
+
* authentication header, the `anthropic-version` header, and an optional
|
|
109
|
+
* transformation of the underlying `HttpClient`.
|
|
110
|
+
*
|
|
111
|
+
* @see {@link make} for constructing an Anthropic client from explicit options
|
|
112
|
+
* @see {@link layer} for providing an Anthropic client from explicit options
|
|
113
|
+
* @see {@link layerConfig} for loading Anthropic client settings from `Config`
|
|
90
114
|
*
|
|
91
115
|
* @category models
|
|
92
116
|
* @since 4.0.0
|
|
@@ -118,12 +142,20 @@ export type Options = {
|
|
|
118
142
|
/**
|
|
119
143
|
* Creates an Anthropic client service with the given options.
|
|
120
144
|
*
|
|
145
|
+
* **When to use**
|
|
146
|
+
*
|
|
147
|
+
* Use when you have explicit configuration values and need an `Effect` that
|
|
148
|
+
* constructs the Anthropic client service, rather than providing it as a `Layer`.
|
|
149
|
+
*
|
|
121
150
|
* **Details**
|
|
122
151
|
*
|
|
123
152
|
* The client handles API key authentication via the `x-api-key` header, API versioning via the `anthropic-version`
|
|
124
153
|
* header, error mapping to the unified `AiError` type, and request/response transformations via `AnthropicConfig`. It
|
|
125
154
|
* requires an `HttpClient` in the context.
|
|
126
155
|
*
|
|
156
|
+
* @see {@link layer} for providing the client as a `Layer` from explicit options
|
|
157
|
+
* @see {@link layerConfig} for providing the client as a `Layer` with `Config`-based settings
|
|
158
|
+
*
|
|
127
159
|
* @category constructors
|
|
128
160
|
* @since 4.0.0
|
|
129
161
|
*/
|
|
@@ -131,6 +163,14 @@ export declare const make: (options: Options) => Effect.Effect<Service, never, H
|
|
|
131
163
|
/**
|
|
132
164
|
* Creates a layer for the Anthropic client with the given options.
|
|
133
165
|
*
|
|
166
|
+
* **When to use**
|
|
167
|
+
*
|
|
168
|
+
* Use when you already have explicit `Options` values, such as an API key or
|
|
169
|
+
* custom API URL, and want to provide `AnthropicClient` as a `Layer`.
|
|
170
|
+
*
|
|
171
|
+
* @see {@link make} for constructing the client service effectfully
|
|
172
|
+
* @see {@link layerConfig} for loading client settings from `Config`
|
|
173
|
+
*
|
|
134
174
|
* @category layers
|
|
135
175
|
* @since 4.0.0
|
|
136
176
|
*/
|
|
@@ -139,6 +179,15 @@ export declare const layer: (options: Options) => Layer.Layer<AnthropicClient, n
|
|
|
139
179
|
* Creates a layer for the Anthropic client, loading the requisite configuration
|
|
140
180
|
* via Effect's `Config` module.
|
|
141
181
|
*
|
|
182
|
+
* **When to use**
|
|
183
|
+
*
|
|
184
|
+
* Use when you want to provide the Anthropic client as a `Layer` with
|
|
185
|
+
* configuration loaded from Effect's `Config` module, such as from environment
|
|
186
|
+
* variables or a secrets provider.
|
|
187
|
+
*
|
|
188
|
+
* @see {@link layer} for providing the client from explicit options instead of `Config`
|
|
189
|
+
* @see {@link make} for constructing the client service effectfully
|
|
190
|
+
*
|
|
142
191
|
* @category layers
|
|
143
192
|
* @since 4.0.0
|
|
144
193
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnthropicClient.d.ts","sourceRoot":"","sources":["../src/AnthropicClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnthropicClient.d.ts","sourceRoot":"","sources":["../src/AnthropicClient.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAErC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,OAAO,MAAM,4BAA4B,CAAA;AAC1D,OAAO,KAAK,GAAG,MAAM,8BAA8B,CAAA;AAGnD,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,KAAK,eAAe,MAAM,sCAAsC,CAAA;AAC5E,OAAO,KAAK,iBAAiB,MAAM,wCAAwC,CAAA;AAC3E,OAAO,KAAK,KAAK,kBAAkB,MAAM,yCAAyC,CAAA;AAElF,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAO3C;;;;;;GAMG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,CAAA;IAE1C;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,CACtB,IAAI,SAA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9C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,GAAI,UAAU;IACpC;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,GAAG,SAAS,CAAA;IAElF;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IAEnD;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IAEvD;;;OAGG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU,KAAK,UAAU,CAAC,UAAU,CAAC,GAAG,SAAS,CAAA;CAClG,KAAG,KAAK,CAAC,KAAK,CAAC,eAAe,EAAE,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,UAAU,CAoBvE,CAAA"}
|
package/dist/AnthropicClient.js
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The `AnthropicClient` module defines the low-level Effect service used to
|
|
3
|
+
* call Anthropic's API. It wraps the generated Anthropic HTTP client with
|
|
4
|
+
* Effect layers, request defaults, authentication headers, API versioning,
|
|
5
|
+
* response decoding, and error mapping for Messages API calls.
|
|
3
6
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
7
|
+
* **Mental model**
|
|
8
|
+
*
|
|
9
|
+
* `HttpClient.HttpClient` provides the transport. {@link make} turns explicit
|
|
10
|
+
* {@link Options} into an {@link AnthropicClient} service, while {@link layer}
|
|
11
|
+
* and {@link layerConfig} provide that service as a layer. The service exposes
|
|
12
|
+
* the generated client for direct endpoint access plus handwritten helpers for
|
|
13
|
+
* regular and streaming message creation.
|
|
14
|
+
*
|
|
15
|
+
* **Common tasks**
|
|
16
|
+
*
|
|
17
|
+
* - Provide an authenticated Anthropic client from an API key and optional base
|
|
18
|
+
* URL
|
|
19
|
+
* - Load client settings from Effect `Config` with {@link layerConfig}
|
|
20
|
+
* - Apply HTTP client transformations for proxying, retries, instrumentation,
|
|
21
|
+
* or tests
|
|
22
|
+
* - Decode Anthropic server-sent event streams into typed message events
|
|
23
|
+
*
|
|
24
|
+
* **Gotchas**
|
|
25
|
+
*
|
|
26
|
+
* - `apiKey` is optional so proxied and test clients can provide
|
|
27
|
+
* authentication elsewhere.
|
|
28
|
+
* - `createMessageStream` filters Anthropic ping events and terminates the
|
|
29
|
+
* stream when a `message_stop` event is received.
|
|
30
|
+
* - The message helpers map transport, schema, and provider failures to the
|
|
31
|
+
* unified Effect AI error type.
|
|
6
32
|
*
|
|
7
33
|
* @since 4.0.0
|
|
8
34
|
*/
|
|
@@ -27,7 +53,16 @@ import * as Errors from "./internal/errors.js";
|
|
|
27
53
|
// Service Identifier
|
|
28
54
|
// =============================================================================
|
|
29
55
|
/**
|
|
30
|
-
* Service
|
|
56
|
+
* Service tag for the Anthropic client.
|
|
57
|
+
*
|
|
58
|
+
* **When to use**
|
|
59
|
+
*
|
|
60
|
+
* Use when accessing or providing the Anthropic client service through Effect's
|
|
61
|
+
* context.
|
|
62
|
+
*
|
|
63
|
+
* @see {@link make} for constructing an Anthropic client effectfully
|
|
64
|
+
* @see {@link layer} for providing a client from explicit options
|
|
65
|
+
* @see {@link layerConfig} for providing a client from `Config`
|
|
31
66
|
*
|
|
32
67
|
* @category services
|
|
33
68
|
* @since 4.0.0
|
|
@@ -42,12 +77,20 @@ const RedactedAnthropicHeaders = {
|
|
|
42
77
|
/**
|
|
43
78
|
* Creates an Anthropic client service with the given options.
|
|
44
79
|
*
|
|
80
|
+
* **When to use**
|
|
81
|
+
*
|
|
82
|
+
* Use when you have explicit configuration values and need an `Effect` that
|
|
83
|
+
* constructs the Anthropic client service, rather than providing it as a `Layer`.
|
|
84
|
+
*
|
|
45
85
|
* **Details**
|
|
46
86
|
*
|
|
47
87
|
* The client handles API key authentication via the `x-api-key` header, API versioning via the `anthropic-version`
|
|
48
88
|
* header, error mapping to the unified `AiError` type, and request/response transformations via `AnthropicConfig`. It
|
|
49
89
|
* requires an `HttpClient` in the context.
|
|
50
90
|
*
|
|
91
|
+
* @see {@link layer} for providing the client as a `Layer` from explicit options
|
|
92
|
+
* @see {@link layerConfig} for providing the client as a `Layer` with `Config`-based settings
|
|
93
|
+
*
|
|
51
94
|
* @category constructors
|
|
52
95
|
* @since 4.0.0
|
|
53
96
|
*/
|
|
@@ -115,6 +158,14 @@ export const make = /*#__PURE__*/Effect.fnUntraced(function* (options) {
|
|
|
115
158
|
/**
|
|
116
159
|
* Creates a layer for the Anthropic client with the given options.
|
|
117
160
|
*
|
|
161
|
+
* **When to use**
|
|
162
|
+
*
|
|
163
|
+
* Use when you already have explicit `Options` values, such as an API key or
|
|
164
|
+
* custom API URL, and want to provide `AnthropicClient` as a `Layer`.
|
|
165
|
+
*
|
|
166
|
+
* @see {@link make} for constructing the client service effectfully
|
|
167
|
+
* @see {@link layerConfig} for loading client settings from `Config`
|
|
168
|
+
*
|
|
118
169
|
* @category layers
|
|
119
170
|
* @since 4.0.0
|
|
120
171
|
*/
|
|
@@ -123,6 +174,15 @@ export const layer = options => Layer.effect(AnthropicClient, make(options));
|
|
|
123
174
|
* Creates a layer for the Anthropic client, loading the requisite configuration
|
|
124
175
|
* via Effect's `Config` module.
|
|
125
176
|
*
|
|
177
|
+
* **When to use**
|
|
178
|
+
*
|
|
179
|
+
* Use when you want to provide the Anthropic client as a `Layer` with
|
|
180
|
+
* configuration loaded from Effect's `Config` module, such as from environment
|
|
181
|
+
* variables or a secrets provider.
|
|
182
|
+
*
|
|
183
|
+
* @see {@link layer} for providing the client from explicit options instead of `Config`
|
|
184
|
+
* @see {@link make} for constructing the client service effectfully
|
|
185
|
+
*
|
|
126
186
|
* @category layers
|
|
127
187
|
* @since 4.0.0
|
|
128
188
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnthropicClient.js","names":["Array","Context","Effect","identity","Layer","Predicate","Redacted","Schema","Stream","Sse","Headers","HttpBody","HttpClient","HttpClientRequest","AnthropicConfig","Generated","Errors","AnthropicClient","Service","RedactedAnthropicHeaders","AnthropicApiKey","make","fnUntraced","options","baseClient","apiVersion","httpClient","pipe","mapRequest","request","prependUrl","apiUrl","isNotUndefined","apiKey","setHeader","value","acceptJson","transformClient","client","config","getOrUndefined","httpClientOk","filterStatusOk","streamRequest","schema","execute","map","response","stream","unwrap","decodeText","pipeThroughChannel","decodeSchema","createMessage","betaMessagesPost","includeResponse","catchTags","BetaMessagesPost4XX","error","fail","mapClientError","HttpClientError","mapHttpClientError","SchemaError","mapSchemaError","PingEvent","Struct","type","Literal","MessageEvent","Union","BetaMessageStartEvent","BetaMessageDeltaEvent","BetaMessageStopEvent","BetaContentBlockStartEvent","BetaContentBlockDeltaEvent","BetaContentBlockStopEvent","BetaErrorResponse","buildMessageStream","decodeDataSchema","takeUntil","event","data","filter","Retry","die","fromEffect","createMessageStream","post","headers","fromInput","params","undefined","body","jsonUnsafe","payload","catchTag","of","updateService","CurrentRedactedNames","appendAll","Object","values","layer","effect","layerConfig","gen"],"sources":["../src/AnthropicClient.ts"],"sourcesContent":[null],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"AnthropicClient.js","names":["Array","Context","Effect","identity","Layer","Predicate","Redacted","Schema","Stream","Sse","Headers","HttpBody","HttpClient","HttpClientRequest","AnthropicConfig","Generated","Errors","AnthropicClient","Service","RedactedAnthropicHeaders","AnthropicApiKey","make","fnUntraced","options","baseClient","apiVersion","httpClient","pipe","mapRequest","request","prependUrl","apiUrl","isNotUndefined","apiKey","setHeader","value","acceptJson","transformClient","client","config","getOrUndefined","httpClientOk","filterStatusOk","streamRequest","schema","execute","map","response","stream","unwrap","decodeText","pipeThroughChannel","decodeSchema","createMessage","betaMessagesPost","includeResponse","catchTags","BetaMessagesPost4XX","error","fail","mapClientError","HttpClientError","mapHttpClientError","SchemaError","mapSchemaError","PingEvent","Struct","type","Literal","MessageEvent","Union","BetaMessageStartEvent","BetaMessageDeltaEvent","BetaMessageStopEvent","BetaContentBlockStartEvent","BetaContentBlockDeltaEvent","BetaContentBlockStopEvent","BetaErrorResponse","buildMessageStream","decodeDataSchema","takeUntil","event","data","filter","Retry","die","fromEffect","createMessageStream","post","headers","fromInput","params","undefined","body","jsonUnsafe","payload","catchTag","of","updateService","CurrentRedactedNames","appendAll","Object","values","layer","effect","layerConfig","gen"],"sources":["../src/AnthropicClient.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,KAAKA,KAAK,MAAM,cAAc;AAErC,OAAO,KAAKC,OAAO,MAAM,gBAAgB;AACzC,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,OAAO,KAAKC,KAAK,MAAM,cAAc;AACrC,OAAO,KAAKC,SAAS,MAAM,kBAAkB;AAC7C,OAAO,KAAKC,QAAQ,MAAM,iBAAiB;AAC3C,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,MAAM,MAAM,eAAe;AAEvC,OAAO,KAAKC,GAAG,MAAM,8BAA8B;AACnD,OAAO,KAAKC,OAAO,MAAM,8BAA8B;AACvD,OAAO,KAAKC,QAAQ,MAAM,+BAA+B;AACzD,OAAO,KAAKC,UAAU,MAAM,iCAAiC;AAE7D,OAAO,KAAKC,iBAAiB,MAAM,wCAAwC;AAE3E,SAASC,eAAe,QAAQ,sBAAsB;AACtD,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AA2F9C;AACA;AACA;AAEA;;;;;;;;;;;;;;;AAeA,OAAM,MAAOC,eAAgB,sBAAQhB,OAAO,CAACiB,OAAO,EAA4B,CAC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2B,cAAc,CAACT,OAAO,EAAEQ,MAAM,CAAC,GACpD,OAAOR,OAAO,CAACQ,MAAM,GACvB6D,SAAS;EACX,MAAMnE,UAAU,GAAGpB,SAAS,CAAC2B,cAAc,CAACT,OAAO,EAAEE,UAAU,CAAC,GAC5D,OAAOF,OAAO,CAACE,UAAU,GAC3BmE,SAAS;EACX,OAAO,OAAOvE,IAAI,CAAC;IACjBY,MAAM;IACNF,MAAM;IACNN,UAAU;IACVY,eAAe,EAAEd,OAAO,EAAEc;GAC3B,CAAC;AACJ,CAAC,CAAC,CACH","ignoreList":[]}
|
|
@@ -26,6 +26,13 @@ declare const AnthropicConfig_base: Context.ServiceClass<AnthropicConfig, "@effe
|
|
|
26
26
|
/**
|
|
27
27
|
* Service tag for Anthropic client configuration overrides, such as transformations applied to the generated HTTP client.
|
|
28
28
|
*
|
|
29
|
+
* **When to use**
|
|
30
|
+
*
|
|
31
|
+
* Use when a layer or integration needs to provide or read Anthropic client
|
|
32
|
+
* configuration through Effect's context.
|
|
33
|
+
*
|
|
34
|
+
* @see {@link withClientTransform} for scoping an HTTP client transformation
|
|
35
|
+
*
|
|
29
36
|
* @category services
|
|
30
37
|
* @since 4.0.0
|
|
31
38
|
*/
|
|
@@ -60,6 +67,11 @@ export declare namespace AnthropicConfig {
|
|
|
60
67
|
/**
|
|
61
68
|
* Runs an effect with an `AnthropicConfig` override that transforms the underlying `HttpClient` used by generated Anthropic requests.
|
|
62
69
|
*
|
|
70
|
+
* **When to use**
|
|
71
|
+
*
|
|
72
|
+
* Use when you need to apply a temporary `HttpClient` transformation, such as adding middleware or logging, to a
|
|
73
|
+
* specific scope of an effectful program.
|
|
74
|
+
*
|
|
63
75
|
* @category configuration
|
|
64
76
|
* @since 4.0.0
|
|
65
77
|
*/
|
|
@@ -67,6 +79,11 @@ export declare const withClientTransform: {
|
|
|
67
79
|
/**
|
|
68
80
|
* Runs an effect with an `AnthropicConfig` override that transforms the underlying `HttpClient` used by generated Anthropic requests.
|
|
69
81
|
*
|
|
82
|
+
* **When to use**
|
|
83
|
+
*
|
|
84
|
+
* Use when you need to apply a temporary `HttpClient` transformation, such as adding middleware or logging, to a
|
|
85
|
+
* specific scope of an effectful program.
|
|
86
|
+
*
|
|
70
87
|
* @category configuration
|
|
71
88
|
* @since 4.0.0
|
|
72
89
|
*/
|
|
@@ -74,6 +91,11 @@ export declare const withClientTransform: {
|
|
|
74
91
|
/**
|
|
75
92
|
* Runs an effect with an `AnthropicConfig` override that transforms the underlying `HttpClient` used by generated Anthropic requests.
|
|
76
93
|
*
|
|
94
|
+
* **When to use**
|
|
95
|
+
*
|
|
96
|
+
* Use when you need to apply a temporary `HttpClient` transformation, such as adding middleware or logging, to a
|
|
97
|
+
* specific scope of an effectful program.
|
|
98
|
+
*
|
|
77
99
|
* @category configuration
|
|
78
100
|
* @since 4.0.0
|
|
79
101
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnthropicConfig.d.ts","sourceRoot":"","sources":["../src/AnthropicConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;;AAEjE
|
|
1
|
+
{"version":3,"file":"AnthropicConfig.d.ts","sourceRoot":"","sources":["../src/AnthropicConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;;AAEjE;;;;;;;;;;;;GAYG;AACH,qBAAa,eAAgB,SAAQ,oBAGM;IACzC;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,OAAO,GAAG,SAAS,CAAC,CAGxF;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC;;;;;;;;;OASG;IACH,UAAiB,OAAO;QACtB,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,UAAU,KAAK,UAAU,CAAC,GAAG,SAAS,CAAA;KAC5E;CACF;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,EAAE;IAChC;;;;;;;;;;OAUG;IACH,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IAClH;;;;;;;;;;OAUG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACN,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC5B,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,UAAU,GAC5C,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CAQvB,CAAA"}
|
package/dist/AnthropicConfig.js
CHANGED
|
@@ -25,6 +25,13 @@ import { dual } from "effect/Function";
|
|
|
25
25
|
/**
|
|
26
26
|
* Service tag for Anthropic client configuration overrides, such as transformations applied to the generated HTTP client.
|
|
27
27
|
*
|
|
28
|
+
* **When to use**
|
|
29
|
+
*
|
|
30
|
+
* Use when a layer or integration needs to provide or read Anthropic client
|
|
31
|
+
* configuration through Effect's context.
|
|
32
|
+
*
|
|
33
|
+
* @see {@link withClientTransform} for scoping an HTTP client transformation
|
|
34
|
+
*
|
|
28
35
|
* @category services
|
|
29
36
|
* @since 4.0.0
|
|
30
37
|
*/
|
|
@@ -39,6 +46,11 @@ export class AnthropicConfig extends /*#__PURE__*/Context.Service()("@effect/ai-
|
|
|
39
46
|
/**
|
|
40
47
|
* Runs an effect with an `AnthropicConfig` override that transforms the underlying `HttpClient` used by generated Anthropic requests.
|
|
41
48
|
*
|
|
49
|
+
* **When to use**
|
|
50
|
+
*
|
|
51
|
+
* Use when you need to apply a temporary `HttpClient` transformation, such as adding middleware or logging, to a
|
|
52
|
+
* specific scope of an effectful program.
|
|
53
|
+
*
|
|
42
54
|
* @category configuration
|
|
43
55
|
* @since 4.0.0
|
|
44
56
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnthropicConfig.js","names":["Context","Effect","dual","AnthropicConfig","Service","getOrUndefined","map","context","services","mapUnsafe","get","key","withClientTransform","self","transformClient","flatMap","config","provideService"],"sources":["../src/AnthropicConfig.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,KAAKA,OAAO,MAAM,gBAAgB;AACzC,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,SAASC,IAAI,QAAQ,iBAAiB;AAGtC
|
|
1
|
+
{"version":3,"file":"AnthropicConfig.js","names":["Context","Effect","dual","AnthropicConfig","Service","getOrUndefined","map","context","services","mapUnsafe","get","key","withClientTransform","self","transformClient","flatMap","config","provideService"],"sources":["../src/AnthropicConfig.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,KAAKA,OAAO,MAAM,gBAAgB;AACzC,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,SAASC,IAAI,QAAQ,iBAAiB;AAGtC;;;;;;;;;;;;;AAaA,OAAM,MAAOC,eAAgB,sBAAQH,OAAO,CAACI,OAAO,EAGjD,CAAC,sCAAsC,CAAC;EACzC;;;;;EAKA,OAAgBC,cAAc,gBAA8DJ,MAAM,CAACK,GAAG,cACpGL,MAAM,CAACM,OAAO,EAAS,EACtBC,QAAQ,IAAKA,QAAQ,CAACC,SAAS,CAACC,GAAG,CAACP,eAAe,CAACQ,GAAG,CAAC,CAC1D;;AAwBH;;;;;;;;;;;AAWA,OAAO,MAAMC,mBAAmB,gBA4B5BV,IAAI,CAAC,CAAC,EAAE,CACVW,IAA4B,EAC5BC,eAAmD,KAEnDb,MAAM,CAACc,OAAO,CACZZ,eAAe,CAACE,cAAc,EAC7BW,MAAM,IAAKf,MAAM,CAACgB,cAAc,CAACJ,IAAI,EAAEV,eAAe,EAAE;EAAE,GAAGa,MAAM;EAAEF;AAAe,CAAE,CAAC,CACzF,CAAC","ignoreList":[]}
|
package/dist/AnthropicError.d.ts
CHANGED
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
/**
|
|
10
10
|
* Anthropic-specific error metadata fields.
|
|
11
11
|
*
|
|
12
|
+
* **Details**
|
|
13
|
+
*
|
|
14
|
+
* Contains the Anthropic error type and request identifier copied from provider
|
|
15
|
+
* error responses when available. Either field may be `null` when Anthropic
|
|
16
|
+
* does not include it or the response cannot be decoded.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link AnthropicRateLimitMetadata} for rate-limit responses that also include parsed Anthropic rate-limit headers
|
|
19
|
+
*
|
|
12
20
|
* @category models
|
|
13
21
|
* @since 4.0.0
|
|
14
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnthropicError.d.ts","sourceRoot":"","sources":["../src/AnthropicError.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH
|
|
1
|
+
{"version":3,"file":"AnthropicError.d.ts","sourceRoot":"","sources":["../src/AnthropicError.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC;;OAEG;I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,CAAA;KACnD;IAED;;;;;;;;;OASG;IACH,UAAiB,0BAA0B;QACzC,QAAQ,CAAC,SAAS,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAA;KACnD;IAED;;;;;;;;;OASG;IACH,UAAiB,6BAA6B;QAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAA;KACnD;IAED;;;;;;;;;OASG;IACH,UAAiB,8BAA8B;QAC7C,QAAQ,CAAC,SAAS,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAA;KACnD;IAED;;;;;;;;;OASG;IACH,UAAiB,oBAAoB;QACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAA;KACnD;CACF"}
|
|
@@ -7,7 +7,13 @@ import * as AiModel from "effect/unstable/ai/Model";
|
|
|
7
7
|
import { AnthropicClient } from "./AnthropicClient.ts";
|
|
8
8
|
import type * as Generated from "./Generated.ts";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Known Anthropic Claude model identifiers exposed by the generated Anthropic schema.
|
|
11
|
+
*
|
|
12
|
+
* **Details**
|
|
13
|
+
*
|
|
14
|
+
* The Anthropic language model constructors accept `Model` values and custom
|
|
15
|
+
* string model ids, so this type is best used for autocomplete and type checking
|
|
16
|
+
* of known Claude ids.
|
|
11
17
|
*
|
|
12
18
|
* @category models
|
|
13
19
|
* @since 4.0.0
|
|
@@ -160,7 +166,12 @@ declare const Config_base: Context.ServiceClass<Config, "@effect/ai-anthropic/An
|
|
|
160
166
|
readonly strictJsonSchema?: boolean | undefined | undefined;
|
|
161
167
|
}>;
|
|
162
168
|
/**
|
|
163
|
-
*
|
|
169
|
+
* Context service for Anthropic language model configuration.
|
|
170
|
+
*
|
|
171
|
+
* **When to use**
|
|
172
|
+
*
|
|
173
|
+
* Use when you need to provide or override Anthropic model configuration on a
|
|
174
|
+
* per-request basis via `Context.Service`.
|
|
164
175
|
*
|
|
165
176
|
* **Details**
|
|
166
177
|
*
|
|
@@ -254,7 +265,7 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
254
265
|
*
|
|
255
266
|
* **When to use**
|
|
256
267
|
*
|
|
257
|
-
* Use these options to control how text blocks are sent to Anthropic.
|
|
268
|
+
* Use when you use these options to control how text blocks are sent to Anthropic.
|
|
258
269
|
*
|
|
259
270
|
* @category request
|
|
260
271
|
* @since 4.0.0
|
|
@@ -333,7 +344,7 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
333
344
|
*
|
|
334
345
|
* **When to use**
|
|
335
346
|
*
|
|
336
|
-
*
|
|
347
|
+
* Use when storing additional document metadata as text or stringified JSON.
|
|
337
348
|
*/
|
|
338
349
|
readonly documentContext?: string | null;
|
|
339
350
|
} | null;
|
|
@@ -666,14 +677,36 @@ declare module "effect/unstable/ai/Response" {
|
|
|
666
677
|
}
|
|
667
678
|
}
|
|
668
679
|
/**
|
|
669
|
-
* Creates an Anthropic
|
|
680
|
+
* Creates an Anthropic model descriptor that can be provided with `Effect.provide`.
|
|
681
|
+
*
|
|
682
|
+
* **When to use**
|
|
683
|
+
*
|
|
684
|
+
* Use when you want an Anthropic Claude model value that carries provider and
|
|
685
|
+
* model metadata and can be supplied directly to an Effect program.
|
|
686
|
+
*
|
|
687
|
+
* @see {@link layer} for creating a `LanguageModel.LanguageModel` layer directly
|
|
688
|
+
* @see {@link make} for constructing the language model service effectfully
|
|
670
689
|
*
|
|
671
690
|
* @category constructors
|
|
672
691
|
* @since 4.0.0
|
|
673
692
|
*/
|
|
674
693
|
export declare const model: (model: (string & {}) | Model, config?: Omit<typeof Config.Service, "model">) => AiModel.Model<"anthropic", LanguageModel.LanguageModel, AnthropicClient>;
|
|
675
694
|
/**
|
|
676
|
-
* Creates an Anthropic
|
|
695
|
+
* Creates an Anthropic `LanguageModel` service from a model identifier and optional request defaults.
|
|
696
|
+
*
|
|
697
|
+
* **When to use**
|
|
698
|
+
*
|
|
699
|
+
* Use when an Effect needs to construct a `LanguageModel.Service` value backed
|
|
700
|
+
* by `AnthropicClient`.
|
|
701
|
+
*
|
|
702
|
+
* **Details**
|
|
703
|
+
*
|
|
704
|
+
* The returned effect requires `AnthropicClient`. Request defaults from the
|
|
705
|
+
* `config` option are merged with any `Config` service in the context, with
|
|
706
|
+
* context values taking precedence.
|
|
707
|
+
*
|
|
708
|
+
* @see {@link layer} for providing the service as a `Layer`
|
|
709
|
+
* @see {@link model} for creating a model descriptor for `AiModel.provide`
|
|
677
710
|
*
|
|
678
711
|
* @category constructors
|
|
679
712
|
* @since 4.0.0
|
|
@@ -685,6 +718,15 @@ export declare const make: (args_0: {
|
|
|
685
718
|
/**
|
|
686
719
|
* Creates a layer for the Anthropic language model.
|
|
687
720
|
*
|
|
721
|
+
* **When to use**
|
|
722
|
+
*
|
|
723
|
+
* Use when composing application layers and you want Anthropic to satisfy
|
|
724
|
+
* `LanguageModel.LanguageModel` while supplying `AnthropicClient` from another
|
|
725
|
+
* layer.
|
|
726
|
+
*
|
|
727
|
+
* @see {@link make} for constructing the language model service effectfully
|
|
728
|
+
* @see {@link model} for creating a model service directly
|
|
729
|
+
*
|
|
688
730
|
* @category layers
|
|
689
731
|
* @since 4.0.0
|
|
690
732
|
*/
|
|
@@ -695,6 +737,20 @@ export declare const layer: (options: {
|
|
|
695
737
|
/**
|
|
696
738
|
* Provides config overrides for Anthropic language model operations.
|
|
697
739
|
*
|
|
740
|
+
* **When to use**
|
|
741
|
+
*
|
|
742
|
+
* Use to apply Anthropic request configuration to one effect without changing
|
|
743
|
+
* the model's default configuration.
|
|
744
|
+
*
|
|
745
|
+
* **Details**
|
|
746
|
+
*
|
|
747
|
+
* The overrides are merged with any existing `Config` service for the duration
|
|
748
|
+
* of the supplied effect. Fields in `overrides` take precedence over existing
|
|
749
|
+
* config, and the helper supports both `effect.pipe(withConfigOverride(overrides))`
|
|
750
|
+
* and `withConfigOverride(effect, overrides)`.
|
|
751
|
+
*
|
|
752
|
+
* @see {@link Config} for available Anthropic request configuration fields
|
|
753
|
+
*
|
|
698
754
|
* @category configuration
|
|
699
755
|
* @since 4.0.0
|
|
700
756
|
*/
|
|
@@ -702,6 +758,20 @@ export declare const withConfigOverride: {
|
|
|
702
758
|
/**
|
|
703
759
|
* Provides config overrides for Anthropic language model operations.
|
|
704
760
|
*
|
|
761
|
+
* **When to use**
|
|
762
|
+
*
|
|
763
|
+
* Use to apply Anthropic request configuration to one effect without changing
|
|
764
|
+
* the model's default configuration.
|
|
765
|
+
*
|
|
766
|
+
* **Details**
|
|
767
|
+
*
|
|
768
|
+
* The overrides are merged with any existing `Config` service for the duration
|
|
769
|
+
* of the supplied effect. Fields in `overrides` take precedence over existing
|
|
770
|
+
* config, and the helper supports both `effect.pipe(withConfigOverride(overrides))`
|
|
771
|
+
* and `withConfigOverride(effect, overrides)`.
|
|
772
|
+
*
|
|
773
|
+
* @see {@link Config} for available Anthropic request configuration fields
|
|
774
|
+
*
|
|
705
775
|
* @category configuration
|
|
706
776
|
* @since 4.0.0
|
|
707
777
|
*/
|
|
@@ -709,13 +779,41 @@ export declare const withConfigOverride: {
|
|
|
709
779
|
/**
|
|
710
780
|
* Provides config overrides for Anthropic language model operations.
|
|
711
781
|
*
|
|
782
|
+
* **When to use**
|
|
783
|
+
*
|
|
784
|
+
* Use to apply Anthropic request configuration to one effect without changing
|
|
785
|
+
* the model's default configuration.
|
|
786
|
+
*
|
|
787
|
+
* **Details**
|
|
788
|
+
*
|
|
789
|
+
* The overrides are merged with any existing `Config` service for the duration
|
|
790
|
+
* of the supplied effect. Fields in `overrides` take precedence over existing
|
|
791
|
+
* config, and the helper supports both `effect.pipe(withConfigOverride(overrides))`
|
|
792
|
+
* and `withConfigOverride(effect, overrides)`.
|
|
793
|
+
*
|
|
794
|
+
* @see {@link Config} for available Anthropic request configuration fields
|
|
795
|
+
*
|
|
712
796
|
* @category configuration
|
|
713
797
|
* @since 4.0.0
|
|
714
798
|
*/
|
|
715
799
|
<A, E, R>(self: Effect.Effect<A, E, R>, overrides: typeof Config.Service): Effect.Effect<A, E, Exclude<R, Config>>;
|
|
716
800
|
};
|
|
717
801
|
/**
|
|
718
|
-
*
|
|
802
|
+
* Encoded Anthropic custom tool definition that can be sent in a Messages API request.
|
|
803
|
+
*
|
|
804
|
+
* **When to use**
|
|
805
|
+
*
|
|
806
|
+
* Use when you need to type or inspect the provider-specific request payload for
|
|
807
|
+
* a custom Anthropic tool.
|
|
808
|
+
*
|
|
809
|
+
* **Details**
|
|
810
|
+
*
|
|
811
|
+
* This type aliases the encoded `Generated.BetaTool` schema used for Effect
|
|
812
|
+
* user-defined and dynamic tools after conversion. It contains the tool `name`,
|
|
813
|
+
* optional `description`, and `input_schema`, plus Anthropic-specific fields
|
|
814
|
+
* such as `strict` and `cache_control`.
|
|
815
|
+
*
|
|
816
|
+
* @see {@link AnthropicProviderDefinedTool} for the request shape used by Anthropic built-in provider tools
|
|
719
817
|
*
|
|
720
818
|
* @category tools
|
|
721
819
|
* @since 4.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnthropicLanguageModel.d.ts","sourceRoot":"","sources":["../src/AnthropicLanguageModel.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAIrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAQvC,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAA;AACjE,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AAMnD,OAAO,EAAE,eAAe,EAA2B,MAAM,sBAAsB,CAAA;AAG/E,OAAO,KAAK,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAGhD
|
|
1
|
+
{"version":3,"file":"AnthropicLanguageModel.d.ts","sourceRoot":"","sources":["../src/AnthropicLanguageModel.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA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