Microsoft Azure Embedding Provider Types (microsoft/types.py)

crewai · lib/crewai/src/crewai/rag/embeddings/providers/microsoft/types.py · python · MIT
ai, infra, dev-tools, lang:python

Type definitions and configuration specifications for Microsoft Azure embedding providers in CrewAI. Reuse when configuring Azure OpenAI text embeddings.

# Source: https://github.com/crewaiinc/crewai | License: MIT | Copyright 2025 crewAI, Inc
# Provided via justclaw.it.com; keep this notice with the code.
"""Type definitions for Microsoft Azure embedding providers."""

from typing import Annotated, Any, Literal

from typing_extensions import Required, TypedDict


class AzureProviderConfig(TypedDict, total=False):
    """Configuration for Azure provider."""

    api_key: str
    api_base: str
    api_type: Annotated[str, "azure"]
    api_version: str
    model_name: Annotated[str, "text-embedding-3-large"]
    default_headers: dict[str, Any]
    dimensions: int
    deployment_id: Required[str]
    organization_id: str


class AzureProviderSpec(TypedDict, total=False):
    """Azure provider specification."""

    provider: Required[Literal["

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key