microsoft / microsoft/agent-framework
Python: Add middleware sample to show filtering messages between agents
Open
Nobody has claimed this yet.
orchestration
python
workflows
- Dominant language
- Python
- Stars
- 13.6k
- Forks
- 2.3k
- Avg merge
- 2d 45m
- Merged PRs (30d)
- 358
Description
## Summary
Add middleware sample for message interception between agents.
## Files
| File | Line |
|------|------|
| sample: `group_chat_agent_manager.py` | before GroupChatBuilder |
## Context
```python
# TODO: think about using middleware to help filter messages between agents
workflow = (
GroupChatBuilder()
.with_agent_orchestrator(orchestrator_agent)
```
Use cases: content filtering, message transformation, access control between agents.
## Action Items
- [ ] Design middleware interface for message interception
- [ ] Document use cases and patterns
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.