toParallelToolCallsRaw
inline fun <TArgs, TResult> Flow<TArgs>.toParallelToolCallsRaw(safeTool: SafeToolFromCallable<TResult>, concurrency: Int = 16): Flow<String>(source)
Transforms a flow of input arguments into a flow of raw parallel tool calls.
This function takes a flow of input arguments and applies a tool execution function in parallel with a specified level of concurrency. It executes the tool using its raw execution method and emits the raw results as strings.
Return
A flow of raw string results obtained from the tool calls.
Parameters
TArgs
The type of the input arguments for the tool calls.
TResult
The type of the result produced by the tool function.
safeTool
A wrapper for the tool capable of executing raw calls.
concurrency
The level of concurrency to use for parallel processing. Defaults to 16.