LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
  • Stream
LangGraph SDK
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Server
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
โŒ˜I

Chat LangChain

What can I help with?

Enter to sendยทShift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphwebCompiledGraphType
Typeโ—Since v1.5

CompiledGraphType

Copy
CompiledGraphType: CompiledGraph<
  CompiledGraphTypeNode<Spec>,
  Spec extends __type  State : any,
  
View source on GitHub
Spec
extends
__type
Update
:
any
,
CompiledGraphTypeContext
<
Spec
>
,
Spec
extends
__type
Input
:
any
,
Spec
extends
__type
Output
:
any
,
Spec
extends
__type
NodeReturn
:
unknown
,
Spec
extends
__type
Command
:
unknown
,
Spec
extends
__type
StreamCustom
:
any
,
CompiledGraphTypeStreamTransformers
<
Spec
>
>

Example

Convenience type for referencing a compiled graph by named type slots.

Copy
type MyCompiledGraph = CompiledGraphType<{
  state: State;
  update: Update;
  streamTransformers: [
    StreamTransformer<Extensions>,
    StreamTransformer<MoreExtensions>,
  ];
}>;