langchain.js
    Preparing search index...

    Error thrown when invalid input is provided to a StateGraph.

    This typically means that the input to the StateGraph constructor or builder did not match the required types. A valid input should be a StateDefinition, an Annotation.Root, or a Zod schema.

    // Example of incorrect usage:
    try {
    new StateGraph({ foo: "bar" }); // Not a valid input
    } catch (err) {
    if (err instanceof StateGraphInputError) {
    console.error(err.message);
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Constructors

    Properties

    lc_error_code?: string

    Accessors

    • get unminifiable_name(): string

      The unminifiable (static, human-readable) error name for this error class.

      Returns string