nat.llm.oci_llm#

Classes#

OCIModelConfig

OCI Generative AI LLM provider.

Functions#

oci_llm(...)

Yield provider metadata for an OCI Generative AI model.

Module Contents#

class OCIModelConfig#

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

OCI Generative AI LLM provider.

model_config#
region: str = None#
endpoint: str | None = None#
compartment_id: str | None = None#
_derive_endpoint_from_region() OCIModelConfig#
auth_type: str = None#
auth_profile: str = None#
auth_file_location: str = None#
model_name: str#
provider: str | None = None#
context_size: int | None = None#
seed: int | None = None#
max_retries: int = None#
max_tokens: int | None = None#
temperature: float | None#
top_p: float | None#
request_timeout: float | None = None#
async oci_llm(
config: OCIModelConfig,
_builder: nat.builder.builder.Builder,
) collections.abc.AsyncIterator[nat.builder.llm.LLMProviderInfo]#

Yield provider metadata for an OCI Generative AI model.

Args:

config: OCI model configuration. _builder: Builder instance.

Yields:

LLMProviderInfo describing the configured OCI model.