llm_config
autogen.llm_config.LLMConfigEntry
LLMConfigEntry
!!! abstract “Usage Documentation” Models
A base class for creating Pydantic models.
Name | Description |
---|---|
**data | Type: Any |
Class Attributes
api_key
api_type
api_version
base_url
default_headers
http_client
max_tokens
model
model_client_cls
model_config
response_format
tags
voice
Static Methods
check_base_url
Name | Description |
---|---|
v | Type: Any |
info | Type: pydantic_core.core_schema.ValidationInfo |
Instance Methods
create_client
get
Name | Description |
---|---|
key | Type: str |
default | Type: Any | None Default: None |
items
keys
model_dump
!!! abstract “Usage Documentation”
model_dump
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
Name | Description |
---|---|
*args | Type: Any |
exclude_none | Whether to exclude fields that have a value of None .Type: bool Default: True |
**kwargs | Type: Any |
Type | Description |
---|---|
dict[str, typing.Any] | A dictionary representation of the model. |
model_dump_json
!!! abstract “Usage Documentation”
model_dump_json
Generates a JSON representation of the model using Pydantic’s to_json
method.
Name | Description |
---|---|
*args | Type: Any |
exclude_none | Whether to exclude fields that have a value of None .Type: bool Default: True |
**kwargs | Type: Any |
Type | Description |
---|---|
str | A JSON string representation of the model. |
serialize_api_key
Name | Description |
---|---|
v | Type: pydantic.types.SecretStr |
serialize_base_url
Name | Description |
---|---|
v | Type: Any |