Skip to main content

RunStreamObserver

Trait RunStreamObserver 

Source
pub trait RunStreamObserver:
    Send
    + Sync
    + Debug {
    // Required method
    fn event(&self, run: RunId, event: Tainted<ModelStreamEvent>);
}
Expand description

Receives every model call’s live output, with the run it belongs to.

What ModelStreamObserver receives for one call, for every call a plane makes — so a surface can show a run’s model writing while the journal holds only the finished answer.

Required Methods§

Source

fn event(&self, run: RunId, event: Tainted<ModelStreamEvent>)

Delivery is advisory and must not block the call.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§