AIAgentNodeBuilder
constructor(inputType: KType, outputType: KType, execute: suspend AIAgentContextBase.(Input) -> Output)(source)
Used internally to create a new builder with the provided execution logic.
Parameters
Input
The type of input data the node will process.
Output
The type of output data the node will produce.
execute
A suspending function to define the execution logic of the node. This function will be called in the scope of AIAgentContextBase, where it has access to the AI agent's context and tools relevant to its operation.