langchain.js
    Preparing search index...

    Class Graph<N, RunInput, RunOutput, NodeSpecType, C>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    branches: Record<string, Record<string, Branch<RunInput, N, any>>>
    compiled: boolean = false
    edges: Set<[N | "__start__", N | "__end__"]>
    entryPoint?: string
    nodes: Record<N, NodeSpecType>

    Accessors

    • get allEdges(): Set<[string, string]>

      Returns Set<[string, string]>

    Methods

    • Parameters

      Returns this

    • Parameters

      Returns this

    • Parameters

      • startKey: N | "__start__"
      • endKey: N | "__end__"

      Returns this

    • Parameters

      • __namedParameters: {
            checkpointer?: any;
            interruptAfter?: any;
            interruptBefore?: any;
            name?: string;
        } = {}

      Returns CompiledGraph<N>

    • Parameters

      • key: N

      Returns this

      use addEdge(START, key) instead

    • Parameters

      • key: N

      Returns this

      use addEdge(key, END) instead

    • Parameters

      • Optionalinterrupt: string[]

      Returns void

    • Parameters

      • message: string

      Returns void