Update
projects.instructions.update(strproject_id, InstructionUpdateParams**kwargs) -> InstructionUpdateResponse
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 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
)
instruction = client.projects.instructions.update(
project_id="projectId",
)
print(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"
}
}