django-agent-runtime 0.3.6__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.
Files changed (55) hide show
  1. django_agent_runtime/__init__.py +25 -0
  2. django_agent_runtime/admin.py +155 -0
  3. django_agent_runtime/api/__init__.py +26 -0
  4. django_agent_runtime/api/permissions.py +109 -0
  5. django_agent_runtime/api/serializers.py +114 -0
  6. django_agent_runtime/api/views.py +472 -0
  7. django_agent_runtime/apps.py +26 -0
  8. django_agent_runtime/conf.py +241 -0
  9. django_agent_runtime/examples/__init__.py +10 -0
  10. django_agent_runtime/examples/langgraph_adapter.py +164 -0
  11. django_agent_runtime/examples/langgraph_tools.py +179 -0
  12. django_agent_runtime/examples/simple_chat.py +69 -0
  13. django_agent_runtime/examples/tool_agent.py +157 -0
  14. django_agent_runtime/management/__init__.py +2 -0
  15. django_agent_runtime/management/commands/__init__.py +2 -0
  16. django_agent_runtime/management/commands/runagent.py +419 -0
  17. django_agent_runtime/migrations/0001_initial.py +117 -0
  18. django_agent_runtime/migrations/0002_persistence_models.py +129 -0
  19. django_agent_runtime/migrations/0003_persistenceconversation_active_branch_id_and_more.py +212 -0
  20. django_agent_runtime/migrations/0004_add_anonymous_session_id.py +18 -0
  21. django_agent_runtime/migrations/__init__.py +2 -0
  22. django_agent_runtime/models/__init__.py +54 -0
  23. django_agent_runtime/models/base.py +450 -0
  24. django_agent_runtime/models/concrete.py +146 -0
  25. django_agent_runtime/persistence/__init__.py +60 -0
  26. django_agent_runtime/persistence/helpers.py +148 -0
  27. django_agent_runtime/persistence/models.py +506 -0
  28. django_agent_runtime/persistence/stores.py +1191 -0
  29. django_agent_runtime/runtime/__init__.py +23 -0
  30. django_agent_runtime/runtime/events/__init__.py +65 -0
  31. django_agent_runtime/runtime/events/base.py +135 -0
  32. django_agent_runtime/runtime/events/db.py +129 -0
  33. django_agent_runtime/runtime/events/redis.py +228 -0
  34. django_agent_runtime/runtime/events/sync.py +140 -0
  35. django_agent_runtime/runtime/interfaces.py +475 -0
  36. django_agent_runtime/runtime/llm/__init__.py +91 -0
  37. django_agent_runtime/runtime/llm/anthropic.py +249 -0
  38. django_agent_runtime/runtime/llm/litellm_adapter.py +173 -0
  39. django_agent_runtime/runtime/llm/openai.py +230 -0
  40. django_agent_runtime/runtime/queue/__init__.py +75 -0
  41. django_agent_runtime/runtime/queue/base.py +158 -0
  42. django_agent_runtime/runtime/queue/postgres.py +248 -0
  43. django_agent_runtime/runtime/queue/redis_streams.py +336 -0
  44. django_agent_runtime/runtime/queue/sync.py +277 -0
  45. django_agent_runtime/runtime/registry.py +186 -0
  46. django_agent_runtime/runtime/runner.py +540 -0
  47. django_agent_runtime/runtime/tracing/__init__.py +48 -0
  48. django_agent_runtime/runtime/tracing/langfuse.py +117 -0
  49. django_agent_runtime/runtime/tracing/noop.py +36 -0
  50. django_agent_runtime/urls.py +39 -0
  51. django_agent_runtime-0.3.6.dist-info/METADATA +723 -0
  52. django_agent_runtime-0.3.6.dist-info/RECORD +55 -0
  53. django_agent_runtime-0.3.6.dist-info/WHEEL +5 -0
  54. django_agent_runtime-0.3.6.dist-info/licenses/LICENSE +22 -0
  55. django_agent_runtime-0.3.6.dist-info/top_level.txt +1 -0
