Skip to content

Commit

Permalink
fix server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahwooders committed Jun 30, 2024
1 parent 5ba118f commit fe24dad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
utils.DEBUG = True
from memgpt.config import MemGPTConfig
from memgpt.credentials import MemGPTCredentials
from memgpt.memory import ChatMemory
from memgpt.server.server import SyncServer
from memgpt.settings import settings

Expand Down Expand Up @@ -69,9 +70,7 @@ def user_id(server):
def agent_id(server, user_id):
# create agent
agent_state = server.create_agent(
user_id=user_id,
name="test_agent",
tools=BASE_TOOLS,
user_id=user_id, name="test_agent", tools=BASE_TOOLS, memory=ChatMemory(human="I am Chad", persona="I love testing")
)
print(f"Created agent\n{agent_state}")
yield agent_state.id
Expand Down

0 comments on commit fe24dad

Please sign in to comment.