"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from openrouter.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict


class ChatToolCallFunctionTypedDict(TypedDict):
    arguments: str
    r"""Function arguments as JSON string"""
    name: str
    r"""Function name to call"""


class ChatToolCallFunction(BaseModel):
    arguments: str
    r"""Function arguments as JSON string"""

    name: str
    r"""Function name to call"""


ChatToolCallType = Literal["function",]


class ChatToolCallTypedDict(TypedDict):
    r"""Tool call made by the assistant"""

    function: ChatToolCallFunctionTypedDict
    id: str
    r"""Tool call identifier"""
    type: ChatToolCallType


class ChatToolCall(BaseModel):
    r"""Tool call made by the assistant"""

    function: ChatToolCallFunction

    id: str
    r"""Tool call identifier"""

    type: ChatToolCallType
