Skip to content

Python: Implement message filtering in agent workflow to stop emitting already seen responses#4268

Open
leelakarthik wants to merge 1 commit intomicrosoft:mainfrom
leelakarthik:patch-6
Open

Python: Implement message filtering in agent workflow to stop emitting already seen responses#4268
leelakarthik wants to merge 1 commit intomicrosoft:mainfrom
leelakarthik:patch-6

Conversation

@leelakarthik
Copy link

…ng messages in response

Add a method to filter messages and update message handling.

This helps remove the user messages being duplicated/emitted in the response

This fixes the #4261 for both streaming and non streaming functions

Motivation and Context

Description

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

…ng messages in response

Add a method to filter messages and update message handling.

This helps remove the user messages being duplicated/emitted in the response

This fixes the microsoft#4261 for both streaming and non streaming functions
@github-actions github-actions bot changed the title Implement message filtering in agent workflow to stop emitting already seen responses Python: Implement message filtering in agent workflow to stop emitting already seen responses Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants