mirror of https://github.com/microsoft/autogen.git
Fix terminations conditions. (#6229)
<!-- Thank you for your contribution! Please review https://microsoft.github.io/autogen/docs/Contribute before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? <!-- Please give a short summary of the change and the problem this solves. --> ## Related issue number <!-- For example: "Closes #1234" --> ## Checks - [x] I've included any doc changes needed for <https://microsoft.github.io/autogen/>. See <https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> 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 <zhanluxianshen@163.com>
This commit is contained in:
parent
7acfd8a9d8
commit
8fe627e48c
|
@ -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:
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue