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:
湛露先生 2025-04-07 23:24:54 +08:00 committed by GitHub
parent 7acfd8a9d8
commit 8fe627e48c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -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:

View File

@ -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",