Skip to main content

Function: parseStoredRequest()

parseStoredRequest(json): StoredRequest | null

Defined in: packages/agentos/src/cognition/emergent/persisted-source.ts:297

Reads a request_json column. Anything unreadable is treated as no stored request, and so is a request without its list or one that names a capability outside the catalogue: the caller derives the request from the source again. The result is rebuilt field by field, so it holds catalogue names and nothing the column carried beyond the request.

Parameters​

json​

string | null | undefined

Returns​

StoredRequest | null