@orangecheck/agent-langgraph / graphStateHash
Function: graphStateHash()
function graphStateHash(state: Record<string, unknown>): string;
Defined in: index.ts:44
Compute a stable hash of a LangGraph state object. Use canonical JSON
(RFC 8785) so reordered keys / repeated serializations produce the same
hash. Returns sha256:<64-hex>.
Most LangGraph deployments persist the state object via a checkpointer (in-memory, postgres, redis, etc.). The state-hash here is over the checkpointer's serialized state at the moment the tool node fires.
Parameters
| Parameter | Type |
|---|---|
state | Record<string, unknown> |
Returns
string