Skip to content

Commit

Permalink
Don't prompt for selecting existing agent if there is a `--persona/hu…
Browse files Browse the repository at this point in the history
…man/model` flag (#289)
  • Loading branch information
sarahwooders authored Nov 3, 2023
1 parent aeef2f6 commit d6da219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memgpt/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d6da219

Please sign in to comment.