mirror of
https://github.com/Ladebeze66/llm_ticket3.git
synced 2025-12-18 07:27:46 +01:00
30 lines
1.0 KiB
Python
30 lines
1.0 KiB
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from .functionname import FunctionName, FunctionNameTypedDict
|
|
from .tooltypes import ToolTypes
|
|
from mistralai_azure.types import BaseModel
|
|
from mistralai_azure.utils import validate_open_enum
|
|
from pydantic.functional_validators import PlainValidator
|
|
from typing import Optional
|
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
|
|
|
class ToolChoiceTypedDict(TypedDict):
|
|
r"""ToolChoice is either a ToolChoiceEnum or a ToolChoice"""
|
|
|
|
function: FunctionNameTypedDict
|
|
r"""this restriction of `Function` is used to select a specific function to call"""
|
|
type: NotRequired[ToolTypes]
|
|
|
|
|
|
class ToolChoice(BaseModel):
|
|
r"""ToolChoice is either a ToolChoiceEnum or a ToolChoice"""
|
|
|
|
function: FunctionName
|
|
r"""this restriction of `Function` is used to select a specific function to call"""
|
|
|
|
type: Annotated[Optional[ToolTypes], PlainValidator(validate_open_enum(False))] = (
|
|
None
|
|
)
|