autogen
autogen copied to clipboard
Add support for combinations of termination conditions in AGS
Currently, you can only specify one termination condition in AGS.
"termination_condition": {
"component_type": "termination",
"termination_type": "MaxMessageTermination",
"max_messages": 10
}
However, AgentChat supports combinations of termination conditions
termination = termination = MaxMessageTermination(3) | TextMentionTermination("stop")
What
Extend AGS component factory and spec to support combinations of termination conditions
"termination_condition": {
"component_type": "termination",
"termination_type": "CombinationTermination",
"operator": "or",
"conditions": [
{
"component_type": "termination",
"termination_type": "TextMentionTermination",
"text": "TERMINATE"
},
{
"component_type": "termination",
"termination_type": "MaxMessageTermination",
"max_messages": 1
}
]
}