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

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemote
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
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/langgraphgraphzodSchemaMetaRegistrygetExtendedChannelSchemas
Method●Since v0.3

getExtendedChannelSchemas

Returns a modified schema that introspectively looks at all keys of the provided object schema, and applies the augmentations based on meta provided with those keys in the registry and the selectors provided in the effects parameter.

This assumes that the passed in schema is the "root" schema object for a graph where the keys of the schema are the channels of the graph. Because we need to represent the input of a graph in a couple of different ways, the effects parameter allows us to apply those augmentations based on pre determined conditions.

Copy
getExtendedChannelSchemas<T extends InteropZodObject>(schema: T, effects: __type): InteropZodObject

Parameters

NameTypeDescription
schema*T

The root schema object to extend.

effects*__type

The effects that are being applied.

View source on GitHub