From 8fe627e48cf8c11b8c8a3a13076d9f50013a0ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=9B=E9=9C=B2=E5=85=88=E7=94=9F?= Date: Mon, 7 Apr 2025 23:24:54 +0800 Subject: [PATCH] Fix terminations conditions. (#6229) ## Why are these changes needed? ## Related issue number ## Checks - [x] I've included any doc changes needed for . See to build and test documentation locally. - [x] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [x] I've made sure all auto checks have passed. Signed-off-by: zhanluxianshen --- .../src/autogen_agentchat/conditions/_terminations.py | 1 + .../user-guide/agentchat-user-guide/tutorial/termination.ipynb | 1 + 2 files changed, 2 insertions(+) diff --git a/python/packages/autogen-agentchat/src/autogen_agentchat/conditions/_terminations.py b/python/packages/autogen-agentchat/src/autogen_agentchat/conditions/_terminations.py index bccdd179d..82ff975b6 100644 --- a/python/packages/autogen-agentchat/src/autogen_agentchat/conditions/_terminations.py +++ b/python/packages/autogen-agentchat/src/autogen_agentchat/conditions/_terminations.py @@ -502,6 +502,7 @@ class FunctionCallTermination(TerminationCondition, Component[FunctionCallTermin """ component_config_schema = FunctionCallTerminationConfig + component_provider_override = "autogen_agentchat.conditions.FunctionCallTermination" """The schema for the component configuration.""" def __init__(self, function_name: str) -> None: diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb index f02ca26fc..895303fe4 100644 --- a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb +++ b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb @@ -326,6 +326,7 @@ " \"\"\"Terminate the conversation if a FunctionExecutionResult with a specific name is received.\"\"\"\n", "\n", " component_config_schema = FunctionCallTerminationConfig\n", + " component_provider_override = \"autogen_agentchat.conditions.FunctionCallTermination\"\n", " \"\"\"The schema for the component configuration.\"\"\"\n", "\n", " def __init__(self, function_name: str) -> None:\n",