Uses of Class
org.springframework.ai.anthropic.AnthropicChatModel.Builder
Packages that use AnthropicChatModel.Builder
Package
Description
Spring AI integration with Anthropic's Claude models using the official
Anthropic Java SDK.
-
Uses of AnthropicChatModel.Builder in org.springframework.ai.anthropic
Methods in org.springframework.ai.anthropic that return AnthropicChatModel.BuilderModifier and TypeMethodDescriptionAnthropicChatModel.Builder.anthropicClient(com.anthropic.client.AnthropicClient anthropicClient) Sets the synchronous Anthropic client.AnthropicChatModel.Builder.anthropicClientAsync(com.anthropic.client.AnthropicClientAsync anthropicClientAsync) Sets the asynchronous Anthropic client.static AnthropicChatModel.BuilderAnthropicChatModel.builder()Creates a new builder forAnthropicChatModel.AnthropicChatModel.Builder.dispatcherExecutor(@Nullable ExecutorService dispatcherExecutor) Sets the executor used by the underlying OkHttp dispatcher for both the sync and async clients.AnthropicChatModel.Builder.httpClientBuilderCustomizer(AnthropicHttpClientBuilderCustomizer customizer) Registers anAnthropicHttpClientBuilderCustomizerthat mutates the underlying OkHttp client builder before the Anthropic clients are constructed.AnthropicChatModel.Builder.httpClientBuilderCustomizers(List<AnthropicHttpClientBuilderCustomizer> customizers) Sets the full list ofcustomizersto apply, replacing any customizers registered earlier on this builder.AnthropicChatModel.Builder.meterRegistry(@Nullable io.micrometer.core.instrument.MeterRegistry meterRegistry) Sets the meter registry used to bind OkHttp connection-pool gauges (active/idle connections).AnthropicChatModel.Builder.observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) Sets the observation registry for metrics and tracing.AnthropicChatModel.Builder.options(AnthropicChatOptions options) Sets the chat options.AnthropicChatModel.Builder.toolCallingManager(org.springframework.ai.model.tool.ToolCallingManager toolCallingManager) Deprecated, for removal: This API element is subject to removal in a future version.
AnthropicChatModelis superseded byToolCallingAdvisorused viaChatClient.