Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cli] update name picking prompt #49

Merged
merged 4 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/skyagi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def run():
console.print(verify_openai)
return
# Get inputs from the user
agent_count = IntPrompt.ask("Number of agents to create (at least 2 agents)?", default=3)
agent_count = IntPrompt.ask(
"Number of agents to create (at least 2 agents)?", default=3
)
if agent_count < 2:
console.print("Please config at least 2 agents, exiting", style="red")
return
Expand Down Expand Up @@ -175,7 +177,7 @@ def run():
agent_names.append(agent_config["name"])

user_role = Prompt.ask(
"Pick which role you want to perform?",
"Pick which role you want to perform? (input the exact name, case sensitive)",
choices=agent_names,
default=agent_names[0],
)
Expand Down
4 changes: 3 additions & 1 deletion src/skyagi/skyagi.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def user_robot_conversation(agent_to_interview: GenerativeAgent, ctx: Context):
agent_to_interview, user_message, ctx.user_agent.name
)
if "GOODBYE" in response:
ctx.console.print(f"{agent_to_interview.name} said Goodbye and ended the conversation")
ctx.console.print(
f"{agent_to_interview.name} said Goodbye and ended the conversation"
)
break
ctx.console.print(response)
ctx.observations.append(response)
Expand Down