Skip to content

Commit f9037d5

Browse files
committed
minor updates
1 parent b3041ad commit f9037d5

File tree

1 file changed

+3
-3
lines changed
  • python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial

1 file changed

+3
-3
lines changed

python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/custom-agents.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
},
436436
{
437437
"cell_type": "code",
438-
"execution_count": 71,
438+
"execution_count": null,
439439
"metadata": {},
440440
"outputs": [
441441
{
@@ -497,10 +497,10 @@
497497
"\n",
498498
"\n",
499499
"# Define a termination condition that stops the task if the critic approves or after 10 messages.\n",
500-
"text_termination = TextMentionTermination(\"APPROVE\") | MaxMessageTermination(10)\n",
500+
"termination = TextMentionTermination(\"APPROVE\") | MaxMessageTermination(10)\n",
501501
"\n",
502502
"# Create a team with the primary and critic agents.\n",
503-
"team = RoundRobinGroupChat([primary_agent, gemini_critic_agent], termination_condition=text_termination)\n",
503+
"team = RoundRobinGroupChat([primary_agent, gemini_critic_agent], termination_condition=termination)\n",
504504
"\n",
505505
"await Console(team.run_stream(task=\"Write a Haiku poem with 4 lines about the fall season.\"))"
506506
]

0 commit comments

Comments
 (0)