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