oxygent 1.0.10__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 (194) hide show
  1. oxygent-1.0.10/LICENSE +67 -0
  2. oxygent-1.0.10/NOTICE_Third_Party.md +236 -0
  3. oxygent-1.0.10/PKG-INFO +34 -0
  4. oxygent-1.0.10/oxygent/__init__.py +34 -0
  5. oxygent-1.0.10/oxygent/banner.py +54 -0
  6. oxygent-1.0.10/oxygent/config.py +623 -0
  7. oxygent-1.0.10/oxygent/core_tools/__init__.py +0 -0
  8. oxygent-1.0.10/oxygent/core_tools/retrieve_tools.py +51 -0
  9. oxygent-1.0.10/oxygent/databases/__init__.py +0 -0
  10. oxygent-1.0.10/oxygent/databases/base_db.py +85 -0
  11. oxygent-1.0.10/oxygent/databases/db_es/__init__.py +7 -0
  12. oxygent-1.0.10/oxygent/databases/db_es/base_es.py +101 -0
  13. oxygent-1.0.10/oxygent/databases/db_es/jes_es.py +123 -0
  14. oxygent-1.0.10/oxygent/databases/db_es/local_es.py +360 -0
  15. oxygent-1.0.10/oxygent/databases/db_redis/__init__.py +15 -0
  16. oxygent-1.0.10/oxygent/databases/db_redis/base_redis.py +197 -0
  17. oxygent-1.0.10/oxygent/databases/db_redis/jimdb_ap_redis.py +362 -0
  18. oxygent-1.0.10/oxygent/databases/db_redis/local_redis.py +153 -0
  19. oxygent-1.0.10/oxygent/databases/db_vector/__init__.py +7 -0
  20. oxygent-1.0.10/oxygent/databases/db_vector/base_vector_db.py +22 -0
  21. oxygent-1.0.10/oxygent/databases/db_vector/vearch_db.py +959 -0
  22. oxygent-1.0.10/oxygent/db_factory.py +37 -0
  23. oxygent-1.0.10/oxygent/embedding_cache.py +204 -0
  24. oxygent-1.0.10/oxygent/live_prompt/__init__.py +30 -0
  25. oxygent-1.0.10/oxygent/live_prompt/manager.py +879 -0
  26. oxygent-1.0.10/oxygent/live_prompt/wrapper.py +350 -0
  27. oxygent-1.0.10/oxygent/log_setup.py +169 -0
  28. oxygent-1.0.10/oxygent/mas.py +1415 -0
  29. oxygent-1.0.10/oxygent/oxy/__init__.py +48 -0
  30. oxygent-1.0.10/oxygent/oxy/agents/__init__.py +15 -0
  31. oxygent-1.0.10/oxygent/oxy/agents/base_agent.py +219 -0
  32. oxygent-1.0.10/oxygent/oxy/agents/chat_agent.py +61 -0
  33. oxygent-1.0.10/oxygent/oxy/agents/local_agent.py +488 -0
  34. oxygent-1.0.10/oxygent/oxy/agents/parallel_agent.py +69 -0
  35. oxygent-1.0.10/oxygent/oxy/agents/rag_agent.py +43 -0
  36. oxygent-1.0.10/oxygent/oxy/agents/react_agent.py +436 -0
  37. oxygent-1.0.10/oxygent/oxy/agents/remote_agent.py +43 -0
  38. oxygent-1.0.10/oxygent/oxy/agents/sse_oxy_agent.py +208 -0
  39. oxygent-1.0.10/oxygent/oxy/agents/workflow_agent.py +32 -0
  40. oxygent-1.0.10/oxygent/oxy/api_tools/__init__.py +5 -0
  41. oxygent-1.0.10/oxygent/oxy/api_tools/http_tool.py +44 -0
  42. oxygent-1.0.10/oxygent/oxy/bank_tools/__init__.py +7 -0
  43. oxygent-1.0.10/oxygent/oxy/bank_tools/bank_client.py +60 -0
  44. oxygent-1.0.10/oxygent/oxy/bank_tools/bank_tool.py +33 -0
  45. oxygent-1.0.10/oxygent/oxy/bank_tools/base_bank.py +20 -0
  46. oxygent-1.0.10/oxygent/oxy/base_flow.py +31 -0
  47. oxygent-1.0.10/oxygent/oxy/base_oxy.py +714 -0
  48. oxygent-1.0.10/oxygent/oxy/base_tool.py +31 -0
  49. oxygent-1.0.10/oxygent/oxy/flows/__init__.py +6 -0
  50. oxygent-1.0.10/oxygent/oxy/flows/parallel_flow.py +38 -0
  51. oxygent-1.0.10/oxygent/oxy/flows/plan_and_solve.py +194 -0
  52. oxygent-1.0.10/oxygent/oxy/flows/reflexion.py +321 -0
  53. oxygent-1.0.10/oxygent/oxy/flows/workflow.py +29 -0
  54. oxygent-1.0.10/oxygent/oxy/function_tools/__init__.py +7 -0
  55. oxygent-1.0.10/oxygent/oxy/function_tools/function_hub.py +114 -0
  56. oxygent-1.0.10/oxygent/oxy/function_tools/function_tool.py +138 -0
  57. oxygent-1.0.10/oxygent/oxy/llms/__init__.py +11 -0
  58. oxygent-1.0.10/oxygent/oxy/llms/base_llm.py +238 -0
  59. oxygent-1.0.10/oxygent/oxy/llms/http_llm.py +177 -0
  60. oxygent-1.0.10/oxygent/oxy/llms/local_llm.py +66 -0
  61. oxygent-1.0.10/oxygent/oxy/llms/mock_llm.py +27 -0
  62. oxygent-1.0.10/oxygent/oxy/llms/openai_llm.py +121 -0
  63. oxygent-1.0.10/oxygent/oxy/llms/remote_llm.py +68 -0
  64. oxygent-1.0.10/oxygent/oxy/mcp_tools/__init__.py +11 -0
  65. oxygent-1.0.10/oxygent/oxy/mcp_tools/base_mcp_client.py +174 -0
  66. oxygent-1.0.10/oxygent/oxy/mcp_tools/mcp_tool.py +36 -0
  67. oxygent-1.0.10/oxygent/oxy/mcp_tools/sse_mcp_client.py +88 -0
  68. oxygent-1.0.10/oxygent/oxy/mcp_tools/stdio_mcp_client.py +117 -0
  69. oxygent-1.0.10/oxygent/oxy/mcp_tools/streamable_mcp_client.py +71 -0
  70. oxygent-1.0.10/oxygent/oxy_factory.py +91 -0
  71. oxygent-1.0.10/oxygent/preset_tools/__init__.py +77 -0
  72. oxygent-1.0.10/oxygent/preset_tools/file_tools.py +136 -0
  73. oxygent-1.0.10/oxygent/preset_tools/http_tools.py +86 -0
  74. oxygent-1.0.10/oxygent/preset_tools/image_gen_tools.py +14 -0
  75. oxygent-1.0.10/oxygent/preset_tools/math_tools.py +161 -0
  76. oxygent-1.0.10/oxygent/preset_tools/python_tools.py +36 -0
  77. oxygent-1.0.10/oxygent/preset_tools/shell_tools.py +36 -0
  78. oxygent-1.0.10/oxygent/preset_tools/string_tools.py +90 -0
  79. oxygent-1.0.10/oxygent/preset_tools/system_tools.py +96 -0
  80. oxygent-1.0.10/oxygent/preset_tools/time_tools.py +59 -0
  81. oxygent-1.0.10/oxygent/prompts.py +102 -0
  82. oxygent-1.0.10/oxygent/routes.py +893 -0
  83. oxygent-1.0.10/oxygent/schemas/__init__.py +23 -0
  84. oxygent-1.0.10/oxygent/schemas/color.py +19 -0
  85. oxygent-1.0.10/oxygent/schemas/llm.py +22 -0
  86. oxygent-1.0.10/oxygent/schemas/memory.py +183 -0
  87. oxygent-1.0.10/oxygent/schemas/message.py +17 -0
  88. oxygent-1.0.10/oxygent/schemas/observation.py +34 -0
  89. oxygent-1.0.10/oxygent/schemas/oxy.py +525 -0
  90. oxygent-1.0.10/oxygent/schemas/web.py +12 -0
  91. oxygent-1.0.10/oxygent/utils/__init__.py +0 -0
  92. oxygent-1.0.10/oxygent/utils/common_utils.py +390 -0
  93. oxygent-1.0.10/oxygent/utils/data_utils.py +103 -0
  94. oxygent-1.0.10/oxygent/utils/env_utils.py +133 -0
  95. oxygent-1.0.10/oxygent/utils/llm_pydantic_parser.py +67 -0
  96. oxygent-1.0.10/oxygent/utils/sse_utils.py +152 -0
  97. oxygent-1.0.10/oxygent/web/css/agent-list.css +159 -0
  98. oxygent-1.0.10/oxygent/web/css/cascader.css +108 -0
  99. oxygent-1.0.10/oxygent/web/css/file.css +142 -0
  100. oxygent-1.0.10/oxygent/web/css/flowchart_view1.css +170 -0
  101. oxygent-1.0.10/oxygent/web/css/gantt.css +41 -0
  102. oxygent-1.0.10/oxygent/web/css/main.css +168 -0
  103. oxygent-1.0.10/oxygent/web/css/message.css +0 -0
  104. oxygent-1.0.10/oxygent/web/css/node.css +655 -0
  105. oxygent-1.0.10/oxygent/web/css/normalize.css +347 -0
  106. oxygent-1.0.10/oxygent/web/css/prompt-manager.css +516 -0
  107. oxygent-1.0.10/oxygent/web/css/select.css +60 -0
  108. oxygent-1.0.10/oxygent/web/css/style.css +503 -0
  109. oxygent-1.0.10/oxygent/web/css/style_load1.css +42 -0
  110. oxygent-1.0.10/oxygent/web/css/style_load2.css +43 -0
  111. oxygent-1.0.10/oxygent/web/css/tree.css +190 -0
  112. oxygent-1.0.10/oxygent/web/image/agents/agent_0.png +0 -0
  113. oxygent-1.0.10/oxygent/web/image/agents/agent_1.png +0 -0
  114. oxygent-1.0.10/oxygent/web/image/agents/agent_10.png +0 -0
  115. oxygent-1.0.10/oxygent/web/image/agents/agent_11.png +0 -0
  116. oxygent-1.0.10/oxygent/web/image/agents/agent_12.png +0 -0
  117. oxygent-1.0.10/oxygent/web/image/agents/agent_13.png +0 -0
  118. oxygent-1.0.10/oxygent/web/image/agents/agent_14.png +0 -0
  119. oxygent-1.0.10/oxygent/web/image/agents/agent_15.png +0 -0
  120. oxygent-1.0.10/oxygent/web/image/agents/agent_16.png +0 -0
  121. oxygent-1.0.10/oxygent/web/image/agents/agent_17.png +0 -0
  122. oxygent-1.0.10/oxygent/web/image/agents/agent_2.png +0 -0
  123. oxygent-1.0.10/oxygent/web/image/agents/agent_3.png +0 -0
  124. oxygent-1.0.10/oxygent/web/image/agents/agent_4.png +0 -0
  125. oxygent-1.0.10/oxygent/web/image/agents/agent_5.png +0 -0
  126. oxygent-1.0.10/oxygent/web/image/agents/agent_6.png +0 -0
  127. oxygent-1.0.10/oxygent/web/image/agents/agent_7.png +0 -0
  128. oxygent-1.0.10/oxygent/web/image/agents/agent_8.png +0 -0
  129. oxygent-1.0.10/oxygent/web/image/agents/agent_9.png +0 -0
  130. oxygent-1.0.10/oxygent/web/image/arrow-bottom.svg +1 -0
  131. oxygent-1.0.10/oxygent/web/image/arrow-left-double.svg +1 -0
  132. oxygent-1.0.10/oxygent/web/image/arrow-left.svg +1 -0
  133. oxygent-1.0.10/oxygent/web/image/arrow-right-double.svg +1 -0
  134. oxygent-1.0.10/oxygent/web/image/arrow-right.svg +1 -0
  135. oxygent-1.0.10/oxygent/web/image/arrow-top.svg +1 -0
  136. oxygent-1.0.10/oxygent/web/image/bg-img.svg +1 -0
  137. oxygent-1.0.10/oxygent/web/image/chat-at-list-bg.svg +1 -0
  138. oxygent-1.0.10/oxygent/web/image/empty.svg +1 -0
  139. oxygent-1.0.10/oxygent/web/image/global-language.svg +1 -0
  140. oxygent-1.0.10/oxygent/web/image/global-theme.svg +1 -0
  141. oxygent-1.0.10/oxygent/web/image/group-down.svg +1 -0
  142. oxygent-1.0.10/oxygent/web/image/group-favicon.png +0 -0
  143. oxygent-1.0.10/oxygent/web/image/group-up.svg +1 -0
  144. oxygent-1.0.10/oxygent/web/image/group-vector-active.svg +1 -0
  145. oxygent-1.0.10/oxygent/web/image/group-vector-default.svg +1 -0
  146. oxygent-1.0.10/oxygent/web/image/group.svg +1 -0
  147. oxygent-1.0.10/oxygent/web/image/group_add.svg +1 -0
  148. oxygent-1.0.10/oxygent/web/image/group_addtion.svg +1 -0
  149. oxygent-1.0.10/oxygent/web/image/group_close.svg +1 -0
  150. oxygent-1.0.10/oxygent/web/image/group_delete.svg +1 -0
  151. oxygent-1.0.10/oxygent/web/image/group_export.svg +1 -0
  152. oxygent-1.0.10/oxygent/web/image/group_open.svg +1 -0
  153. oxygent-1.0.10/oxygent/web/image/group_recent.svg +1 -0
  154. oxygent-1.0.10/oxygent/web/image/group_save.svg +1 -0
  155. oxygent-1.0.10/oxygent/web/image/icon.png +0 -0
  156. oxygent-1.0.10/oxygent/web/image/llm-icon.svg +1 -0
  157. oxygent-1.0.10/oxygent/web/image/logo.ico +0 -0
  158. oxygent-1.0.10/oxygent/web/image/logo.png +0 -0
  159. oxygent-1.0.10/oxygent/web/image/org_flow.svg +1 -0
  160. oxygent-1.0.10/oxygent/web/image/org_knowledge.svg +1 -0
  161. oxygent-1.0.10/oxygent/web/image/org_memory.svg +1 -0
  162. oxygent-1.0.10/oxygent/web/image/org_model.svg +1 -0
  163. oxygent-1.0.10/oxygent/web/image/org_tool.svg +1 -0
  164. oxygent-1.0.10/oxygent/web/image/output_icon.svg +2 -0
  165. oxygent-1.0.10/oxygent/web/image/pause.svg +1 -0
  166. oxygent-1.0.10/oxygent/web/image/play.svg +1 -0
  167. oxygent-1.0.10/oxygent/web/image/prompt.svg +1 -0
  168. oxygent-1.0.10/oxygent/web/image/refresh.svg +1 -0
  169. oxygent-1.0.10/oxygent/web/image/right-user.png +0 -0
  170. oxygent-1.0.10/oxygent/web/image/right-user.svg +1 -0
  171. oxygent-1.0.10/oxygent/web/image/stop-circle.svg +1 -0
  172. oxygent-1.0.10/oxygent/web/image/tool-icon.svg +1 -0
  173. oxygent-1.0.10/oxygent/web/image/tool.png +0 -0
  174. oxygent-1.0.10/oxygent/web/image/up-icon.svg +1 -0
  175. oxygent-1.0.10/oxygent/web/image/up_arrow.svg +1 -0
  176. oxygent-1.0.10/oxygent/web/image/user.svg +1 -0
  177. oxygent-1.0.10/oxygent/web/image/video.svg +1 -0
  178. oxygent-1.0.10/oxygent/web/index.html +1828 -0
  179. oxygent-1.0.10/oxygent/web/js/agent_tree.js +143 -0
  180. oxygent-1.0.10/oxygent/web/js/autosize.js +146 -0
  181. oxygent-1.0.10/oxygent/web/js/cascader.js +198 -0
  182. oxygent-1.0.10/oxygent/web/js/flowchart.js +190 -0
  183. oxygent-1.0.10/oxygent/web/js/marked.min.js +69 -0
  184. oxygent-1.0.10/oxygent/web/js/mermaid-sdk-flowchart.js +470 -0
  185. oxygent-1.0.10/oxygent/web/js/mermaid-sdk-gantt.js +81 -0
  186. oxygent-1.0.10/oxygent/web/js/mermaid-source.js +151979 -0
  187. oxygent-1.0.10/oxygent/web/js/mermaid.min.js +2659 -0
  188. oxygent-1.0.10/oxygent/web/js/message.js +50 -0
  189. oxygent-1.0.10/oxygent/web/js/prompt-manager.js +825 -0
  190. oxygent-1.0.10/oxygent/web/js/upload.js +19 -0
  191. oxygent-1.0.10/oxygent/web/js/utils.js +112 -0
  192. oxygent-1.0.10/oxygent/web/node.html +709 -0
  193. oxygent-1.0.10/oxygent/web/prompts.html +151 -0
  194. oxygent-1.0.10/pyproject.toml +38 -0
