A newer version of the Gradio SDK is available:
6.1.0
Microsoft Agent Framework Usage Report
Date: 2025-12-06 Framework Version: agent-framework-core==1.0.0b251204
What We Use From MS Framework (pip installed)
Core Classes
BaseChatClient- Base class for chat clientsChatMessage,ChatRole- Message typesChatOptions- Request configurationChatAgent- Agent base class
Decorators (Applied to HuggingFaceChatClient)
@use_function_invocation- Enables tool/function calling@use_observability- Adds OTEL tracing hooks@use_chat_middleware- Enables middleware pipeline
Middleware Base Classes (Available but NOT yet used)
ChatMiddleware- Intercepts chat client requestsAgentMiddleware- Intercepts agent invocationsFunctionMiddleware- Intercepts tool calls
What We Hand-Roll (Custom Implementation)
Orchestration
AdvancedOrchestrator- Main research workflowHierarchicalOrchestrator- Team-based orchestrationSubIterationMiddleware- Team→judge loop (workflow, not middleware)
Clients
HuggingFaceChatClient- Adapter for HuggingFace Inference API- Client factory with auto-detection
Tools
PubMedTool,ClinicalTrialsTool,EuropePMCToolSearchHandler- Scatter-gather orchestration
Services
EmbeddingService- Local sentence-transformersLlamaIndexRAG- Premium OpenAI embeddingsResearchMemory- Research state management
Gap Analysis
| Component | MS Framework Has | DeepBoner Has | Status |
|---|---|---|---|
| Chat Middleware | ChatMiddleware base |
Uses decorator only | SPEC-21 |
| Retry Logic | N/A (left to user) | None | SPEC-21 |
| Token Tracking | OTEL histograms | None | SPEC-21 |
| Thread State | AgentThread serialization |
ResearchMemory (no serialization) |
P3 |
| Observability | Full OTEL | structlog only | P3 |
Recommendations
- Implement
RetryMiddlewareusing MSChatMiddlewarebase class - Implement
TokenTrackingMiddlewarefor cost visibility - Rename
src/middleware/to avoid confusion with MS patterns
See SPEC-21 for implementation details.