django-agent-studio 0.1.0__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.
- django_agent_studio/__init__.py +12 -0
- django_agent_studio/api/__init__.py +4 -0
- django_agent_studio/api/permissions.py +160 -0
- django_agent_studio/api/serializers.py +606 -0
- django_agent_studio/api/urls.py +245 -0
- django_agent_studio/api/views.py +1548 -0
- django_agent_studio/apps.py +24 -0
- django_agent_studio/management/__init__.py +2 -0
- django_agent_studio/management/commands/__init__.py +2 -0
- django_agent_studio/static/agent-frontend/chat-widget-markdown.js +110 -0
- django_agent_studio/static/agent-frontend/chat-widget.css +1401 -0
- django_agent_studio/static/agent-frontend/chat-widget.js +319 -0
- django_agent_studio/templates/django_agent_studio/agent_list.html +101 -0
- django_agent_studio/templates/django_agent_studio/base.html +137 -0
- django_agent_studio/templates/django_agent_studio/builder.html +1443 -0
- django_agent_studio/templates/django_agent_studio/home.html +97 -0
- django_agent_studio/templates/django_agent_studio/test.html +126 -0
- django_agent_studio/urls.py +25 -0
- django_agent_studio/views.py +100 -0
- django_agent_studio-0.1.0.dist-info/METADATA +416 -0
- django_agent_studio-0.1.0.dist-info/RECORD +23 -0
- django_agent_studio-0.1.0.dist-info/WHEEL +5 -0
- django_agent_studio-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"""
|
|
2
|
+
API URL configuration for django_agent_studio.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from django.urls import path
|
|
6
|
+
|
|
7
|
+
from django_agent_studio.api import views
|
|
8
|
+
|
|
9
|
+
urlpatterns = [
|
|
10
|
+
# Agent definition CRUD
|
|
11
|
+
path("agents/", views.AgentDefinitionListCreateView.as_view(), name="agent_list"),
|
|
12
|
+
path("agents/<uuid:pk>/", views.AgentDefinitionDetailView.as_view(), name="agent_detail"),
|
|
13
|
+
|
|
14
|
+
# Agent versions
|
|
15
|
+
path(
|
|
16
|
+
"agents/<uuid:agent_id>/versions/",
|
|
17
|
+
views.AgentVersionListCreateView.as_view(),
|
|
18
|
+
name="version_list",
|
|
19
|
+
),
|
|
20
|
+
path(
|
|
21
|
+
"agents/<uuid:agent_id>/versions/<uuid:pk>/",
|
|
22
|
+
views.AgentVersionDetailView.as_view(),
|
|
23
|
+
name="version_detail",
|
|
24
|
+
),
|
|
25
|
+
path(
|
|
26
|
+
"agents/<uuid:agent_id>/versions/<uuid:pk>/activate/",
|
|
27
|
+
views.AgentVersionActivateView.as_view(),
|
|
28
|
+
name="version_activate",
|
|
29
|
+
),
|
|
30
|
+
|
|
31
|
+
# Agent tools
|
|
32
|
+
path(
|
|
33
|
+
"agents/<uuid:agent_id>/tools/",
|
|
34
|
+
views.AgentToolListCreateView.as_view(),
|
|
35
|
+
name="tool_list",
|
|
36
|
+
),
|
|
37
|
+
path(
|
|
38
|
+
"agents/<uuid:agent_id>/tools/<uuid:pk>/",
|
|
39
|
+
views.AgentToolDetailView.as_view(),
|
|
40
|
+
name="tool_detail",
|
|
41
|
+
),
|
|
42
|
+
|
|
43
|
+
# Agent knowledge
|
|
44
|
+
path(
|
|
45
|
+
"agents/<uuid:agent_id>/knowledge/",
|
|
46
|
+
views.AgentKnowledgeListCreateView.as_view(),
|
|
47
|
+
name="knowledge_list",
|
|
48
|
+
),
|
|
49
|
+
path(
|
|
50
|
+
"agents/<uuid:agent_id>/knowledge/<uuid:pk>/",
|
|
51
|
+
views.AgentKnowledgeDetailView.as_view(),
|
|
52
|
+
name="knowledge_detail",
|
|
53
|
+
),
|
|
54
|
+
|
|
55
|
+
# Template agents (public)
|
|
56
|
+
path("templates/", views.TemplateAgentListView.as_view(), name="template_list"),
|
|
57
|
+
|
|
58
|
+
# Fork an agent from template
|
|
59
|
+
path("agents/<uuid:pk>/fork/", views.AgentForkView.as_view(), name="agent_fork"),
|
|
60
|
+
|
|
61
|
+
# ==========================================================================
|
|
62
|
+
# Dynamic Tool Discovery Endpoints
|
|
63
|
+
# ==========================================================================
|
|
64
|
+
|
|
65
|
+
# Scan project for functions
|
|
66
|
+
path(
|
|
67
|
+
"agents/<uuid:agent_id>/scan-project/",
|
|
68
|
+
views.ProjectScanView.as_view(),
|
|
69
|
+
name="scan_project",
|
|
70
|
+
),
|
|
71
|
+
|
|
72
|
+
# Generate tools from discovered functions
|
|
73
|
+
path(
|
|
74
|
+
"agents/<uuid:agent_id>/generate-tools/",
|
|
75
|
+
views.GenerateToolsView.as_view(),
|
|
76
|
+
name="generate_tools",
|
|
77
|
+
),
|
|
78
|
+
|
|
79
|
+
# List discovered functions
|
|
80
|
+
path(
|
|
81
|
+
"discovered-functions/",
|
|
82
|
+
views.DiscoveredFunctionListView.as_view(),
|
|
83
|
+
name="discovered_function_list",
|
|
84
|
+
),
|
|
85
|
+
|
|
86
|
+
# Dynamic tools for an agent
|
|
87
|
+
path(
|
|
88
|
+
"agents/<uuid:agent_id>/dynamic-tools/",
|
|
89
|
+
views.DynamicToolListView.as_view(),
|
|
90
|
+
name="dynamic_tool_list",
|
|
91
|
+
),
|
|
92
|
+
path(
|
|
93
|
+
"agents/<uuid:agent_id>/dynamic-tools/<uuid:pk>/",
|
|
94
|
+
views.DynamicToolDetailView.as_view(),
|
|
95
|
+
name="dynamic_tool_detail",
|
|
96
|
+
),
|
|
97
|
+
path(
|
|
98
|
+
"agents/<uuid:agent_id>/dynamic-tools/<uuid:pk>/toggle/",
|
|
99
|
+
views.DynamicToolToggleView.as_view(),
|
|
100
|
+
name="dynamic_tool_toggle",
|
|
101
|
+
),
|
|
102
|
+
|
|
103
|
+
# Dynamic tool executions (audit log)
|
|
104
|
+
path(
|
|
105
|
+
"agents/<uuid:agent_id>/dynamic-tools/<uuid:tool_id>/executions/",
|
|
106
|
+
views.DynamicToolExecutionListView.as_view(),
|
|
107
|
+
name="dynamic_tool_executions",
|
|
108
|
+
),
|
|
109
|
+
|
|
110
|
+
# ==========================================================================
|
|
111
|
+
# Approval Workflow Endpoints
|
|
112
|
+
# ==========================================================================
|
|
113
|
+
|
|
114
|
+
# List approval requests
|
|
115
|
+
path(
|
|
116
|
+
"tool-approval-requests/",
|
|
117
|
+
views.ToolApprovalRequestListView.as_view(),
|
|
118
|
+
name="approval_request_list",
|
|
119
|
+
),
|
|
120
|
+
path(
|
|
121
|
+
"tool-approval-requests/<uuid:pk>/",
|
|
122
|
+
views.ToolApprovalRequestDetailView.as_view(),
|
|
123
|
+
name="approval_request_detail",
|
|
124
|
+
),
|
|
125
|
+
path(
|
|
126
|
+
"tool-approval-requests/<uuid:pk>/review/",
|
|
127
|
+
views.ToolApprovalReviewView.as_view(),
|
|
128
|
+
name="approval_request_review",
|
|
129
|
+
),
|
|
130
|
+
path(
|
|
131
|
+
"tool-approval-requests/<uuid:pk>/cancel/",
|
|
132
|
+
views.ToolApprovalCancelView.as_view(),
|
|
133
|
+
name="approval_request_cancel",
|
|
134
|
+
),
|
|
135
|
+
|
|
136
|
+
# ==========================================================================
|
|
137
|
+
# Permission Management Endpoints
|
|
138
|
+
# ==========================================================================
|
|
139
|
+
|
|
140
|
+
# List/manage user access
|
|
141
|
+
path(
|
|
142
|
+
"dynamic-tool-access/",
|
|
143
|
+
views.UserAccessListView.as_view(),
|
|
144
|
+
name="user_access_list",
|
|
145
|
+
),
|
|
146
|
+
path(
|
|
147
|
+
"dynamic-tool-access/<uuid:pk>/",
|
|
148
|
+
views.UserAccessDetailView.as_view(),
|
|
149
|
+
name="user_access_detail",
|
|
150
|
+
),
|
|
151
|
+
path(
|
|
152
|
+
"dynamic-tool-access/grant/",
|
|
153
|
+
views.GrantAccessView.as_view(),
|
|
154
|
+
name="grant_access",
|
|
155
|
+
),
|
|
156
|
+
path(
|
|
157
|
+
"dynamic-tool-access/revoke/",
|
|
158
|
+
views.RevokeAccessView.as_view(),
|
|
159
|
+
name="revoke_access",
|
|
160
|
+
),
|
|
161
|
+
path(
|
|
162
|
+
"dynamic-tool-access/me/",
|
|
163
|
+
views.MyAccessView.as_view(),
|
|
164
|
+
name="my_access",
|
|
165
|
+
),
|
|
166
|
+
|
|
167
|
+
# ==========================================================================
|
|
168
|
+
# Model Selection Endpoints
|
|
169
|
+
# ==========================================================================
|
|
170
|
+
|
|
171
|
+
# List available models
|
|
172
|
+
path(
|
|
173
|
+
"models/",
|
|
174
|
+
views.ModelsListView.as_view(),
|
|
175
|
+
name="models_list",
|
|
176
|
+
),
|
|
177
|
+
|
|
178
|
+
# ==========================================================================
|
|
179
|
+
# Agent Schema Editor Endpoints
|
|
180
|
+
# ==========================================================================
|
|
181
|
+
|
|
182
|
+
# Full agent schema (for debugging/editing)
|
|
183
|
+
path(
|
|
184
|
+
"agents/<uuid:pk>/full-schema/",
|
|
185
|
+
views.AgentFullSchemaView.as_view(),
|
|
186
|
+
name="agent_full_schema",
|
|
187
|
+
),
|
|
188
|
+
|
|
189
|
+
# ==========================================================================
|
|
190
|
+
# Multi-Agent System Endpoints
|
|
191
|
+
# ==========================================================================
|
|
192
|
+
|
|
193
|
+
# List and create systems
|
|
194
|
+
path(
|
|
195
|
+
"systems/",
|
|
196
|
+
views.AgentSystemListCreateView.as_view(),
|
|
197
|
+
name="system_list",
|
|
198
|
+
),
|
|
199
|
+
path(
|
|
200
|
+
"systems/<uuid:pk>/",
|
|
201
|
+
views.AgentSystemDetailView.as_view(),
|
|
202
|
+
name="system_detail",
|
|
203
|
+
),
|
|
204
|
+
|
|
205
|
+
# System members
|
|
206
|
+
path(
|
|
207
|
+
"systems/<uuid:system_id>/members/",
|
|
208
|
+
views.AgentSystemMemberListCreateView.as_view(),
|
|
209
|
+
name="system_member_list",
|
|
210
|
+
),
|
|
211
|
+
path(
|
|
212
|
+
"systems/<uuid:system_id>/members/<uuid:pk>/",
|
|
213
|
+
views.AgentSystemMemberDetailView.as_view(),
|
|
214
|
+
name="system_member_detail",
|
|
215
|
+
),
|
|
216
|
+
|
|
217
|
+
# System versions
|
|
218
|
+
path(
|
|
219
|
+
"systems/<uuid:system_id>/versions/",
|
|
220
|
+
views.AgentSystemVersionListView.as_view(),
|
|
221
|
+
name="system_version_list",
|
|
222
|
+
),
|
|
223
|
+
path(
|
|
224
|
+
"systems/<uuid:system_id>/publish/",
|
|
225
|
+
views.AgentSystemPublishView.as_view(),
|
|
226
|
+
name="system_publish",
|
|
227
|
+
),
|
|
228
|
+
path(
|
|
229
|
+
"systems/<uuid:system_id>/versions/<uuid:version_id>/deploy/",
|
|
230
|
+
views.AgentSystemDeployView.as_view(),
|
|
231
|
+
name="system_deploy",
|
|
232
|
+
),
|
|
233
|
+
path(
|
|
234
|
+
"systems/<uuid:system_id>/versions/<uuid:version_id>/export/",
|
|
235
|
+
views.AgentSystemExportView.as_view(),
|
|
236
|
+
name="system_export",
|
|
237
|
+
),
|
|
238
|
+
|
|
239
|
+
# Discover agents from entry point
|
|
240
|
+
path(
|
|
241
|
+
"agents/<uuid:agent_id>/discover-system/",
|
|
242
|
+
views.AgentSystemDiscoverView.as_view(),
|
|
243
|
+
name="discover_system",
|
|
244
|
+
),
|
|
245
|
+
]
|