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

Save bools role playing #35

Merged
merged 3 commits into from
Mar 27, 2023
Merged

Save bools role playing #35

merged 3 commits into from
Mar 27, 2023

Conversation

lightaime
Copy link
Member

No description provided.

@lightaime lightaime added the Agent Related to camel agents label Mar 27, 2023
@lightaime lightaime requested a review from Obs01ete March 27, 2023 14:45
@lightaime lightaime self-assigned this Mar 27, 2023
@@ -27,8 +27,6 @@ def main() -> None:
print(
Fore.CYAN +
f"Specified task prompt:\n{role_play_session.specified_task_prompt}\n")
print(Fore.MAGENTA +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In RolePlaying ctor specify else branches for if with_task_specify: to set self.specified_task_prompt = None.
For if with_task_planner: - the same.

@@ -43,7 +41,7 @@ def main() -> None:
print_text_animated(Fore.GREEN +
f"AI Assistant:\n\n{assistant_msg.content}\n\n")

if "<CAMEL_TASK_DONE>" in user_msg.content:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about making "CAMEL_TASK_DONE" a class constant like self.task_done_keyword. You have it in other places

if "<CAMEL_TASK_DONE>" in user_msg.content:

Also what's the point of removing <> ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

message_dict['termination_reason'] = "<CAMEL_TASK_DONE>"

Copy link
Member Author

@lightaime lightaime Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes the user replies with CAMEL_TASK_DONE without <>. So I remove it. Making it a class constant sounds good to me. I will fix it in following PRs.

@Obs01ete
Copy link
Collaborator

All good, you can merge

@lightaime lightaime merged commit 95d9011 into master Mar 27, 2023
@lightaime lightaime deleted the save_bools_role_playing branch March 27, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agent Related to camel agents Example
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants