Class AbstractAnthropicOptions

java.lang.Object
org.springframework.ai.anthropic.AbstractAnthropicOptions
Direct Known Subclasses:
AnthropicChatOptions, AnthropicChatProperties, AnthropicConnectionProperties

public class AbstractAnthropicOptions extends Object
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 Details

    • AbstractAnthropicOptions

      public AbstractAnthropicOptions()
  • Method Details

    • getBaseUrl

      public @Nullable String getBaseUrl()
    • setBaseUrl

      public void setBaseUrl(@Nullable String baseUrl)
    • getApiKey

      public @Nullable String getApiKey()
    • setApiKey

      public void setApiKey(@Nullable String apiKey)
    • getModel

      public @Nullable String getModel()
    • setModel

      public void setModel(@Nullable String model)
    • getTimeout

      public @Nullable Duration getTimeout()
    • setTimeout

      public void setTimeout(@Nullable Duration timeout)
    • getMaxRetries

      public @Nullable Integer getMaxRetries()
    • setMaxRetries

      public void setMaxRetries(@Nullable Integer maxRetries)
    • getProxy

      public @Nullable Proxy getProxy()
    • setProxy

      public void setProxy(@Nullable Proxy proxy)
    • getCustomHeaders

      public Map<String,String> getCustomHeaders()
    • setCustomHeaders

      public void setCustomHeaders(Map<String,String> customHeaders)