sdkDeterministic

Read agent chat memory

pipeline.readAgentChatMemory

Read authorized private memory and checkpoint for this conversation. Saved entries never authorize domain actions.

Parameters

workspaceId
string
No description.
conversationIdrequired
string
No description.
profileId
string
No description.

Example

TypeScripttypescript
await pipeline.readAgentChatMemory({
"conversationId": "00000000-0000-4000-8000-000000000000"
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"memories": {
"type": "array",
"maxItems": 12,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"revision": {
"type": "integer"
},
"scope": {
"type": "string",
"enum": [
"agent",
"conversation"
]
},
"key": {
"type": "string"
},
"value": {
"type": "string"
},
"sourceConversationId": {
"type": "string"
},
"sourceMessageId": {
"type": "string"
}
},
"required": [
"id",
"revision",
"scope",
"key",
"value",
"sourceConversationId",
"sourceMessageId"
],
"additionalProperties": true
}
},
"checkpoint": {
"type": [
"object",
"null"
],
"additionalProperties": true
},
"contextDigest": {
"type": "string"
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"selectedMemoryIds": {
"type": "array",
"maxItems": 6,
"items": {
"type": "string"
}
}
},
"required": [
"memories",
"checkpoint",
"contextDigest",
"provenance",
"selectedMemoryIds"
]
}

Exceptions

PipelineError
Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.
Pipeline TypeScript SDK documentation | Pipeline