django-agent-studio 0.1.0__tar.gz → 0.1.9__tar.gz

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.
Files changed (39) hide show
  1. django_agent_studio-0.1.9/LICENSE +83 -0
  2. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/PKG-INFO +87 -2
  3. django_agent_studio-0.1.9/agents/__init__.py +29 -0
  4. django_agent_studio-0.1.9/agents/builder.py +2731 -0
  5. django_agent_studio-0.1.9/agents/dynamic.py +383 -0
  6. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/api/urls.py +51 -0
  7. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/api/views.py +379 -0
  8. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/django_agent_studio.egg-info/PKG-INFO +87 -2
  9. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/django_agent_studio.egg-info/SOURCES.txt +19 -0
  10. django_agent_studio-0.1.9/migrations/0001_initial.py +63 -0
  11. django_agent_studio-0.1.9/migrations/__init__.py +0 -0
  12. django_agent_studio-0.1.9/models/__init__.py +18 -0
  13. django_agent_studio-0.1.9/models/permissions.py +191 -0
  14. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/pyproject.toml +7 -4
  15. django_agent_studio-0.1.9/services/__init__.py +14 -0
  16. django_agent_studio-0.1.9/services/permissions.py +228 -0
  17. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/static/agent-frontend/chat-widget.css +48 -0
  18. django_agent_studio-0.1.9/static/agent-frontend/chat-widget.js +338 -0
  19. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/templates/django_agent_studio/base.html +3 -2
  20. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/templates/django_agent_studio/builder.html +699 -12
  21. django_agent_studio-0.1.0/static/agent-frontend/chat-widget.js +0 -319
  22. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/README.md +0 -0
  23. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/__init__.py +0 -0
  24. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/api/__init__.py +0 -0
  25. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/api/permissions.py +0 -0
  26. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/api/serializers.py +0 -0
  27. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/apps.py +0 -0
  28. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/django_agent_studio.egg-info/dependency_links.txt +0 -0
  29. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/django_agent_studio.egg-info/requires.txt +0 -0
  30. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/django_agent_studio.egg-info/top_level.txt +0 -0
  31. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/management/__init__.py +0 -0
  32. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/management/commands/__init__.py +0 -0
  33. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/setup.cfg +0 -0
  34. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/static/agent-frontend/chat-widget-markdown.js +0 -0
  35. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/templates/django_agent_studio/agent_list.html +0 -0
  36. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/templates/django_agent_studio/home.html +0 -0
  37. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/templates/django_agent_studio/test.html +0 -0
  38. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/urls.py +0 -0
  39. {django_agent_studio-0.1.0 → django_agent_studio-0.1.9}/views.py +0 -0
