# This file was auto-generated by Fern from our API Definition.

import typing

from .context_limit_exceeded_event import ContextLimitExceededEvent
from .stream_error import StreamError
from .stream_response_end import StreamResponseEnd
from .streaming_agent_output import StreamingAgentOutput
from .streaming_agent_output_end import StreamingAgentOutputEnd
from .streaming_thinking import StreamingThinking
from .streaming_thinking_end import StreamingThinkingEnd
from .tool_input_event import ToolInputEvent
from .tool_output_event import ToolOutputEvent

AgentStreamedResponse = typing.Union[
    StreamingAgentOutput,
    StreamingAgentOutputEnd,
    StreamingThinking,
    StreamingThinkingEnd,
    ToolInputEvent,
    ToolOutputEvent,
    ContextLimitExceededEvent,
    StreamError,
    StreamResponseEnd,
]