@@ -0,0 +1,55 @@
1
+ django_agent_runtime/__init__.py,sha256=vOqpPBIKCnpNmTlhHR3eJv9etGZODcEg9sBUzfVLkZo,794
2
+ django_agent_runtime/admin.py,sha256=v6HHTY7kcAkRg0AXCDizVvA6R0SaZqb6PkjBT5-MZUU,4323
3
+ django_agent_runtime/apps.py,sha256=WTfqEvETH0CfBkoYLddmPkVxBNj5RzUVArRWT0eZKE0,713
4
+ django_agent_runtime/conf.py,sha256=vyDcVcY5OK7DfmW2xQIwlg-HhRaigfItT4hxsaSAiJI,8017
5
+ django_agent_runtime/urls.py,sha256=0-QQJ9OlOZPN8eCiDtEHS0qlzRGGiL6Rg8aDa4BYqvg,1094
6
+ django_agent_runtime/api/__init__.py,sha256=lGwFBg8HNNgrCI9sfS2O4Uedct2qwyI2E6dZV81eZUU,624
7
+ django_agent_runtime/api/permissions.py,sha256=tr1vflVyQyspRa35loSCvw41L28ISxkn3h-0BWxWPzI,3379
8
+ django_agent_runtime/api/serializers.py,sha256=B2lUu4FGeYltpjTKKMOSKNB2cM8798RcIcgMlJ4TmlM,2805
9
+ django_agent_runtime/api/views.py,sha256=ZdinkfZYN6FhSmlY4M5SWNObWPipNXzyJ08qh9DSfV4,17237
10
+ django_agent_runtime/examples/__init__.py,sha256=NuOUGGVVGyz19lbWzupdEk9ZfdeSN7_HIEAvW5z0Css,231
11
+ django_agent_runtime/examples/langgraph_adapter.py,sha256=e1gGrLHsk5ILCsbbgcLvP8wpdWc6Fzw5wU0V9PlnHtI,4909
12
+ django_agent_runtime/examples/langgraph_tools.py,sha256=_1o2G7wYTB7kV0RlBDMNtxsAK1f7Mo4An8LKmWd8GDE,5602
13
+ django_agent_runtime/examples/simple_chat.py,sha256=ARbul1PmY2cQ9bTMpW0AfEWtT6zyKnFLxjAf7BVrGkM,1716
14
+ django_agent_runtime/examples/tool_agent.py,sha256=np9tstLYg0Xkcq27wClpo-BjLhcTYk-HDJGFn0xPIWQ,4825
15
+ django_agent_runtime/management/__init__.py,sha256=sFO6p-_Oa_UCfvSOYDN-kEeNuWf3hkycT1P40U_m_Cc,48
16
+ django_agent_runtime/management/commands/__init__.py,sha256=_l_MCfNGiapFiPEzLJUqLQDlVjVQwcRTALjN3jEVvUI,23
17
+ django_agent_runtime/management/commands/runagent.py,sha256=jL8aX3KECjgYaZ1rZFkVHrsYDIYG_Avi2giCUrAjYEI,14242
18
+ django_agent_runtime/migrations/0001_initial.py,sha256=61DsafictQwm7SWtIG8-3p4GVXGqYptaPDgXgdor_go,6532
19
+ django_agent_runtime/migrations/0002_persistence_models.py,sha256=PvW30AV13rhO06QBj09ptNxiwMA_uVUs84C-JfRNetc,6838
20
+ django_agent_runtime/migrations/0003_persistenceconversation_active_branch_id_and_more.py,sha256=JihrTO_YGQSU9KXHALTAgApRKFEmnQTDB-Qgri-KQvI,11347
21
+ django_agent_runtime/migrations/0004_add_anonymous_session_id.py,sha256=nTuSlJls2RLf1vs4rOHyvoahA7aV3dMHBMs2XLLsM8Y,549
22
+ django_agent_runtime/migrations/__init__.py,sha256=FhFDxbduUmKFgyD1uvnHOqAzszswgvC68rfPPbk40v4,46
23
+ django_agent_runtime/models/__init__.py,sha256=wl4sVyVEXCbtawwhxd5pL3TYDAsepI-JgiUIR63aNQE,1290
24
+ django_agent_runtime/models/base.py,sha256=nsS0RLi2vb4uiNlA82zpl6HnBVCl4_vSJIZpOnnkUo8,13747
25
+ django_agent_runtime/models/concrete.py,sha256=Fgwj15et9uzV5apgsv6kMLmAjXaCw09tYgYVSs7AqxA,4112
26
+ django_agent_runtime/persistence/__init__.py,sha256=Dn6hFwRItj_2K0ON5XuGp2GMmn9nNdnnZpHqJeRdzmE,1702
27
+ django_agent_runtime/persistence/helpers.py,sha256=djigvt54q9IriEFnO9vRoN-4cofnB1DWDyX_NRMK5eY,4661
28
+ django_agent_runtime/persistence/models.py,sha256=BxZWK53HGJm6xY6IeVK2Kmm-95oLjn0nZ5CqfOXxv94,17397
29
+ django_agent_runtime/persistence/stores.py,sha256=9F6fIDpFrHiktbDW4Olj7FXTSpPg_vkvbkFeE7o5rrE,44970
30
+ django_agent_runtime/runtime/__init__.py,sha256=pF1LNyW5CNV-hXcvhoCtJmWy06mdX5ITS4fbLFGqbDo,475
31
+ django_agent_runtime/runtime/interfaces.py,sha256=djdVes-8__uTDSB8GHx1fooGLlmFDeuuNZg66rXPArk,12704
32
+ django_agent_runtime/runtime/registry.py,sha256=l1W1DxwLywEeoDxqZ1VvGg9Yv51CLqB8xN-Fkb1enqE,5117
33
+ django_agent_runtime/runtime/runner.py,sha256=kFVn66x47W3JHYF5JsaC21hwnMWrA8nyUxu6PiIzmAM,18055
34
+ django_agent_runtime/runtime/events/__init__.py,sha256=Na9Z6EaWnfUQD_TfyTBC5aO-JsH1GF3YJFV4TYWRbns,1811
35
+ django_agent_runtime/runtime/events/base.py,sha256=X_xTJKvZQX99NmiSbh7E44cpDnh6W665M6hc7J53nBk,3518
36
+ django_agent_runtime/runtime/events/db.py,sha256=JYGCVpqJJqGk_UW40hLW8J79eAK52UGKe2XZhkf7sd4,3502
37
+ django_agent_runtime/runtime/events/redis.py,sha256=EQ0GmWQ3AU5ChGcZIUakNBC4lj8EuJVKdx5NZXFWcHc,7304
38
+ django_agent_runtime/runtime/events/sync.py,sha256=p_Ab59QzQMMr_625jFIr7PBMF9FrNzTgnona5c-XcBg,3701
39
+ django_agent_runtime/runtime/llm/__init__.py,sha256=VCs8shGpVxup1NJN0SaZmcPnqin2AyUKCEiPo761P1E,2687
40
+ django_agent_runtime/runtime/llm/anthropic.py,sha256=7-7RIvsBDUo7a94rYMYLe2zTTho9dODzSpaZhQzZtAU,7828
41
+ django_agent_runtime/runtime/llm/litellm_adapter.py,sha256=UjLE0grfwYcxogkSg8Xr5BtHOALtfIrSWapFA_kZUro,5033
42
+ django_agent_runtime/runtime/llm/openai.py,sha256=kSVa8J-8KuFun9eFBFtrkt_gQsOt2Kb1jqORlGVmikg,7253
43
+ django_agent_runtime/runtime/queue/__init__.py,sha256=IMPbb_FUNXPHyawYtvfeOCwg-qf4DH-GaW4vhcVdh3E,2132
44
+ django_agent_runtime/runtime/queue/base.py,sha256=M-qY9OZhcklvTqyK1hRCCvn2wxmNjSG_5NO8tJiKdJI,3623
45
+ django_agent_runtime/runtime/queue/postgres.py,sha256=xu3mSWIKxJAR4o5F85HmDdm1YE730vqNnWufqffAR4k,7736
46
+ django_agent_runtime/runtime/queue/redis_streams.py,sha256=kR56imYBD8KoC1MbaKLAQcjpfQdMVRWGG-I8nUrM_x8,10654
47
+ django_agent_runtime/runtime/queue/sync.py,sha256=eJe9DRbOfGqslGVFJoZuZNWCLuQBg-RLbUZBpC9FwH4,8105
48
+ django_agent_runtime/runtime/tracing/__init__.py,sha256=UcaiWxR-kvMqPm3HrcQI9nXH8x_B9S7bPP7CP14R210,1293
49
+ django_agent_runtime/runtime/tracing/langfuse.py,sha256=6DJ5RloxyvA5OneHnckt2Ksyvi52q7WqVRE157H7Png,3566
50
+ django_agent_runtime/runtime/tracing/noop.py,sha256=0FF-fSDcHTbKsiX6rFDbQ4wBIMKBXblbWXNijGcky-k,891
51
+ django_agent_runtime-0.3.6.dist-info/licenses/LICENSE,sha256=dgPI3jqvlvFxcmFBfzbCcmWw-aXJ-xjhSHwSe9DYEMc,1069
52
+ django_agent_runtime-0.3.6.dist-info/METADATA,sha256=uRyqSlbkBjOv_XDKNVysQ0UJfJ6iv25O2--s7LB-w-I,22133
53
+ django_agent_runtime-0.3.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
54
+ django_agent_runtime-0.3.6.dist-info/top_level.txt,sha256=O7MF9v8jNTo7Z35Rkk31HexisVdKPvStK7ZTf0NjnNs,21
55
+ django_agent_runtime-0.3.6.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Chris Barry
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.
22
+
@@ -0,0 +1 @@
1
+ django_agent_runtime