Skip to content

Conversation

@ShyamSathish005
Copy link
Contributor

Fixes #6163

Added support for a broader range of termination conditions in AGS UI to ensure parity with AgentChat

  • Abstractions/Termination.cs: Add new termination conditions FunctionCallTermination, HandoffTermination, TokenUsageTermination, SourceMatchTermination, TextMentionTermination, and StopMessageTermination to the ITerminationCondition interface. Update the CombinerCondition class to support the new termination conditions.
  • Terminations/ExternalTermination.cs: Update the ExternalTermination class to support the new termination conditions.
  • Terminations/FunctionCallTermination.cs: Update the FunctionCallTermination class to support the new termination conditions.
  • Terminations/HandoffTermination.cs: Update the HandoffTermination class to support the new termination conditions.
  • Terminations/TokenUsageTermination.cs: Update the TokenUsageTermination class to support the new termination conditions.
  • Terminations/SourceMatchTermination.cs: Update the SourceMatchTermination class to support the new termination conditions.
  • Terminations/TextMentionTermination.cs: Update the TextMentionTermination class to support the new termination conditions.
  • Terminations/StopMessageTermination.cs: Update the StopMessageTermination class to support the new termination conditions.
  • Tests/TerminationConditionTests.cs: Add unit tests for the new termination conditions in the TerminationConditionTests class.

Fixes microsoft#6163

Added support for a broader range of termination conditions in AGS UI to ensure parity with AgentChat

* **Abstractions/Termination.cs**: Add new termination conditions `FunctionCallTermination`, `HandoffTermination`, `TokenUsageTermination`, `SourceMatchTermination`, `TextMentionTermination`, and `StopMessageTermination` to the `ITerminationCondition` interface. Update the `CombinerCondition` class to support the new termination conditions.
* **Terminations/ExternalTermination.cs**: Update the `ExternalTermination` class to support the new termination conditions.
* **Terminations/FunctionCallTermination.cs**: Update the `FunctionCallTermination` class to support the new termination conditions.
* **Terminations/HandoffTermination.cs**: Update the `HandoffTermination` class to support the new termination conditions.
* **Terminations/TokenUsageTermination.cs**: Update the `TokenUsageTermination` class to support the new termination conditions.
* **Terminations/SourceMatchTermination.cs**: Update the `SourceMatchTermination` class to support the new termination conditions.
* **Terminations/TextMentionTermination.cs**: Update the `TextMentionTermination` class to support the new termination conditions.
* **Terminations/StopMessageTermination.cs**: Update the `StopMessageTermination` class to support the new termination conditions.
* **Tests/TerminationConditionTests.cs**: Add unit tests for the new termination conditions in the `TerminationConditionTests` class.
@victordibia
Copy link
Collaborator

Thanks for the PR.
This is fairly unrelated to #6163 (which is mostly focused on updating the AGS studio frontend). Will close this out for now.

if you meant to create termination conditions for the dotnet agentchat implementation, it would be great if you can create an issue/discussion and then proceed from there.

Closing this one out for now.

@victordibia victordibia closed this May 8, 2025
@ShyamSathish005 ShyamSathish005 deleted the support-wider-termination-conditions branch May 11, 2025 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support a wider range of termination conditions in AGS

2 participants