Update
projects.memory.update(strproject_id, MemoryUpdateParams**kwargs) -> MemoryUpdateResponse
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 os
from scenario_sdk import Scenario
client = Scenario(
api_key=os.environ.get("SCENARIO_SDK_API_KEY"), # This is the default and can be omitted
api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"), # This is the default and can be omitted
)
memory = client.projects.memory.update(
project_id="projectId",
)
print(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"
}
}