The state schema of a deep agent or subagent: the caller's fields, plus the delta channels for every key the caller leaves out.
A zod schema is copied field by field the way LangChain's createAgent reads
one, keeping reducers registered on zod v4 fields, because a StateSchema
cannot hold a zod object. Anything else createAgent ignores, so it is
ignored here too. This follows createAgentState in langchain 1.6.0
(dist/agents/annotation.js); recheck it when langchain changes how it
reads a state schema.
deepAgentStateSchema(stateSchema: InteropZodObject | AnyStateSchema): AnyStateSchema| Name | Type | Description |
|---|---|---|
stateSchema | InteropZodObject | AnyStateSchema |