LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdkschemaGraphSchema
    Class●Since v0.1

    GraphSchema

    Defines the structure and properties of a graph.

    Copy
    GraphSchema()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    graph_idstr
    input_schemadict | None
    output_schemadict | None
    state_schemadict | None
    config_schemadict | None
    context_schemadict | None
    attribute
    graph_id: str

    The ID of the graph.

    attribute
    input_schema: dict | None

    The schema for the graph input. Missing if unable to generate JSON schema from graph.

    attribute
    output_schema: dict | None

    The schema for the graph output. Missing if unable to generate JSON schema from graph.

    attribute
    state_schema: dict | None

    The schema for the graph state. Missing if unable to generate JSON schema from graph.

    attribute
    config_schema: dict | None

    The schema for the graph config. Missing if unable to generate JSON schema from graph.

    attribute
    context_schema: dict | None

    The schema for the graph context. Missing if unable to generate JSON schema from graph.