asUserMessage

fun asUserMessage(transformation: SimpleTransformation<IntermediateOutput, String> = { it.toString() }): FullAgentEdgeBuilder<IncomingOutput, ERROR CLASS: Symbol not found for Message.User, OutgoingInput>(source)

Creates an edge that transforms an intermediate output into a Message.User using the provided transform.

Parameters

transformation

A function that converts the intermediate output to a String for the user message.