pub type StreamFn = Arc<dyn Fn(Request) -> Result<EventStream, String> + Send + Sync>;Expand description
Starts a provider request through the model’s wire API. An error before any request ends the run, as pi’s agent ends it when its stream function throws.
Aliased Type§
pub struct StreamFn { /* private fields */ }