"""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


CustomToolCallInputDoneEventType = Literal["response.custom_tool_call_input.done",]


class CustomToolCallInputDoneEventTypedDict(TypedDict):
    r"""Event emitted when a custom tool call's freeform input streaming is complete. Mirrors `response.function_call_arguments.done` but for `custom` tools."""

    input: str
    item_id: str
    output_index: int
    sequence_number: int
    type: CustomToolCallInputDoneEventType


class CustomToolCallInputDoneEvent(BaseModel):
    r"""Event emitted when a custom tool call's freeform input streaming is complete. Mirrors `response.function_call_arguments.done` but for `custom` tools."""

    input: str

    item_id: str

    output_index: int

    sequence_number: int

    type: CustomToolCallInputDoneEventType
