onTextMessage
infix fun <IncomingOutput, IntermediateOutput, OutgoingInput> AIAgentEdgeBuilderIntermediate<IncomingOutput, IntermediateOutput, OutgoingInput>.onTextMessage(block: suspend (MessagePart.Text) -> Boolean): AIAgentEdgeBuilderIntermediate<IncomingOutput, String, OutgoingInput>(source)
Creates an edge that transforms an intermediate output into a Message.User using the provided transform.
Parameters
block
A function that converts the intermediate output to a String for the user message.