LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Graphs
  • Functional API
  • Pregel
  • Checkpointing
  • Storage
  • Caching
  • Types
  • Runtime
  • Config
  • Errors
  • Constants
  • Channels
  • Agents
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

OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
LangGraph CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
Language
Theme
PythonlanggraphpregelremoteRemoteGraphget_graph
Method●Since v0.2

get_graph

Get graph by graph name.

This method calls GET /assistants/{assistant_id}/graph.

Copy
get_graph(
  self,
  config: RunnableConfig | None = None,
  *,
  xray: int | bool = False,
  headers: dict[str, str] | None = None,
  params: QueryParamTypes | None = None
) -> DrawableGraph

Parameters

NameTypeDescription
configRunnableConfig | None
Default:None

This parameter is not used.

xrayint | bool
Default:False

Include graph representation of subgraphs. If an integer value is provided, only subgraphs with a depth less than or equal to the value will be included.

View source on GitHub