From 8c900b7576b6e38bf569f31173d40ded320001b8 Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Thu, 10 Oct 2024 14:54:28 -0700 Subject: [PATCH] check if request agent type is None --- letta/server/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/letta/server/server.py b/letta/server/server.py index 01a59d8c44..5bbf3f5b11 100644 --- a/letta/server/server.py +++ b/letta/server/server.py @@ -746,6 +746,9 @@ def create_agent( if request.name is None: request.name = create_random_username() + if request.agent_type is None: + request.agent_type = AgentType.memgpt_agent + # system debug if request.system is None: # TODO: don't hardcode