onMessageParts
infix inline fun <IncomingOutput, IntermediateOutput, OutgoingInput, T : MessagePart> AIAgentEdgeBuilderIntermediate<IncomingOutput, IntermediateOutput, OutgoingInput>.onMessageParts(klass: KClass<T>): AIAgentEdgeBuilderIntermediate<IncomingOutput, List<T>, OutgoingInput>(source)
Creates an edge that filters outputs based on their MessagePart subtype.
Parameters
klass
The MessagePart subclass to filter against