mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
1.3 KiB
1.3 KiB
DevUI Package (agent-framework-devui)
Interactive developer UI for testing and debugging agents and workflows.
Main Classes
serve()- Launch the DevUI serverDevServer- The FastAPI-based development serverregister_cleanup()- Register cleanup hooks for entitiesCheckpointConversationManager- Manages conversation checkpoints
Models
AgentFrameworkRequest- Request model for agent invocationsOpenAIResponse/OpenAIError- OpenAI-compatible response modelsDiscoveryResponse/EntityInfo- Entity discovery models
Usage
from agent_framework.devui import serve
agent = Agent(...)
serve(entities=[agent], port=8080, auto_open=True)
CLI
# Run with auto-discovery
devui ./agents
# Run with specific entities
devui --entities my_agent.py
Security Posture
DevUI is a development-only sample app, not a production hosting surface. Authentication is enabled by default.
Unauthenticated mode is allowed only on localhost / 127.0.0.1; 0.0.0.0, LAN IPs, and hostnames require
DEVUI_AUTH_TOKEN or --auth-token.
Import Path
from agent_framework.devui import serve, register_cleanup
# or directly:
from agent_framework_devui import serve