fix: removed superfluous create_agent calls (#1000)

This commit is contained in:
Charles Packer
2024-02-19 10:13:41 -08:00
committed by GitHub
parent 9b93ca5c8f
commit d64178655d
2 changed files with 2 additions and 2 deletions

View File

@@ -601,7 +601,7 @@ def run(
llm_config=llm_config,
embedding_config=embedding_config,
)
ms.create_agent(agent_state)
# ms.create_agent(agent_state)
typer.secho(f"-> 🤖 Using persona profile '{agent_state.persona}'", fg=typer.colors.WHITE)
typer.secho(f"-> 🧑 Using human profile '{agent_state.human}'", fg=typer.colors.WHITE)

View File

@@ -606,7 +606,7 @@ class SyncServer(LockingServer):
)
# NOTE: you MUST add to the metadata store before creating the agent, otherwise the storage connectors will error on creation
# TODO: fix this db dependency and remove
self.ms.create_agent(agent_state)
# self.ms.create_agent(agent_state)
logger.debug(f"Attempting to create agent from agent_state:\n{agent_state}")
try: