Skip to main content

streaming_tool

Function streaming_tool 

Source
pub async fn streaming_tool<W, T, F>(
    model: Model<W, T>,
    configure: F,
) -> Result<ScenarioReport, ScenarioError>
where W: Wire<Op = Completion>, T: Transport<W>, F: FnOnce(AgentBuilder) -> AgentBuilder,
Available on crate feature test-utils only.
Expand description

Runs a tool through Rig’s multi-turn streaming agent driver.