agent-framework-devui 1.0.0b251001__py3-none-any.whl → 1.0.0b251016__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of agent-framework-devui might be problematic. Click here for more details.

@@ -1,172 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: agent-framework-devui
3
- Version: 1.0.0b251001
4
- Summary: Debug UI for Microsoft Agent Framework with OpenAI-compatible API server.
5
- Author-email: Microsoft <af-support@microsoft.com>
6
- Requires-Python: >=3.10
7
- Description-Content-Type: text/markdown
8
- Classifier: License :: OSI Approved :: MIT License
9
- Classifier: Development Status :: 4 - Beta
10
- Classifier: Intended Audience :: Developers
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.10
13
- Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.12
15
- Classifier: Programming Language :: Python :: 3.13
16
- Classifier: Typing :: Typed
17
- License-File: LICENSE
18
- Requires-Dist: agent-framework-core
19
- Requires-Dist: fastapi>=0.104.0
20
- Requires-Dist: uvicorn[standard]>=0.24.0
21
- Requires-Dist: python-dotenv>=1.0.0
22
- Requires-Dist: pytest>=7.0.0 ; extra == "all"
23
- Requires-Dist: watchdog>=3.0.0 ; extra == "all"
24
- Requires-Dist: pytest>=7.0.0 ; extra == "dev"
25
- Requires-Dist: watchdog>=3.0.0 ; extra == "dev"
26
- Project-URL: homepage, https://aka.ms/agent-framework
27
- Project-URL: issues, https://github.com/microsoft/agent-framework/issues
28
- Project-URL: release_notes, https://github.com/microsoft/agent-framework/releases?q=tag%3Apython-1&expanded=true
29
- Project-URL: source, https://github.com/microsoft/agent-framework/tree/main/python
30
- Provides-Extra: all
31
- Provides-Extra: dev
32
-
33
- # DevUI - A Sample App for Running Agents and Workflows
34
-
35
- A lightweight, standalone sample app interface for running entities (agents/workflows) in the Microsoft Agent Framework supporting **directory-based discovery**, **in-memory entity registration**, and **sample entity gallery**.
36
-
37
- > [!IMPORTANT]
38
- > DevUI is a **sample app** to help you get started with the Agent Framework. It is **not** intended for production use. For production, or for features beyond what is provided in this sample app, it is recommended that you build your own custom interface and API server using the Agent Framework SDK.
39
-
40
- ![DevUI Screenshot](./docs/devuiscreen.png)
41
-
42
- ## Quick Start
43
-
44
- ```bash
45
- # Install
46
- pip install agent-framework-devui
47
- ```
48
-
49
- You can also launch it programmatically
50
-
51
- ```python
52
- from agent_framework import ChatAgent
53
- from agent_framework.openai import OpenAIChatClient
54
- from agent_framework.devui import serve
55
-
56
- def get_weather(location: str) -> str:
57
- """Get weather for a location."""
58
- return f"Weather in {location}: 72°F and sunny"
59
-
60
- # Create your agent
61
- agent = ChatAgent(
62
- name="WeatherAgent",
63
- chat_client=OpenAIChatClient(),
64
- tools=[get_weather]
65
- )
66
-
67
- # Launch debug UI - that's it!
68
- serve(entities=[agent], auto_open=True)
69
- # → Opens browser to http://localhost:8080
70
- ```
71
-
72
- In addition, if you have agents/workflows defined in a specific directory structure (see below), you can launch DevUI from the _cli_ to discover and run them.
73
-
74
- ```bash
75
-
76
- # Launch web UI + API server
77
- devui ./agents --port 8080
78
- # → Web UI: http://localhost:8080
79
- # → API: http://localhost:8080/v1/*
80
- ```
81
-
82
- When DevUI starts with no discovered entities, it displays a **sample entity gallery** with curated examples from the Agent Framework repository to help you get started quickly.
83
-
84
- ## Directory Structure
85
-
86
- For your agents to be discovered by the DevUI, they must be organized in a directory structure like below. Each agent/workflow must have an `__init__.py` that exports the required variable (`agent` or `workflow`).
87
-
88
- **Note**: `.env` files are optional but will be automatically loaded if present in the agent/workflow directory or parent entities directory. Use them to store API keys, configuration variables, and other environment-specific settings.
89
-
90
- ```
91
- agents/
92
- ├── weather_agent/
93
- │ ├── __init__.py # Must export: agent = ChatAgent(...)
94
- │ ├── agent.py
95
- │ └── .env # Optional: API keys, config vars
96
- ├── my_workflow/
97
- │ ├── __init__.py # Must export: workflow = WorkflowBuilder()...
98
- │ ├── workflow.py
99
- │ └── .env # Optional: environment variables
100
- └── .env # Optional: shared environment variables
101
- ```
102
-
103
- ## Viewing Telemetry (Otel Traces) in DevUI
104
-
105
- Agent Framework emits OpenTelemetry (Otel) traces for various operations. You can view these traces in DevUI by enabling tracing when starting the server.
106
-
107
- ```bash
108
- devui ./agents --tracing framework
109
- ```
110
-
111
- ## OpenAI-Compatible API
112
-
113
- For convenience, you can interact with the agents/workflows using the standard OpenAI API format. Just specify the `entity_id` in the `extra_body` field. This can be an `agent_id` or `workflow_id`.
114
-
115
- ```bash
116
- # Standard OpenAI format
117
- curl -X POST http://localhost:8080/v1/responses \
118
- -H "Content-Type: application/json" \
119
- -d @- << 'EOF'
120
- {
121
- "model": "agent-framework",
122
- "input": "Hello world",
123
- "extra_body": {"entity_id": "weather_agent"}
124
- }
125
-
126
- ```
127
-
128
- ## CLI Options
129
-
130
- ```bash
131
- devui [directory] [options]
132
-
133
- Options:
134
- --port, -p Port (default: 8080)
135
- --host Host (default: 127.0.0.1)
136
- --headless API only, no UI
137
- --config YAML config file
138
- --tracing none|framework|workflow|all
139
- --reload Enable auto-reload
140
- ```
141
-
142
- ## Key Endpoints
143
-
144
- - `GET /v1/entities` - List discovered agents/workflows
145
- - `GET /v1/entities/{entity_id}/info` - Get detailed entity information
146
- - `POST /v1/entities/add` - Add entity from URL (for gallery samples)
147
- - `DELETE /v1/entities/{entity_id}` - Remove remote entity
148
- - `POST /v1/responses` - Execute agent/workflow (streaming or sync)
149
- - `GET /health` - Health check
150
- - `POST /v1/threads` - Create thread for agent (optional)
151
- - `GET /v1/threads?agent_id={id}` - List threads for agent
152
- - `GET /v1/threads/{thread_id}` - Get thread info
153
- - `DELETE /v1/threads/{thread_id}` - Delete thread
154
- - `GET /v1/threads/{thread_id}/messages` - Get thread messages
155
-
156
- ## Implementation
157
-
158
- - **Discovery**: `agent_framework_devui/_discovery.py`
159
- - **Execution**: `agent_framework_devui/_executor.py`
160
- - **Message Mapping**: `agent_framework_devui/_mapper.py`
161
- - **Session Management**: `agent_framework_devui/_session.py`
162
- - **API Server**: `agent_framework_devui/_server.py`
163
- - **CLI**: `agent_framework_devui/_cli.py`
164
-
165
- ## Examples
166
-
167
- See `samples/` for working agent and workflow implementations.
168
-
169
- ## License
170
-
171
- MIT
172
-
@@ -1,20 +0,0 @@
1
- agent_framework_devui/__init__.py,sha256=Hk2ddFHRvxe6Ytz59g2dKCs-wreG7pi7DuMgbUIeqiY,5079
2
- agent_framework_devui/_cli.py,sha256=UnQ6xRfDnaZcDnlI2GCiFKjoZ1mkOqpPctEaZ9Zyhxc,4604
3
- agent_framework_devui/_discovery.py,sha256=5cuevVnQ3bN1JEVF-uJ0My0Poid1uLaLMfjq3DafJuo,27462
4
- agent_framework_devui/_executor.py,sha256=JCQw2YYAuALKxupCWAuIzDJXYHv7Tv82EbBw_IHN_ps,31995
5
- agent_framework_devui/_mapper.py,sha256=Y99AofK_grj_VOqxGqfmUZQ8iwRKwOcAMO9TYgfhnNw,24558
6
- agent_framework_devui/_server.py,sha256=0jZ8N2mNfU0dLOWeriF3LknmsPbeWW0xzS4SgBgN-tM,24506
7
- agent_framework_devui/_session.py,sha256=FIxfdKc7Z8Q13GpYTImEzpyZwVIcx6PC8cUSKDBBumo,6027
8
- agent_framework_devui/_tracing.py,sha256=ZoYKYomFB0VjiEBFgPsSu2ocpnPushWczKl5QndSUjQ,6152
9
- agent_framework_devui/models/__init__.py,sha256=hP1oLW7XdoKo-8W7RnJgeK74x0LcdU4CTEADf5a96kU,2026
10
- agent_framework_devui/models/_discovery_models.py,sha256=JUK5w5F_Wa58UADJzRWYn_jiv6hRRGEnh69pJT1TQ5Y,1428
11
- agent_framework_devui/models/_openai_custom.py,sha256=CvnJlkRpDnPhI-KVJJiYi1ZKOlCQlLHldiJpb2WzJ2E,6352
12
- agent_framework_devui/ui/index.html,sha256=BUII9nBcNAlWpH3u3kc7TrWQevt1I6WL7_YscjlDFXQ,469
13
- agent_framework_devui/ui/vite.svg,sha256=SnSK_UQ5GLsWWRyDTEAdrjPoeGGrXbrQgRw6O0qSFPs,1497
14
- agent_framework_devui/ui/assets/index-D1AmQWga.css,sha256=t90ENwgHXtVHlGhcczmh2_CFg4XlOKMXFAjGKkaLzak,86064
15
- agent_framework_devui/ui/assets/index-DPEaaIdK.js,sha256=N-7rwEhaoabYRB80sTVH2Mtvx3k6uU4bn5DLkppnjsg,663901
16
- agent_framework_devui-1.0.0b251001.dist-info/entry_points.txt,sha256=H6Vq4nNyU8GryiFv215LfIF9pjVnow9Ono-pJzZ6zsI,52
17
- agent_framework_devui-1.0.0b251001.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
18
- agent_framework_devui-1.0.0b251001.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
19
- agent_framework_devui-1.0.0b251001.dist-info/METADATA,sha256=Qzudyg-VsFYYMG4wkpZQ7Js78pO2u-MEfqKEIPUExvM,6248
20
- agent_framework_devui-1.0.0b251001.dist-info/RECORD,,