AnthropicLLMConfigEntry - AG2
AnthropicLLMConfigEntry
autogen.oai.anthropic.AnthropicLLMConfigEntry
Bases: LLMConfigEntry
api_type
api_type = 'anthropic'
timeout
timeout = Field(default=None, ge=1)
temperature
temperature = Field(default=1.0, ge=0.0, le=1.0)
top_k
top_k = Field(default=None, ge=1)
top_p
top_p = Field(default=None, ge=0.0, le=1.0)
stop_sequences
stop_sequences = None
stream
stream = False
max_tokens
max_tokens = Field(default=4096, ge=1)
price
price = Field(default=None, min_length=2, max_length=2)
tool_choice
tool_choice = None
thinking
thinking = None
gcp_project_id
gcp_project_id = None
gcp_region
gcp_region = None
gcp_auth_token
gcp_auth_token = None
model
model = Field(..., min_length=1)
api_key
api_key = None
api_version
api_version = None
base_url
base_url = None
voice
voice = None
model_client_cls
model_client_cls = None
http_client
http_client = None
response_format
response_format = None
default_headers
default_headers = None
tags
tags = Field(default_factory=list)
model_config
model_config = ConfigDict(extra='forbid', arbitrary_types_allowed=True)
create_client
create_client()
check_base_url
check_base_url(v, info)
serialize_base_url
serialize_base_url(v)
serialize_api_key
serialize_api_key(v)
model_dump
model_dump(*args, exclude_none=True, **kwargs)
model_dump_json
model_dump_json(*args, exclude_none=True, **kwargs)
get
get(key, default=None)
items
items()
keys
keys()
values
values()