fix: enable updating agent timezone (#3095)

This commit is contained in:
Sarah Wooders
2025-06-29 11:30:47 -07:00
committed by GitHub
parent d1a0dae9fb
commit 0f5bc65aa2
2 changed files with 6 additions and 0 deletions

View File

@@ -779,6 +779,7 @@ class AgentManager:
"response_format": agent_update.response_format,
"last_run_completion": agent_update.last_run_completion,
"last_run_duration_ms": agent_update.last_run_duration_ms,
"timezone": agent_update.timezone,
}
for col, val in scalar_updates.items():
if val is not None:

View File

@@ -687,6 +687,11 @@ def test_timezone(client: Letta):
or "PST" in response.messages[1].content
)
# test updating the timezone
client.agents.modify(agent_id=agent.id, timezone="America/New_York")
agent = client.agents.retrieve(agent_id=agent.id)
assert agent.timezone == "America/New_York"
def test_attach_sleeptime_block(client: Letta):