nat.llm.azure_openai_llm#

Classes#

AzureOpenAIModelConfig

An Azure OpenAI LLM provider to be used with an LLM client.

Functions#

azure_openai_llm(config, _builder)

Module Contents#

class AzureOpenAIModelConfig(/, **data: Any)#

Bases: nat.data_models.llm.LLMBaseConfig, nat.data_models.retry_mixin.RetryMixin, nat.data_models.thinking_mixin.ThinkingMixin

An Azure OpenAI LLM provider to be used with an LLM client.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_config#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

api_key: nat.data_models.common.OptionalSecretStr = None#
api_version: str = None#
azure_endpoint: str | None = None#
azure_deployment: str = None#
seed: int | None = None#
temperature: float | None = None#
top_p: float | None = None#
property model_name: str#

Returns the model name for compatibility with other parts of the code base which expect a model_name attribute.

async azure_openai_llm(
config: AzureOpenAIModelConfig,
_builder: nat.builder.builder.Builder,
)#