transform

inline fun <T> transform(noinline transformation: suspend (Output) -> T): AIAgentNodeDelegate<Input, T>(source)

Creates a transformed version of this node delegate that applies a transformation to the output.

Return

A new AIAgentNodeDelegate with the transformed output type.

Parameters

T

The type of the transformed output.

transformation

A function that transforms the original output to the new type.