fix: enable updating agent timezone (#3095)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user