withOutput
fun <Output : Any> withOutput(clazz: ERROR CLASS: Symbol not found for Class<Output>): TypedAIAgentNodeBuilder<Input, Output>(source)
Specifies the output type for the AIAgentNode and returns a builder for creating a typed AIAgentNode.
Return
A builder for creating a typed AIAgentNode configured with the specified output type.
Parameters
clazz
The class representing the output type of the node.
Specifies the output type for the AI agent node and returns a builder for creating a typed AI agent node.
The output type is identified using the provided TypeToken, which allows handling generic types and preserves type information during runtime.
Return
A TypedAIAgentNodeBuilder configured with the specified input and output types, enabling further customization and creation of the typed AI agent node.
Parameters
typeToken
The TypeToken that represents the output type of the node.