"""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 CustomToolCallInputDeltaEventType = Literal["response.custom_tool_call_input.delta",] class CustomToolCallInputDeltaEventTypedDict(TypedDict): r"""Event emitted when a custom tool call's freeform input is being streamed. Mirrors `response.function_call_arguments.delta` but for `custom` tools whose input is opaque text rather than JSON arguments.""" delta: str item_id: str output_index: int sequence_number: int type: CustomToolCallInputDeltaEventType class CustomToolCallInputDeltaEvent(BaseModel): r"""Event emitted when a custom tool call's freeform input is being streamed. Mirrors `response.function_call_arguments.delta` but for `custom` tools whose input is opaque text rather than JSON arguments.""" delta: str item_id: str output_index: int sequence_number: int type: CustomToolCallInputDeltaEventType