Skip to main content
Subgraph node that represents a compiled subgraph. This node allows you to execute another graph as a component within the current graph, enabling modular and reusable graph architectures. Input: any - The data type that SubgraphNode accepts as input Output: any - The data type that SubgraphNode outputs Example:
const subgraphNode = new SubgraphNode({
  id: 'intent-processing-subgraph',
  parameters: {
    confidence_threshold: 0.8,
    max_intents: 5,
    fallback_enabled: true
  }
});

Constructor

new SubgraphNode(
    props: SubgraphNodeProps
): SubgraphNode
Creates a new SubgraphNode instance.

Parameters

props (SubgraphNodeProps) Configuration for the subgraph node.

Returns

SubgraphNode Overrides AbstractNode.constructor