Skip to main content

Module streaming_tool_executor

Module streaming_tool_executor 

Source
Expand description

Streaming tool executor that starts executing tools as they stream in from the API.

Translated from TypeScript StreamingToolExecutor.ts.

  • Concurrent-safe tools can execute in parallel with other concurrent-safe tools
  • Non-concurrent tools must execute alone (exclusive access)
  • Results are buffered and emitted in the order tools were received

Re-exports§

pub use crate::tools::orchestration::ToolMessageUpdate;

Structs§

StreamingToolExecutor
Executes tools as they stream in with concurrency control.

Functions§

get_tool_concurrency_info
Get tool concurrency info for the streaming executor.