autogen_core.components.models.config#

class autogen_core.components.models.config.AzureOpenAIClientConfiguration[source]#

Bases: BaseOpenAIClientConfiguration

api_key: str#
api_version: Required[str]#
azure_ad_token: str#
azure_ad_token_provider: Callable[[], str | Awaitable[str]]#
azure_deployment: str#
azure_endpoint: Required[str]#
frequency_penalty: float | None#
logit_bias: Dict[str, int] | None#
max_retries: int#
max_tokens: int | None#
model: str#
model_capabilities: Required[ModelCapabilities]#
n: int | None#
presence_penalty: float | None#
response_format: ResponseFormat#
seed: int | None#
stop: str | None | List[str]#
temperature: float | None#
timeout: float | None#
top_p: float | None#
user: str#
class autogen_core.components.models.config.BaseOpenAIClientConfiguration[source]#

Bases: CreateArguments

api_key: str#
frequency_penalty: float | None#
logit_bias: Dict[str, int] | None#
max_retries: int#
max_tokens: int | None#
model: str#
n: int | None#
presence_penalty: float | None#
response_format: ResponseFormat#
seed: int | None#
stop: str | None | List[str]#
temperature: float | None#
timeout: float | None#
top_p: float | None#
user: str#
class autogen_core.components.models.config.CreateArguments[source]#

Bases: TypedDict

frequency_penalty: float | None#
logit_bias: Dict[str, int] | None#
max_tokens: int | None#
n: int | None#
presence_penalty: float | None#
response_format: ResponseFormat#
seed: int | None#
stop: str | None | List[str]#
temperature: float | None#
top_p: float | None#
user: str#
class autogen_core.components.models.config.OpenAIClientConfiguration[source]#

Bases: BaseOpenAIClientConfiguration

api_key: str#
base_url: str#
frequency_penalty: float | None#
logit_bias: Dict[str, int] | None#
max_retries: int#
max_tokens: int | None#
model: str#
model_capabilities: ModelCapabilities#
n: int | None#
organization: str#
presence_penalty: float | None#
response_format: ResponseFormat#
seed: int | None#
stop: str | None | List[str]#
temperature: float | None#
timeout: float | None#
top_p: float | None#
user: str#
class autogen_core.components.models.config.ResponseFormat[source]#

Bases: TypedDict

type: Literal['text', 'json_object']#