Update
client.projects.memory.update(stringprojectID, MemoryUpdateParams { content } body, RequestOptionsoptions?): MemoryUpdateResponse { memory }
PUT/projects/{projectId}/memory
Set the caller’s assistant memory scoped to this project (markdown, max 30KB). Set content to null to clear.
Update
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.update('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"
}
}