AzureEmbeddingDependency Class

Azure embedding dependency.

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.

Inheritance
AzureEmbeddingDependency

Constructor

AzureEmbeddingDependency(*, type: Annotated[Literal['DeploymentName', 'deployment_name'], AfterValidator(func=to_snake)] = 'deployment_name', deploymentName: str | None = None, **extra_data: Any)

Keyword-Only Parameters

Name Description
type
Default value: deployment_name
deploymentName
Required

Attributes

model_computed_fields

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

model_config

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

model_config: ClassVar[ConfigDict] = {'alias_generator': AliasGenerator(alias=None, validation_alias=<function to_camel>, serialization_alias=<function to_snake>), 'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True}

model_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.fields from Pydantic V1.

model_fields: ClassVar[Dict[str, FieldInfo]] = {'deployment_name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, alias_priority=1, validation_alias='deploymentName', serialization_alias='deployment_name'), 'type': FieldInfo(annotation=Literal['DeploymentName', 'deployment_name'], required=False, default='deployment_name', alias_priority=1, validation_alias='type', serialization_alias='type', metadata=[AfterValidator(func=<function to_snake>)])}

deployment_name

deployment_name: str | None

type

type: Annotated[Literal['DeploymentName', 'deployment_name'], AfterValidator(func=to_snake)]