From f9037d5caa32bfd3bc1c8e9bb572771d36d5a803 Mon Sep 17 00:00:00 2001 From: Victor Dibia Date: Sun, 9 Feb 2025 18:35:56 -0800 Subject: [PATCH] minor updates --- .../agentchat-user-guide/tutorial/custom-agents.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/custom-agents.ipynb b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/custom-agents.ipynb index a4797de78261..f23ff9686f3f 100644 --- a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/custom-agents.ipynb +++ b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/custom-agents.ipynb @@ -435,7 +435,7 @@ }, { "cell_type": "code", - "execution_count": 71, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -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.\"))" ]