mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: DevUI - Internal Refactor, Conversations API support, and per… (#1235)
* Python: DevUI - Internal Refactor, Conversations API support, and performance improvements Comprehensive refactor of DevUI package including samples relocation, frontend reorganization, OpenAI Conversations API support, and critical performance and code quality improvements. Key Changes: Architecture & Organization - Moved DevUI samples to python/samples/getting_started/devui/ - Consolidated with other framework samples for better discoverability - Added .env.example files and comprehensive README - Restructured frontend components into feature-based folders (agent, workflow, gallery, layout) - Created new OpenAI-compliant message renderers (devui should render oai responses types primarily) New Features - Added _conversations.py (467 lines) - Full conversation storage abstraction, replaces the /threads endpoint to better match oai conversations api - Implements OpenAI Conversations API for thread management, Supports in-memory and extensible storage backends API Simplification - Use 'model' field as entity_id (agent/workflow name) instead of extra_body - Use standard OpenAI 'conversation' field for conversation context. Performance & Quality Improvements - Improved context management in MessageMapper with bounded memory (~500KB max) - Implemented hybrid LRU + cleanup approach to prevent unbounded memory growth - General QOL improvement - Eliminated ~150 lines of dead/duplicate code, Consolidated helper functions into _utils.py, Extracted magic numbers to module-level constants, Optimized conversation item lookups with index-based approach Testing - Added test_conversations.py (13 tests) - Added test_performance_fixes.py (9 tests) - Updated existing tests for code consolidation - 53 tests passing Impact: 76 files changed: +4,106 insertions, -2,373 deletions All linting and formatting checks passing. No breaking changes - backward compatible. Migration: Samples moved to python/samples/getting_started/devui/ * readme lint fixes * initial support for function approval and minor ui fixes
This commit is contained in:
committed by
GitHub
Unverified
parent
f5abbc67ae
commit
c341ee7ed2
@@ -8,12 +8,14 @@ For step-by-step tutorials and examples, see the [getting_started](./getting_sta
|
||||
|
||||
- **[Agents](./getting_started/agents/)** - Learn how to create and use agents with various providers (Azure OpenAI, OpenAI, Azure AI, etc.)
|
||||
- **[Workflows](./getting_started/workflows/)** - Explore workflow patterns for orchestrating multiple agents
|
||||
- **[DevUI](./getting_started/devui/)** - Web interface samples for testing agents and workflows interactively
|
||||
- **[Chat Client](./getting_started/chat_client/)** - Examples of using chat clients directly
|
||||
- **[Threads](./getting_started/threads/)** - Manage conversation threads and chat message stores
|
||||
- **[Context Providers](./getting_started/context_providers/)** - Integrate with context providers like Mem0 and Redis
|
||||
- **[Middleware](./getting_started/middleware/)** - Add middleware for logging, telemetry, and custom processing
|
||||
- **[Multimodal Input](./getting_started/multimodal_input/)** - Handle images and other multimodal inputs
|
||||
- **[Observability](./getting_started/observability/)** - Add tracing and monitoring to your agents
|
||||
- **[Tools](./getting_started/tools/)** - Examples of tool usage including AI function approval and error handling
|
||||
|
||||
## Sample Guidelines
|
||||
|
||||
|
||||
Reference in New Issue
Block a user