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

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


FusionCallPanelFailedEventType = Literal["response.fusion_call.panel.failed",]


class FusionCallPanelFailedEventTypedDict(TypedDict):
    r"""Emitted when a fusion panel model fails."""

    error: str
    item_id: str
    model: str
    output_index: int
    sequence_number: int
    type: FusionCallPanelFailedEventType
    status_code: NotRequired[int]


class FusionCallPanelFailedEvent(BaseModel):
    r"""Emitted when a fusion panel model fails."""

    error: str

    item_id: str

    model: str

    output_index: int

    sequence_number: int

    type: FusionCallPanelFailedEventType

    status_code: Optional[int] = None
