agent-framework-devui 0.0.1a0__py3-none-any.whl → 1.0.0b251001__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.

@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Agent Framework Dev UI</title>
8
+ <script type="module" crossorigin src="/assets/index-DPEaaIdK.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-D1AmQWga.css">
10
+ </head>
11
+ <body>
12
+ <div id="root"></div>
13
+ </body>
14
+ </html>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1,172 @@
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
+
@@ -0,0 +1,20 @@
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,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: flit 3.12.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ devui=agent_framework_devui:main
3
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -1,18 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: agent-framework-devui
3
- Version: 0.0.1a0
4
- Summary: Agent Framework Dev UI
5
- Author-email: Agent Framework Devs <ekzhu@microsoft.com>
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://pypi.org/project/agent-framework-devui/
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3 :: Only
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.8
12
- Description-Content-Type: text/markdown
13
- License-File: LICENSE
14
- Dynamic: license-file
15
-
16
- # agent-framework-devui
17
-
18
- Agent Framework Dev UI
@@ -1,5 +0,0 @@
1
- agent_framework_devui-0.0.1a0.dist-info/licenses/LICENSE,sha256=tXr82ogDNlpu98cOzhowZAz--s3FEcNSFElKbM8YESE,1077
2
- agent_framework_devui-0.0.1a0.dist-info/METADATA,sha256=oxPBsAr_JVTobnKCSt4LxYcw4c-eLa-nIZIoebTKBBc,558
3
- agent_framework_devui-0.0.1a0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
- agent_framework_devui-0.0.1a0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
- agent_framework_devui-0.0.1a0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Agent Framework Devs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.