Node: RunnableLike<InferStateSchemaValue<TFields>, InferStateSchemaUpdate<TFields>>Type declaration for node functions.
Use: typeof myState.Node to type node functions outside the graph builder.
const AgentState = new StateSchema({
count: z.number().default(0),
});
const myNode: typeof AgentState.Node = (state) => {
return { count: state.count + 1 };
};