@@ -0,0 +1,83 @@
1
+ Business Source License 1.1
2
+
3
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
4
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
5
+
6
+ Parameters
7
+
8
+ Licensor: Chris Barry
9
+ Licensed Work: django-agent-studio
10
+ The Licensed Work is (c) 2025 Chris Barry
11
+ Additional Use Grant: You may use the Licensed Work for non-production purposes,
12
+ including development, testing, and evaluation. Production
13
+ use requires a commercial license from the Licensor.
14
+ Change Date: 2029-01-24
15
+ Change License: MIT
16
+
17
+ Terms
18
+
19
+ The Licensor hereby grants you the right to copy, modify, create derivative
20
+ works, redistribute, and make non-production use of the Licensed Work. The
21
+ Licensor may make an Additional Use Grant, above, permitting limited production
22
+ use.
23
+
24
+ Effective on the Change Date, or the fourth anniversary of the first publicly
25
+ available distribution of a specific version of the Licensed Work under this
26
+ License, whichever comes first, the Licensor hereby grants you rights under
27
+ the terms of the Change License, and the rights granted in the paragraph above
28
+ terminate.
29
+
30
+ If your use of the Licensed Work does not comply with the requirements
31
+ currently in effect as described in this License, you must purchase a
32
+ commercial license from the Licensor, its affiliated entities, or authorized
33
+ resellers, or you must refrain from using the Licensed Work.
34
+
35
+ All copies of the original and modified Licensed Work, and derivative works
36
+ of the Licensed Work, are subject to this License. This License applies
37
+ separately for each version of the Licensed Work and the Change Date may vary
38
+ for each version of the Licensed Work released by Licensor.
39
+
40
+ You must conspicuously display this License on each original or modified copy
41
+ of the Licensed Work. If you receive the Licensed Work in original or
42
+ modified form from a third party, the terms and conditions set forth in this
43
+ License apply to your use of that work.
44
+
45
+ Any use of the Licensed Work in violation of this License will automatically
46
+ terminate your rights under this License for the current and all other
47
+ versions of the Licensed Work.
48
+
49
+ This License does not grant you any right in any trademark or logo of
50
+ Licensor or its affiliates (provided that you may use a trademark or logo of
51
+ Licensor as expressly required by this License).
52
+
53
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
54
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
55
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
56
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
57
+ TITLE.
58
+
59
+ MariaDB hereby grants you permission to use this License's text to license
60
+ your works, and to refer to it using the trademark "Business Source License",
61
+ as long as you comply with the Covenants of Licensor below.
62
+
63
+ Covenants of Licensor
64
+
65
+ In consideration of the right to use this License's text and the "Business
66
+ Source License" name and trademark, Licensor covenants to MariaDB, and to all
67
+ other recipients of the licensed work to be provided by Licensor:
68
+
69
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
70
+ or a license that is compatible with GPL Version 2.0 or a later version,
71
+ where "compatible" means that software provided under the Change License can
72
+ be included in a program with software provided under GPL Version 2.0 or a
73
+ later version. Licensor may specify additional Change Licenses without
74
+ limitation.
75
+
76
+ 2. To either: (a) specify an additional grant of rights to use that does not
77
+ impose any additional restriction on the right granted in this License, as
78
+ the Additional Use Grant; or (b) insert the text "None".
79
+
80
+ 3. To specify a Change Date.
81
+
82
+ 4. Not to modify this License in any other way.
83
+
@@ -1,9 +1,92 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-agent-studio
3
- Version: 0.1.0
3
+ Version: 0.1.9
4
4
  Summary: Visual agent builder and management studio for Django - build custom GPTs with a two-pane interface
5
5
  Author: Chris Barry
