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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the bearer token for gateway authentication.booleanbooleanisStream()voidvoidsetAuthToken(String authToken) Sets the bearer token for gateway authentication.voidsetBaseUrl(String baseUrl) voidsetEnabled(boolean enabled) voidsetModelName(String modelName) voidsetStream(boolean stream)
-
Constructor Details
-
AnthropicProperties
public AnthropicProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getApiKey
-
setApiKey
-
getAuthToken
Returns the bearer token for gateway authentication.- Returns:
- the token without the
Bearerprefix, or null if unset
-
setAuthToken
Sets the bearer token for gateway authentication.- Parameters:
authToken- the token without theBearerprefix
-
getBaseUrl
-
setBaseUrl
-
getModelName
-
setModelName
-
isStream
public boolean isStream() -
setStream
public void setStream(boolean stream)
-