Class AnthropicProperties

java.lang.Object
io.agentscope.spring.boot.anthropic.AnthropicProperties

@ConfigurationProperties(prefix="agentscope.anthropic") public class AnthropicProperties extends Object
Anthropic provider specific settings.

Example configuration:


 agentscope:
   model:
     provider: anthropic
   anthropic:
     enabled: true
     api-key: ${ANTHROPIC_API_KEY}
     model-name: claude-sonnet-4.5
     # base-url: https://api.anthropic.com # optional
     stream: true
 
  • Constructor Details

    • AnthropicProperties

      public AnthropicProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getApiKey

      public String getApiKey()
    • setApiKey

      public void setApiKey(String apiKey)
    • getAuthToken

      public String getAuthToken()
      Returns the bearer token for gateway authentication.
      Returns:
      the token without the Bearer prefix, or null if unset
    • setAuthToken

      public void setAuthToken(String authToken)
      Sets the bearer token for gateway authentication.
      Parameters:
      authToken - the token without the Bearer prefix
    • getBaseUrl

      public String getBaseUrl()
    • setBaseUrl

      public void setBaseUrl(String baseUrl)
    • getModelName

      public String getModelName()
    • setModelName

      public void setModelName(String modelName)
    • isStream

      public boolean isStream()
    • setStream

      public void setStream(boolean stream)