Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Don't prompt for selecting existing agent if there is a `--persona/human/model` flag (#289)
Sarah Wooders62c112825247
diff --git a/memgpt/cli/cli.py b/memgpt/cli/cli.pyindex 25313b3ee..7a2a21017 100644--- a/memgpt/cli/cli.py+++ b/memgpt/cli/cli.py@@ -85,7 +85,7 @@ def run(agent_files = utils.list_agent_config_files()agents = [AgentConfig.load(f).name for f in agent_files]- if len(agents) > 0:+ if len(agents) > 0 and not any([persona, human, model]):select_agent = questionary.confirm("Would you like to select an existing agent?").ask()if select_agent:agent = questionary.select("Select agent:", choices=agents).ask()