oxygent-1.0.10/LICENSE ADDED
@@ -0,0 +1,67 @@
1
+ Copyright 2025 JD.com
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16
+
17
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18
+
19
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20
+
21
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
22
+
23
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
24
+
25
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
26
+
27
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
28
+
29
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
30
+
31
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
+
33
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
34
+
35
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
36
+
37
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
38
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
39
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
41
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
42
+
43
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
44
+
45
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
46
+
47
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
48
+
49
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
50
+
51
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
52
+
53
+ Copyright 2025 JD.com.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ Licensed under the Apache License, Version 2.0 (the "License");
58
+ you may not use this project except in compliance with the License.
59
+ You may obtain a copy of the License at
60
+
61
+ http://www.apache.org/licenses/LICENSE-2.0
62
+
63
+ Unless required by applicable law or agreed to in writing, software
64
+ distributed under the License is distributed on an "AS IS" BASIS,
65
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66
+ See the License for the specific language governing permissions and
67
+ limitations under the License.
@@ -0,0 +1,236 @@
1
+ =====================================================================
2
+ The AndroidAutoSize Package
3
+
4
+ https://github.com/JessYanCoding/AndroidAutoSize/blob/master/LICENSE
5
+
6
+ The MIT License
7
+
8
+ Copyright (c) Jerry Liu
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
+ THE SOFTWARE.
27
+
28
+ =====================================================================
29
+ The LlamaIndex Package
30
+
31
+ https://github.com/run-llama/llama_index/blob/main/LICENSE
32
+
33
+ Apache License
34
+ Version 2.0, January 2004
35
+ http://www.apache.org/licenses/
36
+
37
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
38
+
39
+ 1. Definitions.
40
+
41
+ "License" shall mean the terms and conditions for use, reproduction,
42
+ and distribution as defined by Sections 1 through 9 of this document.
43
+
44
+ "Licensor" shall mean the copyright owner or entity authorized by
45
+ the copyright owner that is granting the License.
46
+
47
+ "Legal Entity" shall mean the union of the acting entity and all
48
+ other entities that control, are controlled by, or are under common
49
+ control with that entity. For the purposes of this definition,
50
+ "control" means (i) the power, direct or indirect, to cause the
51
+ direction or management of such entity, whether by contract or
52
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
53
+ outstanding shares, or (iii) beneficial ownership of such entity.
54
+
55
+ "You" (or "Your") shall mean an individual or Legal Entity
56
+ exercising permissions granted by this License.
57
+
58
+ "Source" form shall mean the preferred form for making modifications,
59
+ including but not limited to software source code, documentation
60
+ source, and configuration files.
61
+
62
+ "Object" form shall mean any form resulting from mechanical
63
+ transformation or translation of a Source form, including but
64
+ not limited to compiled object code, generated documentation,
65
+ and conversions to other media types.
66
+
67
+ "Work" shall mean the work of authorship, whether in Source or
68
+ Object form, made available under the License, as indicated by a
69
+ copyright notice that is included in or attached to the work
70
+ (an example is provided in the Appendix below).
71
+
72
+ "Derivative Works" shall mean any work, whether in Source or Object
73
+ form, that is based on (or derived from) the Work and for which the
74
+ editorial revisions, annotations, elaborations, or other modifications
75
+ represent, as a whole, an original work of authorship. For the purposes
76
+ of this License, Derivative Works shall not include works that remain
77
+ separable from, or merely link (or bind by name) to the interfaces of,
78
+ the Work and Derivative Works thereof.
79
+
80
+ "Contribution" shall mean any work of authorship, including
81
+ the original version of the Work and any modifications or additions
82
+ to that Work or Derivative Works thereof, that is intentionally
83
+ submitted to Licensor for inclusion in the Work by the copyright owner
84
+ or by an individual or Legal Entity authorized to submit on behalf of
85
+ the copyright owner. For the purposes of this definition, "submitted"
86
+ means any form of electronic, verbal, or written communication sent
87
+ to the Licensor or its representatives, including but not limited to
88
+ communication on electronic mailing lists, source code control systems,
89
+ and issue tracking systems that are managed by, or on behalf of, the
90
+ Licensor for the purpose of discussing and improving the Work, but
91
+ excluding communication that is conspicuously marked or otherwise
92
+ designated in writing by the copyright owner as "Not a Contribution."
93
+
94
+ "Contributor" shall mean Licensor and any individual or Legal Entity
95
+ on behalf of whom a Contribution has been received by Licensor and
96
+ subsequently incorporated within the Work.
97
+
98
+ 2. Grant of Copyright License. Subject to the terms and conditions of
99
+ this License, each Contributor hereby grants to You a perpetual,
100
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
101
+ copyright license to reproduce, prepare Derivative Works of,
102
+ publicly display, publicly perform, sublicense, and distribute the
103
+ Work and such Derivative Works in Source or Object form.
104
+
105
+ 3. Grant of Patent License. Subject to the terms and conditions of
106
+ this License, each Contributor hereby grants to You a perpetual,
107
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
108
+ (except as stated in this section) patent license to make, have made,
109
+ use, offer to sell, sell, import, and otherwise transfer the Work,
110
+ where such license applies only to those patent claims licensable
111
+ by such Contributor that are necessarily infringed by their
112
+ Contribution(s) alone or by combination of their Contribution(s)
113
+ with the Work to which such Contribution(s) was submitted. If You
114
+ institute patent litigation against any entity (including a
115
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
116
+ or a Contribution incorporated within the Work constitutes direct
117
+ or contributory patent infringement, then any patent licenses
118
+ granted to You under this License for that Work shall terminate
119
+ as of the date such litigation is filed.
120
+
121
+ 4. Redistribution. You may reproduce and distribute copies of the
122
+ Work or Derivative Works thereof in any medium, with or without
123
+ modifications, and in Source or Object form, provided that You
124
+ meet the following conditions:
125
+
126
+ (a) You must give any other recipients of the Work or
127
+ Derivative Works a copy of this License; and
128
+
129
+ (b) You must cause any modified files to carry prominent notices
130
+ stating that You changed the files; and
131
+
132
+ (c) You must retain, in the Source form of any Derivative Works
133
+ that You distribute, all copyright, patent, trademark, and
134
+ attribution notices from the Source form of the Work,
135
+ excluding those notices that do not pertain to any part of
136
+ the Derivative Works; and
137
+
138
+ (d) If the Work includes a "NOTICE" text file as part of its
139
+ distribution, then any Derivative Works that You distribute must
140
+ include a readable copy of the attribution notices contained
141
+ within such NOTICE file, excluding those notices that do not
142
+ pertain to any part of the Derivative Works, in at least one
143
+ of the following places: within a NOTICE text file distributed
144
+ as part of the Derivative Works; within the Source form or
145
+ documentation, if provided along with the Derivative Works; or,
146
+ within a display generated by the Derivative Works, if and
147
+ wherever such third-party notices normally appear. The contents
148
+ of the NOTICE file are for informational purposes only and
149
+ do not modify the License. You may add Your own attribution
150
+ notices within Derivative Works that You distribute, alongside
151
+ or as an addendum to the NOTICE text from the Work, provided
152
+ that such additional attribution notices cannot be construed
153
+ as modifying the License.
154
+
155
+ You may add Your own copyright statement to Your modifications and
156
+ may provide additional or different license terms and conditions
157
+ for use, reproduction, or distribution of Your modifications, or
158
+ for any such Derivative Works as a whole, provided Your use,
159
+ reproduction, and distribution of the Work otherwise complies with
160
+ the conditions stated in this License.
161
+
162
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
163
+ any Contribution intentionally submitted for inclusion in the Work
164
+ by You to the Licensor shall be under the terms and conditions of
165
+ this License, without any additional terms or conditions.
166
+ Notwithstanding the above, nothing herein shall supersede or modify
167
+ the terms of any separate license agreement you may have executed
168
+ with Licensor regarding such Contributions.
169
+
170
+ 6. Trademarks. This License does not grant permission to use the trade
171
+ names, trademarks, service marks, or product names of the Licensor,
172
+ except as required for reasonable and customary use in describing the
173
+ origin of the Work and reproducing the content of the NOTICE file.
174
+
175
+ 7. Disclaimer of Warranty. Unless required by applicable law or
176
+ agreed to in writing, Licensor provides the Work (and each
177
+ Contributor provides its Contributions) on an "AS IS" BASIS,
178
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
179
+ implied, including, without limitation, any warranties or conditions
180
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
181
+ PARTICULAR PURPOSE. You are solely responsible for determining the
182
+ appropriateness of using or redistributing the Work and assume any
183
+ risks associated with Your exercise of permissions under this License.
184
+
185
+ 8. Limitation of Liability. In no event and under no legal theory,
186
+ whether in tort (including negligence), contract, or otherwise,
187
+ unless required by applicable law (such as deliberate and grossly
188
+ negligent acts) or agreed to in writing, shall any Contributor be
189
+ liable to You for damages, including any direct, indirect, special,
190
+ incidental, or consequential damages of any character arising as a
191
+ result of this License or out of the use or inability to use the
192
+ Work (including but not limited to damages for loss of goodwill,
193
+ work stoppage, computer failure or malfunction, or any and all
194
+ other commercial damages or losses), even if such Contributor
195
+ has been advised of the possibility of such damages.
196
+
197
+ 9. Accepting Warranty or Additional Liability. While redistributing
198
+ the Work or Derivative Works thereof, You may choose to offer,
199
+ and charge a fee for, acceptance of support, warranty, indemnity,
200
+ or other liability obligations and/or rights consistent with this
201
+ License. However, in accepting such obligations, You may act only
202
+ on Your own behalf and on Your sole responsibility, not on behalf
203
+ of any other Contributor, and only if You agree to indemnify,
204
+ defend, and hold each Contributor harmless for any liability
205
+ incurred by, or claims asserted against, such Contributor by reason
206
+ of your accepting any such warranty or additional liability.
207
+
208
+ END OF TERMS AND CONDITIONS
209
+
210
+ APPENDIX: How to apply the Apache License to your work.
211
+
212
+ To apply the Apache License to your work, attach the following
213
+ boilerplate notice, with the fields enclosed by brackets "[]"
214
+ replaced with your own identifying information. (Don't include
215
+ the brackets!) The text should be enclosed in the appropriate
216
+ comment syntax for the file format. We also recommend that a
217
+ file or class name and description of purpose be included on the
218
+ same "printed page" as the copyright notice for easier
219
+ identification within third-party archives.
220
+
221
+ Copyright [yyyy] [name of copyright owner]
222
+
223
+ Licensed under the Apache License, Version 2.0 (the "License");
224
+ you may not use this file except in compliance with the License.
225
+ You may obtain a copy of the License at
226
+
227
+ http://www.apache.org/licenses/LICENSE-2.0
228
+
229
+ Unless required by applicable law or agreed to in writing, software
230
+ distributed under the License is distributed on an "AS IS" BASIS,
231
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
232
+ See the License for the specific language governing permissions and
233
+ limitations under the License.
234
+
235
+ =====================================================================
236
+
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.3
2
+ Name: oxygent
3
+ Version: 1.0.10
4
+ Summary: Multi-Agent Collaboration Framework
5
+ Author: jd-oxygen
6
+ Author-email: litianlong26@jd.com
7
+ Requires-Python: >=3.10,<4.0
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Requires-Dist: aiofiles
14
+ Requires-Dist: aiohttp
15
+ Requires-Dist: aiohttp-sse-client
16
+ Requires-Dist: aioredis
17
+ Requires-Dist: colorama
18
+ Requires-Dist: elasticsearch (==7.17.12)
19
+ Requires-Dist: fastapi
20
+ Requires-Dist: httpx
21
+ Requires-Dist: mcp
22
+ Requires-Dist: msgpack
23
+ Requires-Dist: numpy
24
+ Requires-Dist: openai
25
+ Requires-Dist: pandas
26
+ Requires-Dist: pillow
27
+ Requires-Dist: pydantic
28
+ Requires-Dist: python-multipart
29
+ Requires-Dist: requests
30
+ Requires-Dist: shortuuid
31
+ Requires-Dist: tqdm
32
+ Requires-Dist: uv
33
+ Requires-Dist: uvicorn
34
+ Requires-Dist: websockets
@@ -0,0 +1,34 @@
1
+ from dotenv import load_dotenv
2
+
3
+ from .config import Config
4
+ from .mas import MAS, BankRouter
5
+ from .oxy import Oxy
6
+ from .oxy_factory import OxyFactory
7
+ from .schemas import OxyOutput, OxyRequest, OxyResponse, OxyState
8
+
9
+ # Live prompt management module
10
+ from .live_prompt import (
11
+ get_prompt_manager,
12
+ hot_reload_prompt,
13
+ hot_reload_agent,
14
+ hot_reload_all_prompts,
15
+ )
16
+
17
+ load_dotenv(".env")
18
+
19
+ __all__ = [
20
+ "Oxy",
21
+ "MAS",
22
+ "BankRouter",
23
+ "OxyState",
24
+ "OxyRequest",
25
+ "OxyOutput",
26
+ "OxyResponse",
27
+ "OxyFactory",
28
+ "Config",
29
+ # Prompt management
30
+ "get_prompt_manager",
31
+ "hot_reload_prompt",
32
+ "hot_reload_agent",
33
+ "hot_reload_all_prompts",
34
+ ]
@@ -0,0 +1,54 @@
1
+ oxygent_larry3d = """
2
+ _____ ____ __
3
+ /\ __`\ /\ _`\ /\ \__
4
+ \ \ \/\ \ __ _ __ __\ \ \L\_\ __ ___\ \ ,_\
5
+ \ \ \ \ \ /\ \/'\/\ \/\ \\ \ \L_L /'__`\/' _ `\ \ \/
6
+ \ \ \_\ \\/> </\ \ \_\ \\ \ \/, \/\ __//\ \/\ \ \ \_
7
+ \ \_____\/\_/\_\\/`____ \\ \____/\ \____\ \_\ \_\ \__\
8
+ \/_____/\//\/_/ `/___/> \\/___/ \/____/\/_/\/_/\/__/
9
+ /\___/
10
+ \/__/
11
+ """
12
+
13
+ oxygent_slant = """
14
+ ____ ______ __
15
+ / __ \_ ____ __/ ____/__ ____ / /_
16
+ / / / / |/_/ / / / / __/ _ \/ __ \/ __/
17
+ / /_/ /> </ /_/ / /_/ / __/ / / / /_
18
+ \____/_/|_|\__, /\____/\___/_/ /_/\__/
19
+ /____/
20
+ """
21
+
22
+ oxygent_standard = """
23
+ ___ ____ _
24
+ / _ \__ ___ _ / ___| ___ _ __ | |_
25
+ | | | \ \/ / | | | | _ / _ \ '_ \| __|
26
+ | |_| |> <| |_| | |_| | __/ | | | |_
27
+ \___//_/\_\\__, |\____|\___|_| |_|\__|
28
+ |___/
29
+ """
30
+
31
+ oxygent_smslant = """
32
+ ____ _____ __
33
+ / __ \__ ____ __/ ___/__ ___ / /_
34
+ / /_/ /\ \ / // / (_ / -_) _ \/ __/
35
+ \____//_\_\\_, /\___/\__/_//_/\__/
36
+ /___/
37
+ """
38
+
39
+ oxygent_speed = """
40
+ _______ _________ _____
41
+ __ __ \___ ______ ___ ____/_____________ /_
42
+ _ / / /_ |/_/_ / / / / __ _ _ \_ __ \ __/
43
+ / /_/ /__> < _ /_/ // /_/ / / __/ / / / /_
44
+ \____/ /_/|_| _\__, / \____/ \___//_/ /_/\__/
45
+ /____/
46
+ """
47
+
48
+ oxygent_chunky = """
49
+ _______ _______ __
50
+ | |.--.--.--.--.| __|.-----.-----.| |_
51
+ | - ||_ _| | || | || -__| || _|
52
+ |_______||__.__|___ ||_______||_____|__|__||____|
53
+ |_____|
54
+ """