mirror of
https://github.com/Ladebeze66/llm_ticket3.git
synced 2025-12-18 07:17:47 +01:00
27 lines
881 B
Python
27 lines
881 B
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from .imageurlchunk import ImageURLChunk, ImageURLChunkTypedDict
|
|
from .referencechunk import ReferenceChunk, ReferenceChunkTypedDict
|
|
from .textchunk import TextChunk, TextChunkTypedDict
|
|
from mistralai_azure.utils import get_discriminator
|
|
from pydantic import Discriminator, Tag
|
|
from typing import Union
|
|
from typing_extensions import Annotated, TypeAliasType
|
|
|
|
|
|
ContentChunkTypedDict = TypeAliasType(
|
|
"ContentChunkTypedDict",
|
|
Union[TextChunkTypedDict, ImageURLChunkTypedDict, ReferenceChunkTypedDict],
|
|
)
|
|
|
|
|
|
ContentChunk = Annotated[
|
|
Union[
|
|
Annotated[ImageURLChunk, Tag("image_url")],
|
|
Annotated[TextChunk, Tag("text")],
|
|
Annotated[ReferenceChunk, Tag("reference")],
|
|
],
|
|
Discriminator(lambda m: get_discriminator(m, "type", "type")),
|
|
]
|