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

from __future__ import annotations
from .fusionanalysisresult import FusionAnalysisResult, FusionAnalysisResultTypedDict
from openrouter.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict


FusionCallAnalysisCompletedEventType = Literal[
    "response.fusion_call.analysis.completed",
]


class FusionCallAnalysisCompletedEventTypedDict(TypedDict):
    r"""Emitted when the fusion judge completes with the structured analysis."""

    analysis: FusionAnalysisResultTypedDict
    r"""Structured analysis produced by the fusion judge model."""
    item_id: str
    output_index: int
    sequence_number: int
    type: FusionCallAnalysisCompletedEventType


class FusionCallAnalysisCompletedEvent(BaseModel):
    r"""Emitted when the fusion judge completes with the structured analysis."""

    analysis: FusionAnalysisResult
    r"""Structured analysis produced by the fusion judge model."""

    item_id: str

    output_index: int

    sequence_number: int

    type: FusionCallAnalysisCompletedEventType
