LLMConfigEntry autogen.llm_config.LLMConfigEntry # Bases: BaseModel, ABC api_type instance-attribute # api_type model class-attribute instance-attribute # model = Field(..., min_length=1) api_key class-attribute instance-attribute # api_key = None api_version class-attribute instance-attribute # api_version = None max_tokens class-attribute instance-attribute # max_tokens = None base_url class-attribute instance-attribute # base_url = None voice class-attribute instance-attribute # voice = None model_client_cls class-attribute instance-attribute # model_client_cls = None http_client class-attribute instance-attribute # http_client = None response_format class-attribute instance-attribute # response_format = None default_headers class-attribute instance-attribute # default_headers = None tags class-attribute instance-attribute # tags = Field(default_factory=list) model_config class-attribute instance-attribute # model_config = ConfigDict(extra='forbid', arbitrary_types_allowed=True) create_client abstractmethod # create_client() Source code in autogen/llm_config.py 290 291@abstractmethod def create_client(self) -> "ModelClient": ... check_base_url classmethod # check_base_url(v, info) Source code in autogen/llm_config.py 293 294 295 296 297 298@field_validator("base_url", mode="before") @classmethod def check_base_url(cls, v: Any, info: ValidationInfo) -> Any: if not str(v).startswith("https://") and not str(v).startswith("http://"): v = f"http://{str(v)}" return v serialize_base_url # serialize_base_url(v) Source code in autogen/llm_config.py 300 301 302@field_serializer("base_url") def serialize_base_url(self, v: Any) -> Any: return str(v) serialize_api_key # serialize_api_key(v) Source code in autogen/llm_config.py 304 305 306@field_serializer("api_key", when_used="unless-none") def serialize_api_key(self, v: SecretStr) -> Any: return v.get_secret_value() model_dump # model_dump(*args, exclude_none=True, **kwargs) Source code in autogen/llm_config.py 308 309def model_dump(self, *args: Any, exclude_none: bool = True, **kwargs: Any) -> dict[str, Any]: return BaseModel.model_dump(self, exclude_none=exclude_none, *args, **kwargs) model_dump_json # model_dump_json(*args, exclude_none=True, **kwargs) Source code in autogen/llm_config.py 311 312def model_dump_json(self, *args: Any, exclude_none: bool = True, **kwargs: Any) -> str: return BaseModel.model_dump_json(self, exclude_none=exclude_none, *args, **kwargs) get # get(key, default=None) Source code in autogen/llm_config.py 314 315 316 317 318def get(self, key: str, default: Optional[Any] = None) -> Any: val = getattr(self, key, default) if isinstance(val, SecretStr): return val.get_secret_value() return val items # items() Source code in autogen/llm_config.py 335 336 337def items(self) -> Iterable[tuple[str, Any]]: d = self.model_dump() return d.items() keys # keys() Source code in autogen/llm_config.py 339 340 341def keys(self) -> Iterable[str]: d = self.model_dump() return d.keys() values # values() Source code in autogen/llm_config.py 343 344 345def values(self) -> Iterable[Any]: d = self.model_dump() return d.values()