toParallelToolCallsRaw
Executes a flow of tool arguments in parallel by invoking the provided tool's raw execution method. Converts each argument in the flow into a string result returned from the tool.
Return
A flow of string results derived from executing the tool's raw method.
Parameters
The tool to execute, wrapped in a SafeTool to ensure safety during execution.
The maximum number of parallel calls to the tool. Default is 16.
Converts a flow of arguments into a flow of raw string results by executing the corresponding tool calls in parallel.
Return
a flow of raw string results from the parallel tool calls.
Parameters
the type of arguments required by the tool.
the type of result produced by the tool.
the class of the tool to be invoked.
the number of concurrent tool calls to be executed. Defaults to 16.