File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
# Source: https://github.com/openai/openai-python | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
# File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
from typing import Optional
from typing_extensions import Literal
from ..._models import BaseModel
from .token_usage import TokenUsage
from .agents.sessions.turn import Turn
__all__ = ["AgentSessionTurnCancelledEvent"]
class AgentSessionTurnCancelledEvent(BaseModel):
"""Emitted when a turn is cancelled."""
event_id: str
"""The unique ID of the event."""
session_id: str
"""The ID of the session associated with the event."""
turn: Turn
"""The cancelled turn."""
tu
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key