langchain.js
Preparing search index...
@langchain/langgraph
index
InferStateSchemaUpdate
Type Alias InferStateSchemaUpdate<TFields>
InferStateSchemaUpdate
:
{
[
K
in
keyof
TFields
]
?:
TFields
[
K
]
extends
ReducedValue
<
any
,
any
>
?
TFields
[
K
]
[
"InputType"
]
:
TFields
[
K
]
extends
UntrackedValue
<
any
>
?
TFields
[
K
]
[
"ValueType"
]
:
TFields
[
K
]
extends
SerializableSchema
<
infer
TInput
,
any
>
?
TInput
:
never
}
Infer the Update type from a StateSchemaFields. This is the type for partial updates to state.
ReducedValue<Value, Input> → Input (the reducer input type)
UntrackedValue
→ Value
SerializableSchema<Input, Output> → Input (what you provide)
Type Parameters
TFields
extends
StateSchemaFields
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
langchain.js
Loading...
Infer the Update type from a StateSchemaFields. This is the type for partial updates to state.