Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
victordibia committed Feb 10, 2025
1 parent b3041ad commit f9037d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
},
{
"cell_type": "code",
"execution_count": 71,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -497,10 +497,10 @@
"\n",
"\n",
"# Define a termination condition that stops the task if the critic approves or after 10 messages.\n",
"text_termination = TextMentionTermination(\"APPROVE\") | MaxMessageTermination(10)\n",
"termination = TextMentionTermination(\"APPROVE\") | MaxMessageTermination(10)\n",
"\n",
"# Create a team with the primary and critic agents.\n",
"team = RoundRobinGroupChat([primary_agent, gemini_critic_agent], termination_condition=text_termination)\n",
"team = RoundRobinGroupChat([primary_agent, gemini_critic_agent], termination_condition=termination)\n",
"\n",
"await Console(team.run_stream(task=\"Write a Haiku poem with 4 lines about the fall season.\"))"
]
Expand Down

0 comments on commit f9037d5

Please sign in to comment.