@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/src/index.ts CHANGED
@@ -5,96 +5,31 @@
5
5
  // @barrel: Auto-generated exports. Do not edit manually.
6
6
 
7
7
  /**
8
- * Anthropic Client module for interacting with Anthropic's API.
9
- *
10
- * Provides a type-safe, Effect-based client for Anthropic operations including
11
- * messages and streaming responses.
12
- *
13
8
  * @since 4.0.0
14
9
  */
15
10
  export * as AnthropicClient from "./AnthropicClient.ts"
16
11
 
17
12
  /**
18
- * The `AnthropicConfig` module provides contextual configuration for the
19
- * Anthropic AI provider integration. It is used to customize the generated
20
- * Anthropic HTTP client without changing individual request code.
21
- *
22
- * **Common tasks**
23
- *
24
- * - Provide a shared `HttpClient` transformation for Anthropic requests
25
- * - Add provider-specific concerns such as request instrumentation, proxying,
26
- * retries, or header manipulation
27
- * - Scope a client transformation to a single effect with {@link withClientTransform}
28
- *
29
- * **Gotchas**
30
- *
31
- * - Configuration is read from the Effect context, so overrides only apply to
32
- * effects run inside the configured scope
33
- * - `withClientTransform` replaces the current `transformClient` value while
34
- * preserving any other Anthropic configuration fields
35
- *
36
13
  * @since 4.0.0
37
14
  */
38
15
  export * as AnthropicConfig from "./AnthropicConfig.ts"
39
16
 
40
17
  /**
41
- * Anthropic error metadata augmentation.
42
- *
43
- * Provides Anthropic-specific metadata fields for AI error types through module
44
- * augmentation, enabling typed access to Anthropic error details.
45
- *
46
18
  * @since 4.0.0
47
19
  */
48
20
  export * as AnthropicError from "./AnthropicError.ts"
49
21
 
50
22
  /**
51
- * The `AnthropicLanguageModel` module provides the Anthropic implementation of
52
- * Effect AI's `LanguageModel` service. It turns Effect AI prompts, tools, files,
53
- * reasoning parts, and provider options into Anthropic Messages API requests,
54
- * and converts Anthropic responses and streams back into Effect AI response
55
- * parts with Anthropic-specific metadata.
56
- *
57
- * **When to use**
58
- *
59
- * - Create an Anthropic-backed model with {@link model}
60
- * - Build or provide a `LanguageModel.LanguageModel` layer with {@link layer}
61
- * or {@link make}
62
- * - Supply default request options through {@link Config}
63
- * - Override configuration for a scoped operation with {@link withConfigOverride}
64
- * - Attach Anthropic provider options for prompt caching, document citations,
65
- * reasoning signatures, MCP metadata, and server-side tools
66
- *
67
- * **Gotchas**
68
- *
69
- * - Prompt files are translated to Anthropic image or document blocks; only the
70
- * supported media types can be sent to the provider.
71
- * - Structured output support depends on the selected Claude model, so this
72
- * module may use Anthropic's native structured output or fall back to a JSON
73
- * response tool.
74
- * - Some features require Anthropic beta headers, which are added
75
- * automatically from the selected tools, files, and model capabilities.
76
- *
77
23
  * @since 4.0.0
78
24
  */
79
25
  export * as AnthropicLanguageModel from "./AnthropicLanguageModel.ts"
80
26
 
81
27
  /**
82
- * Anthropic telemetry attributes for OpenTelemetry integration.
83
- *
84
- * Provides Anthropic-specific GenAI telemetry attributes following OpenTelemetry
85
- * semantic conventions, extending the base GenAI attributes with Anthropic-specific
86
- * request and response metadata.
87
- *
88
28
  * @since 4.0.0
89
29
  */
90
30
  export * as AnthropicTelemetry from "./AnthropicTelemetry.ts"
91
31
 
92
32
  /**
93
- * Anthropic provider-defined tools for use with the LanguageModel.
94
- *
95
- * Provides tools that are natively supported by Anthropic's API, including
96
- * Bash, Code Execution, Computer Use, Memory, and Text Editor functionality.
97
- *
98
33
  * @since 4.0.0
99
34
  */
100
35
  export * as AnthropicTool from "./AnthropicTool.ts"