6
- License-Expression: MIT
6
+ License: Business Source License 1.1
7
+
8
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
9
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
10
+
11
+ Parameters
12
+
13
+ Licensor: Chris Barry
14
+ Licensed Work: django-agent-studio
15
+ The Licensed Work is (c) 2025 Chris Barry
16
+ Additional Use Grant: You may use the Licensed Work for non-production purposes,
17
+ including development, testing, and evaluation. Production
18
+ use requires a commercial license from the Licensor.
19
+ Change Date: 2029-01-24
20
+ Change License: MIT
21
+
22
+ Terms
23
+
24
+ The Licensor hereby grants you the right to copy, modify, create derivative
25
+ works, redistribute, and make non-production use of the Licensed Work. The
26
+ Licensor may make an Additional Use Grant, above, permitting limited production
27
+ use.
28
+
29
+ Effective on the Change Date, or the fourth anniversary of the first publicly
30
+ available distribution of a specific version of the Licensed Work under this
31
+ License, whichever comes first, the Licensor hereby grants you rights under
32
+ the terms of the Change License, and the rights granted in the paragraph above
33
+ terminate.
34
+
35
+ If your use of the Licensed Work does not comply with the requirements
36
+ currently in effect as described in this License, you must purchase a
37
+ commercial license from the Licensor, its affiliated entities, or authorized
38
+ resellers, or you must refrain from using the Licensed Work.
39
+
40
+ All copies of the original and modified Licensed Work, and derivative works
41
+ of the Licensed Work, are subject to this License. This License applies
42
+ separately for each version of the Licensed Work and the Change Date may vary
43
+ for each version of the Licensed Work released by Licensor.
44
+
45
+ You must conspicuously display this License on each original or modified copy
46
+ of the Licensed Work. If you receive the Licensed Work in original or
47
+ modified form from a third party, the terms and conditions set forth in this
48
+ License apply to your use of that work.
49
+
50
+ Any use of the Licensed Work in violation of this License will automatically
51
+ terminate your rights under this License for the current and all other
52
+ versions of the Licensed Work.
53
+
54
+ This License does not grant you any right in any trademark or logo of
55
+ Licensor or its affiliates (provided that you may use a trademark or logo of
56
+ Licensor as expressly required by this License).
57
+
58
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
59
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
60
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
61
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
62
+ TITLE.
63
+
64
+ MariaDB hereby grants you permission to use this License's text to license
65
+ your works, and to refer to it using the trademark "Business Source License",
66
+ as long as you comply with the Covenants of Licensor below.
67
+
68
+ Covenants of Licensor
69
+
70
+ In consideration of the right to use this License's text and the "Business
71
+ Source License" name and trademark, Licensor covenants to MariaDB, and to all
72
+ other recipients of the licensed work to be provided by Licensor:
73
+
74
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
75
+ or a license that is compatible with GPL Version 2.0 or a later version,
76
+ where "compatible" means that software provided under the Change License can
77
+ be included in a program with software provided under GPL Version 2.0 or a
78
+ later version. Licensor may specify additional Change Licenses without
79
+ limitation.
80
+
81
+ 2. To either: (a) specify an additional grant of rights to use that does not
82
+ impose any additional restriction on the right granted in this License, as
83
+ the Additional Use Grant; or (b) insert the text "None".
84
+
85
+ 3. To specify a Change Date.
86
+
87
+ 4. Not to modify this License in any other way.
88
+
89
+
7
90
  Project-URL: Homepage, https://github.com/makemore/django-agent-studio
8
91
  Project-URL: Documentation, https://github.com/makemore/django-agent-studio#readme
9
92
  Project-URL: Repository, https://github.com/makemore/django-agent-studio
@@ -22,6 +105,7 @@ Classifier: Programming Language :: Python :: 3.12
22
105
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
106
  Requires-Python: >=3.10
24
107
  Description-Content-Type: text/markdown
108
+ License-File: LICENSE
25
109
  Requires-Dist: Django>=4.2
26
110
  Requires-Dist: djangorestframework>=3.14
27
111
  Requires-Dist: django-agent-runtime>=0.3.12
@@ -32,6 +116,7 @@ Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
32
116
  Requires-Dist: pytest-cov>=4.0; extra == "dev"
33
117
  Requires-Dist: black>=23.0; extra == "dev"
34
118
  Requires-Dist: ruff>=0.1.0; extra == "dev"
119
+ Dynamic: license-file
35
120
 
36
121
  # Django Agent Studio
37
122
 
@@ -0,0 +1,29 @@
1
+ """
2
+ Agent implementations for django_agent_studio.
3
+
4
+ Provides:
5
+ - DynamicAgent: Loads configuration from AgentDefinition model
6
+ - BuilderAgent: The agent that helps users build/customize other agents
7
+ """
8
+
9
+ from django_agent_studio.agents.dynamic import DynamicAgentRuntime
10
+ from django_agent_studio.agents.builder import BuilderAgentRuntime
11
+
12
+
13
+ def register_studio_agents():
14
+ """Register the studio agents with the runtime registry."""
15
+ from django_agent_runtime.runtime.registry import register_runtime
16
+
17
+ # Register the builder agent
18
+ register_runtime(BuilderAgentRuntime())
19
+
20
+ # Note: DynamicAgentRuntime instances are registered on-demand
21
+ # when an AgentDefinition is accessed
22
+
23
+
24
+ __all__ = [
25
+ "DynamicAgentRuntime",
26
+ "BuilderAgentRuntime",
27
+ "register_studio_agents",
28
+ ]
29
+