Update
client.projects.instructions.update(stringprojectID, InstructionUpdateParams { content } body, RequestOptionsoptions?): InstructionUpdateResponse { memory }
PUT/projects/{projectId}/instructions
Set the project’s assistant instructions (markdown, max 50KB). Set content to null to clear. Team or project admins only.
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 instruction = await client.projects.instructions.update('projectId');
console.log(instruction.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"
}
}