NamedNode

NamedNode is a class that references a specific node within a subgraph by name. This class allows resolving a node instance by its unique name within a given subgraph.

Parameters

Input

The type of input accepted by the node.

Output

The type of output produced by the node.

Inheritors

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard

The unique name of the target node within the subgraph.

Functions

Link copied to clipboard
open override fun resolve(subgraph: AIAgentSubgraph<*, *>): AIAgentNodeBase<Input, Output>

Resolves a node within the given AI Agent subgraph by searching for a node that matches the current node's name. The method performs a depth-first traversal starting from the subgraph's start node.