Retrieve
client.projects.memory.retrieve(stringprojectID, RequestOptionsoptions?): MemoryRetrieveResponse { memory }
GET/projects/{projectId}/memory
Get the caller’s assistant memory scoped to this project (auto-learned). Returns 404 if empty.
Retrieve
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
const memory = await client.projects.memory.retrieve('projectId');
console.log(memory.memory);{
"memory": {
"id": "id",
"content": "content",
"createdAt": "createdAt",
"sizeBytes": 0,
"updatedAt": "updatedAt",
"updatedBy": "updatedBy"
}
}Returns Examples
{
"memory": {
"id": "id",
"content": "content",
"createdAt": "createdAt",
"sizeBytes": 0,
"updatedAt": "updatedAt",
"updatedBy": "updatedBy"
}
}