AnthropicLLMConfigEntry - AG2

AnthropicLLMConfigEntry

autogen.oai.anthropic.AnthropicLLMConfigEntry

Bases: LLMConfigEntry

api\_type

api_type = 'anthropic'

max\_tokens

max_tokens = Field(default=4096, ge=1)

temperature

temperature = Field(default=None, ge=0.0, le=1.0)

top\_p

top_p = Field(default=None, ge=0.0, le=1.0)

timeout

timeout = Field(default=None, ge=1)

top\_k

top_k = Field(default=None, ge=1)

stop\_sequences

stop_sequences = None

stream

stream = False

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

http\_client

http_client = None

voice

voice = None

model\_client\_cls

model_client_cls = None

response\_format

response_format = None

default\_headers

default_headers = None

tags

tags = Field(default_factory=list)

model\_config

model_config = ConfigDict(extra='allow', arbitrary_types_allowed=True)

create\_client

create_client()

apply\_application\_config

apply_application_config(application_config)

Apply application level configurations.

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()