ToolRunner

interface ToolRunner

Strategy for executing a batch of tool calls returned by the LLM.

Implementations are suspend so concurrency strategy is decided at the implementation layer. SerialToolRunner is the broker default; ParallelToolRunner is opt-in.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun runBatch(calls: List<LlmToolCall>, tools: List<LlmTool>, correlationId: String? = null): List<ToolOutcome>

Execute calls against tools, returning outcomes in input order.