AIAgentNodeDelegate
Initializes the delegate with the provided node name and builder.
Parameters
The optional name of the node. If not provided, the name will be derived from the property to which the delegate is applied.
Type Parameters
The type of input data the delegated node will process.
The type of output data the delegated node will produce.
Deprecated
Use TypeToken for inputType and outputType
Secondary constructor for AIAgentNodeDelegate that allows direct specification of input and output types as KType instead of using ai.koog.serialization.KotlinTypeToken.
This constructor is marked as deprecated because the use of ai.koog.serialization.KotlinTypeToken for inputType and outputType is preferred to streamline type handling and improve interface consistency.
Parameters
An optional name associated with the node delegate.
The KType representing the expected input type for the node.
The KType representing the expected output type for the node.
A suspend function defining the execution logic for the node, operating within the scope of an AIAgentGraphContextBase and transforming an Input into an Output.
See also
Throws
If any of the provided parameters are invalid for the context of the node delegate.