DefinedAIAgentNodeBuilder

class DefinedAIAgentNodeBuilder<Input : Any, Output : Any>(name: String?, inputTypeToken: TypeToken, outputTypeToken: TypeToken, nodeAction: ContextualAction<Input, Output>)(source)

A builder class responsible for constructing instances of AIAgentNode with specific input and output types, a unique node name, and a defined contextual action to be executed within an AI agent graph context.

Parameters

Input

The type of the input data processed by the constructed AIAgentNode.

Output

The type of the output data produced by the constructed AIAgentNode.

Constructors

Link copied to clipboard
constructor(name: String?, inputTypeToken: TypeToken, outputTypeToken: TypeToken, nodeAction: ContextualAction<Input, Output>)

Initializes a new instance of the builder with the specified node name, input/output type tokens, and the contextual action to execute in the node.

Functions

Link copied to clipboard

Builds and returns an instance of AIAgentNode configured with the specified parameters. The node will execute the provided ContextualAction with the input data when invoked.