Skip to main content

Module streaming

Module streaming 

Source
Expand description

Streaming response handling for LLM responses.

This module provides the internal event types for the agent loop:

  • AgentEvent: Protocol-agnostic events emitted by the agent
  • StreamCollector / StreamResult: Helpers for collecting stream chunks

Protocol-specific conversion lives in the respective protocol modules:

  • tirea_protocol_ag_ui::AGUIContext::on_agent_event(): protocol events
  • tirea_protocol_ai_sdk_v6::AiSdkEncoder::on_agent_event(): AI SDK v6 events

Structs§

StreamCollector
Collector for streaming LLM responses.

Enums§

StreamOutput
Output event from stream processing.