# generated by datamodel-codegen:
#   filename:  discriminator_enum_single_value.yaml
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from enum import Enum

from pydantic import BaseModel, Field, RootModel


class ToolType(Enum):
    function = 'function'


class ToolBase(BaseModel):
    type: ToolType


class FunctionToolCall(ToolBase):
    id: str


class ToolCall(RootModel[FunctionToolCall]):
    root: FunctionToolCall = Field(..., discriminator='type')
