AnthropicAdapter
Category: Providers
Source: anthropic_adapter.dart
Adapter that talks to the Anthropic Messages API via [AnthropicClient].
Classes
AnthropicAdapter
Constructor
dart
AnthropicAdapter({
this._requestClientFactory,
this.promptCacheEnabled = true,
})Properties
| Property | Type | Description |
|---|---|---|
promptCacheEnabled | bool | When true, the [AnthropicClient]s this adapter creates send the top-level cache_control: {type: "ephemeral"} directive that engages auto-caching. See [GlueConfig.anthropicPromptCache] for the resolution path. |
adapterId | String get | |
adapterId | String get |
Methods
ProviderHealth validate(ResolvedProvider provider)
`LlmClient createClient({
required ResolvedProvider provider,
required ResolvedModel model,
required String systemPrompt,
})`