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/langgraphgraphzodSchemaMetaRegistry
Class●Since v0.3

SchemaMetaRegistry

A registry for storing and managing metadata associated with schemas. This class provides methods to get, extend, remove, and check metadata for a given schema.

Copy
class SchemaMetaRegistry

Constructors

constructor
constructor

Methods

method
extend

Extends or sets the metadata for a given schema.

method
get→ Value

Return the current value of the channel.

method
getChannelsForSchema→ InteropZodToStateDefinition<T>

Returns a mapping of channel instances for each property in the schema using the associated metadata in the registry.

This is used to create the channels object that's passed to the Graph constructor.

method
getExtendedChannelSchemas→ InteropZodObject

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.

method
has→ boolean

Checks if metadata exists for a given schema.

method
remove→ this

Removes the metadata associated with a given schema.

View source on GitHub