SubgraphNode

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.

Parameters

Input

The input type that this node expects.

Output

The output type that this node produces.

name

The name of the node, inherited from the parent class, which serves as its identifier within the graph.

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<*, *>): AIAgentSubgraph<Input, Output>

Resolves the specified subgraph into a strongly typed subgraph of the expected input and output types. This method ensures the resolved subgraph matches the type constraints of the current node.