onMultipleToolCalls
infix fun <IncomingOutput, IntermediateOutput, OutgoingInput> AIAgentEdgeBuilderIntermediate<IncomingOutput, IntermediateOutput, OutgoingInput>.onMultipleToolCalls(block: suspend (List<Message.Tool.Call>) -> Boolean): AIAgentEdgeBuilderIntermediate<IncomingOutput, List<Message.Tool.Call>, OutgoingInput>(source)
Creates an edge that filters lists of tool call messages based on a custom condition.
Parameters
block
A function that evaluates whether to accept a list of tool call messages