from_payload(
cls,
payload: object,
) -> CLIContextSchema | None| Name | Type | Description |
|---|---|---|
payload* | object | The value read from |
Coerce a run's context= payload into this schema.
In-process LangGraph coerces the payload before consumers see it, so a schema instance is returned unchanged. Over the API server (RemoteGraph) the payload is JSON and arrives as a plain dict, which this rebuilds field by field. Single conversion point for every consumer: a second hand-rolled copy drifts field by field, and the copy that forgets a field drops it silently.