llm_config
autogen.llm_config.LLMConfig
LLMConfig
Name | Description |
---|---|
**kwargs | Type: Any |
Static Methods
from_json
Name | Description |
---|---|
env | Type: str | None Default: None |
path | Type: str | pathlib.Path | None Default: None |
file_location | Type: str | None Default: None |
**kwargs | Type: Any |
get_current_llm_config
Name | Description |
---|---|
llm_config | Type: Optional[LLMConfig] Default: None |
Instance Methods
copy
deepcopy
Name | Description |
---|---|
memo | Type: dict[int, typing.Any] | None Default: None |
get
Name | Description |
---|---|
key | Type: str |
default | Type: Any | None Default: None |
items
keys
model_dump
Name | Description |
---|---|
*args | Type: Any |
exclude_none | Type: bool Default: True |
**kwargs | Type: Any |
model_dump_json
Name | Description |
---|---|
*args | Type: Any |
exclude_none | Type: bool Default: True |
**kwargs | Type: Any |
model_validate
Name | Description |
---|---|
*args | Type: Any |
**kwargs | Type: Any |
model_validate_json
!!! abstract “Usage Documentation” JSON Parsing
Validate the given JSON data against the Pydantic model.
Name | Description |
---|---|
json_data | The JSON data to validate. Type: str | bytes | bytearray |
strict | Whether to enforce types strictly. Type: bool | None Default: None |
context | Extra variables to pass to the validator. Type: Any | None Default: None |
by_alias | Whether to use the field’s alias when validating against the provided input data. Type: bool | None Default: None |
by_name | Whether to use the field’s name when validating against the provided input data. Type: bool | None Default: None |
Type | Description |
---|---|
Self | The validated Pydantic model. |
model_validate_strings
Validate the given object with string data against the Pydantic model.
Name | Description |
---|---|
obj | The object containing string data to validate. Type: Any |
strict | Whether to enforce types strictly. Type: bool | None Default: None |
context | Extra variables to pass to the validator. Type: Any | None Default: None |
by_alias | Whether to use the field’s alias when validating against the provided input data. Type: bool | None Default: None |
by_name | Whether to use the field’s name when validating against the provided input data. Type: bool | None Default: None |
Type | Description |
---|---|
Self | The validated Pydantic model. |
values
where
Name | Description |
---|---|
exclude | Type: bool Default: False |
**kwargs | Type: Any |