asUserMessage

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.