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