NodeReference

@TestOnly
sealed class NodeReference<Input, Output>(source)

Represents a reference to a specific type of node within an AI agent subgraph. This sealed class provides a way to resolve and identify nodes for various processing operations in the context of a subgraph.

Parameters

Input

The input data type handled by the related node.

Output

The output data type produced by the related node.

Inheritors

Types

Link copied to clipboard

Represents the final node in an AI agent subgraph workflow. The Finish node signifies the end of the processing within the subgraph and provides the result of the subgraph's operations.

Link copied to clipboard
open class NamedNode<Input, Output>(val name: String) : NodeReference<Input, Output>

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.

Link copied to clipboard

The Start class is a specialized type of NodeReference that serves as a reference to the starting node of an AIAgentSubgraph. This node initiates the processing of the subgraph by resolving and returning the subgraph's starting node.

Link copied to clipboard

Represents a specific strategy within an AI agent subgraph.

Link copied to clipboard

Represents a specialized type of node used in the context of AI agent subgraphs. This class extends the functionality of a named node by providing specific behavior to resolve itself as a valid subgraph within the overarching system.

Functions

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

Resolves the current node reference within the context of the provided AI agent subgraph.