AIAgentNodeDelegate
A delegate for creating and managing an instance of AIAgentNodeBase.
This class simplifies the instantiation and management of AI agent nodes. It leverages property delegation to lazily initialize a node instance. The node's name can either be explicitly provided or derived from the delegated property name.
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.
Constructors
Initializes the delegate with the provided node name and builder.
Secondary constructor for AIAgentNodeDelegate that allows direct specification of input and output types as KType instead of using ai.koog.serialization.KotlinTypeToken.
Functions
Retrieves an instance of AIAgentNodeBase associated with the given property. This operator function acts as a delegate to dynamically provide a reference to an AI agent node.