Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for combinations of termination conditions in AGS #4325

Open
Tracked by #4006
victordibia opened this issue Nov 22, 2024 · 0 comments
Open
Tracked by #4006

Add support for combinations of termination conditions in AGS #4325

victordibia opened this issue Nov 22, 2024 · 0 comments
Assignees
Labels
proj-studio Related to AutoGen Studio.
Milestone

Comments

@victordibia
Copy link
Collaborator

victordibia commented Nov 22, 2024

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
      }
    ]
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proj-studio Related to AutoGen Studio.
Projects
None yet
Development

No branches or pull requests

1 participant