Realtime

Trait Realtime 

Source
pub trait Realtime: Send + Sync {
    // Required method
    fn start_stream<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn StreamItem>, AgentError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for real‑time streaming capabilities (e.g., token streams over SSE).

Required Methods§

Source

fn start_stream<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn StreamItem>, AgentError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Start a streaming session and return a handle that yields streamed text deltas.

Implementors§