Package org.springframework.ai.anthropic
Class AbstractAnthropicOptions
java.lang.Object
org.springframework.ai.anthropic.AbstractAnthropicOptions
- Direct Known Subclasses:
AnthropicChatOptions,AnthropicChatProperties,AnthropicConnectionProperties
Base class for common Anthropic SDK configuration options, extended by
AnthropicChatOptions.
Supports environment variables ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL
for configuration.
- Since:
- 2.0.0
- Author:
- Soby Chacko
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String@Nullable String@Nullable Integer@Nullable StringgetModel()@Nullable ProxygetProxy()@Nullable DurationvoidvoidsetBaseUrl(@Nullable String baseUrl) voidsetCustomHeaders(Map<String, String> customHeaders) voidsetMaxRetries(@Nullable Integer maxRetries) voidvoidvoidsetTimeout(@Nullable Duration timeout)
-
Constructor Details
-
AbstractAnthropicOptions
public AbstractAnthropicOptions()
-
-
Method Details
-
getBaseUrl
-
setBaseUrl
-
getApiKey
-
setApiKey
-
getModel
-
setModel
-
getTimeout
-
setTimeout
-
getMaxRetries
-
setMaxRetries
-
getProxy
-
setProxy
-
getCustomHeaders
-
setCustomHeaders
-