Repository navigation
Commit 97fedac
authored
Implement message filtering in agent workflow to stop emitting existing 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 functions1 parent 6138487 commit 97fedac
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
216 | 224 | | |
217 | 225 | | |
218 | 226 | | |
| |||
476 | 484 | | |
477 | 485 | | |
478 | 486 | | |
479 | | - | |
| 487 | + | |
480 | 488 | | |
481 | 489 | | |
482 | 490 | | |
| |||
593 | 601 | | |
594 | 602 | | |
595 | 603 | | |
596 | | - | |
| 604 | + | |
597 | 605 | | |
598 | 606 | | |
599 | 607 | | |
| |||
0 commit comments