feat: add --sleeptime CLI flag (#94)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2025-11-16 23:44:06 -08:00
committed by GitHub
parent 1dcc25fcc9
commit 9212dfb52b
3 changed files with 10 additions and 6 deletions

View File

@@ -239,10 +239,9 @@ export async function createAgent(
// Update persona block for sleeptime agents (only if persona was newly created, not shared)
if (enableSleeptime && newGlobalBlockIds.persona) {
await client.agents.blocks.modify("persona", {
await client.agents.blocks.modify("memory_persona", {
agent_id: agent.id,
value: SLEEPTIME_MEMORY_PERSONA,
label: "memory_persona",
description: "Instructions for the sleep-time memory management agent",
});
}