sdkDeterministic

Manage agent chat memory

pipeline.manageAgentChatMemory

Explicitly remember, correct or forget source-backed private context, or prepare and submit an evidence-backed checkpoint. Prepare before submitting and preserve exact source IDs and digests. Corrections and forget stop affected work. No hosted inference.

Parameters

workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.

Example

TypeScripttypescript
await pipeline.manageAgentChatMemory({
"action": "prepare_checkpoint",
"conversationId": "00000000-0000-4000-8000-000000000000",
"throughSequence": 1
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"memory": {
"type": "object",
"additionalProperties": true
},
"checkpoint": {
"type": "object",
"additionalProperties": true
},
"prepared": {
"type": "object",
"properties": {
"throughSequence": {
"type": "integer"
},
"sourceDigest": {
"type": "string"
},
"sourceMessageIds": {
"type": "array",
"maxItems": 200,
"items": {
"type": "string"
}
},
"memoryDigest": {
"type": "string"
},
"expectedRevision": {
"type": "integer"
},
"messages": {
"type": "array",
"maxItems": 200,
"items": {
"type": "object",
"additionalProperties": true
}
},
"partial": {
"type": "boolean"
}
},
"required": [
"throughSequence",
"sourceDigest",
"sourceMessageIds",
"memoryDigest",
"expectedRevision",
"messages",
"partial"
],
"additionalProperties": true
}
}
}

Exceptions

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