ag2 0.4.1__tar.gz → 0.5.0b2__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.

Potentially problematic release.


This version of ag2 might be problematic. Click here for more details.

Files changed (177) hide show
  1. {ag2-0.4.1/ag2.egg-info → ag2-0.5.0b2}/PKG-INFO +4 -41
  2. {ag2-0.4.1 → ag2-0.5.0b2}/README.md +2 -10
  3. {ag2-0.4.1 → ag2-0.5.0b2/ag2.egg-info}/PKG-INFO +4 -41
  4. ag2-0.5.0b2/ag2.egg-info/SOURCES.txt +20 -0
  5. ag2-0.5.0b2/ag2.egg-info/requires.txt +1 -0
  6. ag2-0.5.0b2/ag2.egg-info/top_level.txt +1 -0
  7. {ag2-0.4.1 → ag2-0.5.0b2}/setup.py +2 -13
  8. ag2-0.5.0b2/setup_ag2.py +37 -0
  9. {ag2-0.4.1 → ag2-0.5.0b2}/test/test_logging.py +9 -0
  10. ag2-0.4.1/ag2.egg-info/SOURCES.txt +0 -171
  11. ag2-0.4.1/ag2.egg-info/requires.txt +0 -167
  12. ag2-0.4.1/ag2.egg-info/top_level.txt +0 -1
  13. ag2-0.4.1/autogen/__init__.py +0 -17
  14. ag2-0.4.1/autogen/_pydantic.py +0 -116
  15. ag2-0.4.1/autogen/agentchat/__init__.py +0 -42
  16. ag2-0.4.1/autogen/agentchat/agent.py +0 -142
  17. ag2-0.4.1/autogen/agentchat/assistant_agent.py +0 -85
  18. ag2-0.4.1/autogen/agentchat/chat.py +0 -306
  19. ag2-0.4.1/autogen/agentchat/contrib/__init__.py +0 -0
  20. ag2-0.4.1/autogen/agentchat/contrib/agent_builder.py +0 -788
  21. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/agent_eval.py +0 -107
  22. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/criterion.py +0 -47
  23. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/critic_agent.py +0 -47
  24. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/quantifier_agent.py +0 -42
  25. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/subcritic_agent.py +0 -48
  26. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/task.py +0 -43
  27. ag2-0.4.1/autogen/agentchat/contrib/agent_optimizer.py +0 -450
  28. ag2-0.4.1/autogen/agentchat/contrib/capabilities/__init__.py +0 -0
  29. ag2-0.4.1/autogen/agentchat/contrib/capabilities/agent_capability.py +0 -21
  30. ag2-0.4.1/autogen/agentchat/contrib/capabilities/generate_images.py +0 -297
  31. ag2-0.4.1/autogen/agentchat/contrib/capabilities/teachability.py +0 -406
  32. ag2-0.4.1/autogen/agentchat/contrib/capabilities/text_compressors.py +0 -72
  33. ag2-0.4.1/autogen/agentchat/contrib/capabilities/transform_messages.py +0 -92
  34. ag2-0.4.1/autogen/agentchat/contrib/capabilities/transforms.py +0 -565
  35. ag2-0.4.1/autogen/agentchat/contrib/capabilities/transforms_util.py +0 -120
  36. ag2-0.4.1/autogen/agentchat/contrib/capabilities/vision_capability.py +0 -217
  37. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/__init__.py +0 -0
  38. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/calculate_correlation.py +0 -41
  39. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/calculate_skewness_and_kurtosis.py +0 -29
  40. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/detect_outlier_iqr.py +0 -29
  41. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/detect_outlier_zscore.py +0 -29
  42. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/explore_csv.py +0 -22
  43. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/shapiro_wilk_test.py +0 -31
  44. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/arxiv_download.py +0 -26
  45. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/arxiv_search.py +0 -55
  46. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/extract_pdf_image.py +0 -54
  47. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/extract_pdf_text.py +0 -39
  48. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/get_wikipedia_text.py +0 -22
  49. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/get_youtube_caption.py +0 -35
  50. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/image_qa.py +0 -61
  51. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/optical_character_recognition.py +0 -62
  52. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/perform_web_search.py +0 -48
  53. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/scrape_wikipedia_tables.py +0 -34
  54. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/transcribe_audio_file.py +0 -22
  55. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/youtube_download.py +0 -36
  56. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_circle_area_from_diameter.py +0 -22
  57. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_day_of_the_week.py +0 -19
  58. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_fraction_sum.py +0 -29
  59. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_matrix_power.py +0 -32
  60. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_reflected_point.py +0 -17
  61. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/complex_numbers_product.py +0 -26
  62. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/compute_currency_conversion.py +0 -24
  63. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/count_distinct_permutations.py +0 -28
  64. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/evaluate_expression.py +0 -29
  65. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/find_continuity_point.py +0 -35
  66. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/fraction_to_mixed_numbers.py +0 -40
  67. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/modular_inverse_sum.py +0 -23
  68. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/simplify_mixed_numbers.py +0 -37
  69. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/sum_of_digit_factorials.py +0 -16
  70. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/sum_of_primes_below.py +0 -16
  71. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/requirements.txt +0 -10
  72. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/tool_description.tsv +0 -34
  73. ag2-0.4.1/autogen/agentchat/contrib/captainagent.py +0 -490
  74. ag2-0.4.1/autogen/agentchat/contrib/gpt_assistant_agent.py +0 -545
  75. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/__init__.py +0 -0
  76. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/document.py +0 -30
  77. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/falkor_graph_query_engine.py +0 -111
  78. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/falkor_graph_rag_capability.py +0 -81
  79. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/graph_query_engine.py +0 -56
  80. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/graph_rag_capability.py +0 -64
  81. ag2-0.4.1/autogen/agentchat/contrib/img_utils.py +0 -390
  82. ag2-0.4.1/autogen/agentchat/contrib/llamaindex_conversable_agent.py +0 -123
  83. ag2-0.4.1/autogen/agentchat/contrib/llava_agent.py +0 -176
  84. ag2-0.4.1/autogen/agentchat/contrib/math_user_proxy_agent.py +0 -471
  85. ag2-0.4.1/autogen/agentchat/contrib/multimodal_conversable_agent.py +0 -128
  86. ag2-0.4.1/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py +0 -325
  87. ag2-0.4.1/autogen/agentchat/contrib/retrieve_assistant_agent.py +0 -56
  88. ag2-0.4.1/autogen/agentchat/contrib/retrieve_user_proxy_agent.py +0 -705
  89. ag2-0.4.1/autogen/agentchat/contrib/society_of_mind_agent.py +0 -203
  90. ag2-0.4.1/autogen/agentchat/contrib/swarm_agent.py +0 -463
  91. ag2-0.4.1/autogen/agentchat/contrib/text_analyzer_agent.py +0 -76
  92. ag2-0.4.1/autogen/agentchat/contrib/tool_retriever.py +0 -120
  93. ag2-0.4.1/autogen/agentchat/contrib/vectordb/__init__.py +0 -0
  94. ag2-0.4.1/autogen/agentchat/contrib/vectordb/base.py +0 -243
  95. ag2-0.4.1/autogen/agentchat/contrib/vectordb/chromadb.py +0 -326
  96. ag2-0.4.1/autogen/agentchat/contrib/vectordb/mongodb.py +0 -559
  97. ag2-0.4.1/autogen/agentchat/contrib/vectordb/pgvectordb.py +0 -958
  98. ag2-0.4.1/autogen/agentchat/contrib/vectordb/qdrant.py +0 -334
  99. ag2-0.4.1/autogen/agentchat/contrib/vectordb/utils.py +0 -126
  100. ag2-0.4.1/autogen/agentchat/contrib/web_surfer.py +0 -305
  101. ag2-0.4.1/autogen/agentchat/conversable_agent.py +0 -2908
  102. ag2-0.4.1/autogen/agentchat/groupchat.py +0 -1668
  103. ag2-0.4.1/autogen/agentchat/user_proxy_agent.py +0 -109
  104. ag2-0.4.1/autogen/agentchat/utils.py +0 -207
  105. ag2-0.4.1/autogen/browser_utils.py +0 -291
  106. ag2-0.4.1/autogen/cache/__init__.py +0 -10
  107. ag2-0.4.1/autogen/cache/abstract_cache_base.py +0 -78
  108. ag2-0.4.1/autogen/cache/cache.py +0 -182
  109. ag2-0.4.1/autogen/cache/cache_factory.py +0 -85
  110. ag2-0.4.1/autogen/cache/cosmos_db_cache.py +0 -150
  111. ag2-0.4.1/autogen/cache/disk_cache.py +0 -109
  112. ag2-0.4.1/autogen/cache/in_memory_cache.py +0 -61
  113. ag2-0.4.1/autogen/cache/redis_cache.py +0 -128
  114. ag2-0.4.1/autogen/code_utils.py +0 -745
  115. ag2-0.4.1/autogen/coding/__init__.py +0 -22
  116. ag2-0.4.1/autogen/coding/base.py +0 -113
  117. ag2-0.4.1/autogen/coding/docker_commandline_code_executor.py +0 -262
  118. ag2-0.4.1/autogen/coding/factory.py +0 -45
  119. ag2-0.4.1/autogen/coding/func_with_reqs.py +0 -203
  120. ag2-0.4.1/autogen/coding/jupyter/__init__.py +0 -22
  121. ag2-0.4.1/autogen/coding/jupyter/base.py +0 -32
  122. ag2-0.4.1/autogen/coding/jupyter/docker_jupyter_server.py +0 -164
  123. ag2-0.4.1/autogen/coding/jupyter/embedded_ipython_code_executor.py +0 -182
  124. ag2-0.4.1/autogen/coding/jupyter/jupyter_client.py +0 -224
  125. ag2-0.4.1/autogen/coding/jupyter/jupyter_code_executor.py +0 -161
  126. ag2-0.4.1/autogen/coding/jupyter/local_jupyter_server.py +0 -168
  127. ag2-0.4.1/autogen/coding/local_commandline_code_executor.py +0 -410
  128. ag2-0.4.1/autogen/coding/markdown_code_extractor.py +0 -44
  129. ag2-0.4.1/autogen/coding/utils.py +0 -57
  130. ag2-0.4.1/autogen/exception_utils.py +0 -46
  131. ag2-0.4.1/autogen/extensions/__init__.py +0 -0
  132. ag2-0.4.1/autogen/formatting_utils.py +0 -76
  133. ag2-0.4.1/autogen/function_utils.py +0 -362
  134. ag2-0.4.1/autogen/graph_utils.py +0 -148
  135. ag2-0.4.1/autogen/io/__init__.py +0 -15
  136. ag2-0.4.1/autogen/io/base.py +0 -105
  137. ag2-0.4.1/autogen/io/console.py +0 -43
  138. ag2-0.4.1/autogen/io/websockets.py +0 -213
  139. ag2-0.4.1/autogen/logger/__init__.py +0 -11
  140. ag2-0.4.1/autogen/logger/base_logger.py +0 -140
  141. ag2-0.4.1/autogen/logger/file_logger.py +0 -287
  142. ag2-0.4.1/autogen/logger/logger_factory.py +0 -29
  143. ag2-0.4.1/autogen/logger/logger_utils.py +0 -42
  144. ag2-0.4.1/autogen/logger/sqlite_logger.py +0 -459
  145. ag2-0.4.1/autogen/math_utils.py +0 -356
  146. ag2-0.4.1/autogen/oai/__init__.py +0 -33
  147. ag2-0.4.1/autogen/oai/anthropic.py +0 -428
  148. ag2-0.4.1/autogen/oai/bedrock.py +0 -606
  149. ag2-0.4.1/autogen/oai/cerebras.py +0 -270
  150. ag2-0.4.1/autogen/oai/client.py +0 -1148
  151. ag2-0.4.1/autogen/oai/client_utils.py +0 -167
  152. ag2-0.4.1/autogen/oai/cohere.py +0 -453
  153. ag2-0.4.1/autogen/oai/completion.py +0 -1216
  154. ag2-0.4.1/autogen/oai/gemini.py +0 -469
  155. ag2-0.4.1/autogen/oai/groq.py +0 -281
  156. ag2-0.4.1/autogen/oai/mistral.py +0 -279
  157. ag2-0.4.1/autogen/oai/ollama.py +0 -582
  158. ag2-0.4.1/autogen/oai/openai_utils.py +0 -811
  159. ag2-0.4.1/autogen/oai/together.py +0 -343
  160. ag2-0.4.1/autogen/retrieve_utils.py +0 -487
  161. ag2-0.4.1/autogen/runtime_logging.py +0 -163
  162. ag2-0.4.1/autogen/token_count_utils.py +0 -259
  163. ag2-0.4.1/autogen/types.py +0 -20
  164. ag2-0.4.1/autogen/version.py +0 -7
  165. {ag2-0.4.1 → ag2-0.5.0b2}/LICENSE +0 -0
  166. {ag2-0.4.1 → ag2-0.5.0b2}/NOTICE.md +0 -0
  167. {ag2-0.4.1 → ag2-0.5.0b2}/ag2.egg-info/dependency_links.txt +0 -0
  168. {ag2-0.4.1 → ag2-0.5.0b2}/pyproject.toml +0 -0
  169. {ag2-0.4.1 → ag2-0.5.0b2}/setup.cfg +0 -0
  170. {ag2-0.4.1 → ag2-0.5.0b2}/test/test_browser_utils.py +0 -0
  171. {ag2-0.4.1 → ag2-0.5.0b2}/test/test_code_utils.py +0 -0
  172. {ag2-0.4.1 → ag2-0.5.0b2}/test/test_function_utils.py +0 -0
  173. {ag2-0.4.1 → ag2-0.5.0b2}/test/test_graph_utils.py +0 -0
  174. {ag2-0.4.1 → ag2-0.5.0b2}/test/test_notebook.py +0 -0
  175. {ag2-0.4.1 → ag2-0.5.0b2}/test/test_pydantic.py +0 -0
  176. {ag2-0.4.1 → ag2-0.5.0b2}/test/test_retrieve_utils.py +0 -0
  177. {ag2-0.4.1 → ag2-0.5.0b2}/test/test_token_count.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ag2
3
- Version: 0.4.1
4
- Summary: A programming framework for agentic AI
3
+ Version: 0.5.0b2
4
+ Summary: Alias package for pyautogen
5
5
  Home-page: https://github.com/ag2ai/ag2
6
6
  Author: Chi Wang & Qingyun Wu
7
7
  Author-email: support@ag2.ai
@@ -12,35 +12,6 @@ Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Operating System :: OS Independent
13
13
  Requires-Python: >=3.8,<3.14
14
14
  Description-Content-Type: text/markdown
15
- Provides-Extra: anthropic
16
- Provides-Extra: autobuild
17
- Provides-Extra: bedrock
18
- Provides-Extra: blendsearch
19
- Provides-Extra: captainagent
20
- Provides-Extra: cerebras
21
- Provides-Extra: cohere
22
- Provides-Extra: cosmosdb
23
- Provides-Extra: gemini
24
- Provides-Extra: graph
25
- Provides-Extra: graph_rag_falkor_db
26
- Provides-Extra: groq
27
- Provides-Extra: jupyter-executor
28
- Provides-Extra: lmm
29
- Provides-Extra: long-context
30
- Provides-Extra: mathchat
31
- Provides-Extra: mistral
32
- Provides-Extra: ollama
33
- Provides-Extra: redis
34
- Provides-Extra: retrievechat
35
- Provides-Extra: retrievechat-mongodb
36
- Provides-Extra: retrievechat-pgvector
37
- Provides-Extra: retrievechat-qdrant
38
- Provides-Extra: teachable
39
- Provides-Extra: test
40
- Provides-Extra: together
41
- Provides-Extra: types
42
- Provides-Extra: websockets
43
- Provides-Extra: websurfer
44
15
  License-File: LICENSE
45
16
  License-File: NOTICE.md
46
17
 
@@ -71,19 +42,11 @@ License-File: NOTICE.md
71
42
  > We invite collaborators from all organizations and individuals to join the development.
72
43
 
73
44
 
74
- :fire: :tada: AG2 is available via `ag2` (or its alias `autogen` or `pyautogen`) on PyPI! Starting with version 0.3.2, you can now install AG2 using:
75
- ```
76
- pip install ag2
77
- ```
78
- or
45
+ :fire: :tada: AG2 is available via `pyautogen` (or its alias `autogen` or `ag2`) on PyPI!
46
+
79
47
  ```
80
48
  pip install pyautogen
81
49
  ```
82
- or
83
- ```
84
- pip install autogen
85
- ```
86
-
87
50
 
88
51
  📄 **License:**
89
52
  We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-source collaboration while providing additional protections for contributors and users alike.
@@ -25,19 +25,11 @@
25
25
  > We invite collaborators from all organizations and individuals to join the development.
26
26
 
27
27
 
28
- :fire: :tada: AG2 is available via `ag2` (or its alias `autogen` or `pyautogen`) on PyPI! Starting with version 0.3.2, you can now install AG2 using:
29
- ```
30
- pip install ag2
31
- ```
32
- or
28
+ :fire: :tada: AG2 is available via `pyautogen` (or its alias `autogen` or `ag2`) on PyPI!
29
+
33
30
  ```
34
31
  pip install pyautogen
35
32
  ```
36
- or
37
- ```
38
- pip install autogen
39
- ```
40
-
41
33
 
42
34
  📄 **License:**
43
35
  We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-source collaboration while providing additional protections for contributors and users alike.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ag2
3
- Version: 0.4.1
4
- Summary: A programming framework for agentic AI
3
+ Version: 0.5.0b2
4
+ Summary: Alias package for pyautogen
5
5
  Home-page: https://github.com/ag2ai/ag2
6
6
  Author: Chi Wang & Qingyun Wu
7
7
  Author-email: support@ag2.ai
@@ -12,35 +12,6 @@ Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Operating System :: OS Independent
13
13
  Requires-Python: >=3.8,<3.14
14
14
  Description-Content-Type: text/markdown
15
- Provides-Extra: anthropic
16
- Provides-Extra: autobuild
17
- Provides-Extra: bedrock
18
- Provides-Extra: blendsearch
19
- Provides-Extra: captainagent
20
- Provides-Extra: cerebras
21
- Provides-Extra: cohere
22
- Provides-Extra: cosmosdb
23
- Provides-Extra: gemini
24
- Provides-Extra: graph
25
- Provides-Extra: graph_rag_falkor_db
26
- Provides-Extra: groq
27
- Provides-Extra: jupyter-executor
28
- Provides-Extra: lmm
29
- Provides-Extra: long-context
30
- Provides-Extra: mathchat
31
- Provides-Extra: mistral
32
- Provides-Extra: ollama
33
- Provides-Extra: redis
34
- Provides-Extra: retrievechat
35
- Provides-Extra: retrievechat-mongodb
36
- Provides-Extra: retrievechat-pgvector
37
- Provides-Extra: retrievechat-qdrant
38
- Provides-Extra: teachable
39
- Provides-Extra: test
40
- Provides-Extra: together
41
- Provides-Extra: types
42
- Provides-Extra: websockets
43
- Provides-Extra: websurfer
44
15
  License-File: LICENSE
45
16
  License-File: NOTICE.md
46
17
 
@@ -71,19 +42,11 @@ License-File: NOTICE.md
71
42
  > We invite collaborators from all organizations and individuals to join the development.
72
43
 
73
44
 
74
- :fire: :tada: AG2 is available via `ag2` (or its alias `autogen` or `pyautogen`) on PyPI! Starting with version 0.3.2, you can now install AG2 using:
75
- ```
76
- pip install ag2
77
- ```
78
- or
45
+ :fire: :tada: AG2 is available via `pyautogen` (or its alias `autogen` or `ag2`) on PyPI!
46
+
79
47
  ```
80
48
  pip install pyautogen
81
49
  ```
82
- or
83
- ```
84
- pip install autogen
85
- ```
86
-
87
50
 
88
51
  📄 **License:**
89
52
  We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-source collaboration while providing additional protections for contributors and users alike.
@@ -0,0 +1,20 @@
1
+ LICENSE
2
+ NOTICE.md
3
+ README.md
4
+ pyproject.toml
5
+ setup.py
6
+ setup_ag2.py
7
+ ag2.egg-info/PKG-INFO
8
+ ag2.egg-info/SOURCES.txt
9
+ ag2.egg-info/dependency_links.txt
10
+ ag2.egg-info/requires.txt
11
+ ag2.egg-info/top_level.txt
12
+ test/test_browser_utils.py
13
+ test/test_code_utils.py
14
+ test/test_function_utils.py
15
+ test/test_graph_utils.py
16
+ test/test_logging.py
17
+ test/test_notebook.py
18
+ test/test_pydantic.py
19
+ test/test_retrieve_utils.py
20
+ test/test_token_count.py
@@ -0,0 +1 @@
1
+ pyautogen==0.5.0b2
@@ -0,0 +1 @@
1
+
@@ -60,9 +60,7 @@ retrieve_chat = [
60
60
 
61
61
  retrieve_chat_pgvector = [*retrieve_chat, "pgvector>=0.2.5"]
62
62
 
63
- graph_rag_falkor_db = [
64
- "graphrag_sdk==0.3.3",
65
- ]
63
+ graph_rag_falkor_db = ["graphrag_sdk==0.3.3", "falkordb>=1.0.10"]
66
64
 
67
65
  if current_os in ["Windows", "Darwin"]:
68
66
  retrieve_chat_pgvector.extend(["psycopg[binary]>=3.1.18"])
@@ -113,17 +111,8 @@ extra_require = {
113
111
  "bedrock": ["boto3>=1.34.149"],
114
112
  }
115
113
 
116
-
117
- if "--name" in sys.argv:
118
- index = sys.argv.index("--name")
119
- sys.argv.pop(index) # Removes --name
120
- package_name = sys.argv.pop(index) # Removes the value after --name
121
- else:
122
- package_name = "ag2"
123
-
124
-
125
114
  setuptools.setup(
126
- name=package_name,
115
+ name="pyautogen",
127
116
  version=__version__,
128
117
  author="Chi Wang & Qingyun Wu",
129
118
  author_email="support@ag2.ai",
@@ -0,0 +1,37 @@
1
+ # Copyright (c) 2023 - 2024, Owners of https://github.com/ag2ai
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ import os
6
+
7
+ import setuptools
8
+
9
+ here = os.path.abspath(os.path.dirname(__file__))
10
+
11
+ with open("README.md", "r", encoding="UTF-8") as fh:
12
+ long_description = fh.read()
13
+
14
+ # Get the code version
15
+ version = {}
16
+ with open(os.path.join(here, "autogen/version.py")) as fp:
17
+ exec(fp.read(), version)
18
+ __version__ = version["__version__"]
19
+
20
+ setuptools.setup(
21
+ name="ag2",
22
+ version=__version__,
23
+ description="Alias package for pyautogen",
24
+ long_description=long_description,
25
+ long_description_content_type="text/markdown",
26
+ install_requires=["pyautogen==" + __version__],
27
+ url="https://github.com/ag2ai/ag2",
28
+ author="Chi Wang & Qingyun Wu",
29
+ author_email="support@ag2.ai",
30
+ classifiers=[
31
+ "Programming Language :: Python :: 3",
32
+ "License :: OSI Approved :: Apache Software License",
33
+ "Operating System :: OS Independent",
34
+ ],
35
+ license="Apache Software License 2.0",
36
+ python_requires=">=3.8,<3.14",
37
+ )
@@ -5,8 +5,10 @@
5
5
  # Portions derived from https://github.com/microsoft/autogen are under the MIT License.
6
6
  # SPDX-License-Identifier: MIT
7
7
  import json
8
+ import os
8
9
  import sqlite3
9
10
  import uuid
11
+ from pathlib import Path
10
12
  from typing import Any, Callable
11
13
  from unittest.mock import Mock, patch
12
14
 
@@ -232,12 +234,16 @@ def test_log_oai_client(db_connection):
232
234
 
233
235
  def test_to_dict():
234
236
  from autogen import Agent
237
+ from autogen.coding import LocalCommandLineCodeExecutor
238
+
239
+ agent_executor = LocalCommandLineCodeExecutor(work_dir=Path("."))
235
240
 
236
241
  agent1 = autogen.ConversableAgent(
237
242
  "alice",
238
243
  human_input_mode="NEVER",
239
244
  llm_config=False,
240
245
  default_auto_reply="This is alice speaking.",
246
+ code_execution_config={"executor": agent_executor},
241
247
  )
242
248
 
243
249
  agent2 = autogen.ConversableAgent(
@@ -256,6 +262,7 @@ def test_to_dict():
256
262
  self.d = None
257
263
  self.test_function = lambda x, y: x + y
258
264
  self.extra_key = "remove this key"
265
+ self.path = Path("/to/something")
259
266
 
260
267
  class Bar(object):
261
268
  def init(self):
@@ -270,6 +277,7 @@ def test_to_dict():
270
277
  bar = Bar()
271
278
  bar.build()
272
279
 
280
+ expected_path = "\\to\\something" if os.name == "nt" else "/to/something"
273
281
  expected_foo_val_field = [
274
282
  {
275
283
  "a": 1.234,
@@ -277,6 +285,7 @@ def test_to_dict():
277
285
  "c": {"some_key": [7, 8, 9]},
278
286
  "d": None,
279
287
  "test_function": "self.test_function = lambda x, y: x + y",
288
+ "path": expected_path,
280
289
  }
281
290
  ]
282
291
 
@@ -1,171 +0,0 @@
1
- LICENSE
2
- NOTICE.md
3
- README.md
4
- pyproject.toml
5
- setup.py
6
- ag2.egg-info/PKG-INFO
7
- ag2.egg-info/SOURCES.txt
8
- ag2.egg-info/dependency_links.txt
9
- ag2.egg-info/requires.txt
10
- ag2.egg-info/top_level.txt
11
- autogen/__init__.py
12
- autogen/_pydantic.py
13
- autogen/browser_utils.py
14
- autogen/code_utils.py
15
- autogen/exception_utils.py
16
- autogen/formatting_utils.py
17
- autogen/function_utils.py
18
- autogen/graph_utils.py
19
- autogen/math_utils.py
20
- autogen/retrieve_utils.py
21
- autogen/runtime_logging.py
22
- autogen/token_count_utils.py
23
- autogen/types.py
24
- autogen/version.py
25
- autogen/agentchat/__init__.py
26
- autogen/agentchat/agent.py
27
- autogen/agentchat/assistant_agent.py
28
- autogen/agentchat/chat.py
29
- autogen/agentchat/conversable_agent.py
30
- autogen/agentchat/groupchat.py
31
- autogen/agentchat/user_proxy_agent.py
32
- autogen/agentchat/utils.py
33
- autogen/agentchat/contrib/__init__.py
34
- autogen/agentchat/contrib/agent_builder.py
35
- autogen/agentchat/contrib/agent_optimizer.py
36
- autogen/agentchat/contrib/captainagent.py
37
- autogen/agentchat/contrib/gpt_assistant_agent.py
38
- autogen/agentchat/contrib/img_utils.py
39
- autogen/agentchat/contrib/llamaindex_conversable_agent.py
40
- autogen/agentchat/contrib/llava_agent.py
41
- autogen/agentchat/contrib/math_user_proxy_agent.py
42
- autogen/agentchat/contrib/multimodal_conversable_agent.py
43
- autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py
44
- autogen/agentchat/contrib/retrieve_assistant_agent.py
45
- autogen/agentchat/contrib/retrieve_user_proxy_agent.py
46
- autogen/agentchat/contrib/society_of_mind_agent.py
47
- autogen/agentchat/contrib/swarm_agent.py
48
- autogen/agentchat/contrib/text_analyzer_agent.py
49
- autogen/agentchat/contrib/tool_retriever.py
50
- autogen/agentchat/contrib/web_surfer.py
51
- autogen/agentchat/contrib/agent_eval/agent_eval.py
52
- autogen/agentchat/contrib/agent_eval/criterion.py
53
- autogen/agentchat/contrib/agent_eval/critic_agent.py
54
- autogen/agentchat/contrib/agent_eval/quantifier_agent.py
55
- autogen/agentchat/contrib/agent_eval/subcritic_agent.py
56
- autogen/agentchat/contrib/agent_eval/task.py
57
- autogen/agentchat/contrib/capabilities/__init__.py
58
- autogen/agentchat/contrib/capabilities/agent_capability.py
59
- autogen/agentchat/contrib/capabilities/generate_images.py
60
- autogen/agentchat/contrib/capabilities/teachability.py
61
- autogen/agentchat/contrib/capabilities/text_compressors.py
62
- autogen/agentchat/contrib/capabilities/transform_messages.py
63
- autogen/agentchat/contrib/capabilities/transforms.py
64
- autogen/agentchat/contrib/capabilities/transforms_util.py
65
- autogen/agentchat/contrib/capabilities/vision_capability.py
66
- autogen/agentchat/contrib/captainagent/tools/__init__.py
67
- autogen/agentchat/contrib/captainagent/tools/requirements.txt
68
- autogen/agentchat/contrib/captainagent/tools/tool_description.tsv
69
- autogen/agentchat/contrib/captainagent/tools/data_analysis/calculate_correlation.py
70
- autogen/agentchat/contrib/captainagent/tools/data_analysis/calculate_skewness_and_kurtosis.py
71
- autogen/agentchat/contrib/captainagent/tools/data_analysis/detect_outlier_iqr.py
72
- autogen/agentchat/contrib/captainagent/tools/data_analysis/detect_outlier_zscore.py
73
- autogen/agentchat/contrib/captainagent/tools/data_analysis/explore_csv.py
74
- autogen/agentchat/contrib/captainagent/tools/data_analysis/shapiro_wilk_test.py
75
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/arxiv_download.py
76
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/arxiv_search.py
77
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/extract_pdf_image.py
78
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/extract_pdf_text.py
79
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/get_wikipedia_text.py
80
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/get_youtube_caption.py
81
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/image_qa.py
82
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/optical_character_recognition.py
83
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/perform_web_search.py
84
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/scrape_wikipedia_tables.py
85
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/transcribe_audio_file.py
86
- autogen/agentchat/contrib/captainagent/tools/information_retrieval/youtube_download.py
87
- autogen/agentchat/contrib/captainagent/tools/math/calculate_circle_area_from_diameter.py
88
- autogen/agentchat/contrib/captainagent/tools/math/calculate_day_of_the_week.py
89
- autogen/agentchat/contrib/captainagent/tools/math/calculate_fraction_sum.py
90
- autogen/agentchat/contrib/captainagent/tools/math/calculate_matrix_power.py
91
- autogen/agentchat/contrib/captainagent/tools/math/calculate_reflected_point.py
92
- autogen/agentchat/contrib/captainagent/tools/math/complex_numbers_product.py
93
- autogen/agentchat/contrib/captainagent/tools/math/compute_currency_conversion.py
94
- autogen/agentchat/contrib/captainagent/tools/math/count_distinct_permutations.py
95
- autogen/agentchat/contrib/captainagent/tools/math/evaluate_expression.py
96
- autogen/agentchat/contrib/captainagent/tools/math/find_continuity_point.py
97
- autogen/agentchat/contrib/captainagent/tools/math/fraction_to_mixed_numbers.py
98
- autogen/agentchat/contrib/captainagent/tools/math/modular_inverse_sum.py
99
- autogen/agentchat/contrib/captainagent/tools/math/simplify_mixed_numbers.py
100
- autogen/agentchat/contrib/captainagent/tools/math/sum_of_digit_factorials.py
101
- autogen/agentchat/contrib/captainagent/tools/math/sum_of_primes_below.py
102
- autogen/agentchat/contrib/graph_rag/__init__.py
103
- autogen/agentchat/contrib/graph_rag/document.py
104
- autogen/agentchat/contrib/graph_rag/falkor_graph_query_engine.py
105
- autogen/agentchat/contrib/graph_rag/falkor_graph_rag_capability.py
106
- autogen/agentchat/contrib/graph_rag/graph_query_engine.py
107
- autogen/agentchat/contrib/graph_rag/graph_rag_capability.py
108
- autogen/agentchat/contrib/vectordb/__init__.py
109
- autogen/agentchat/contrib/vectordb/base.py
110
- autogen/agentchat/contrib/vectordb/chromadb.py
111
- autogen/agentchat/contrib/vectordb/mongodb.py
112
- autogen/agentchat/contrib/vectordb/pgvectordb.py
113
- autogen/agentchat/contrib/vectordb/qdrant.py
114
- autogen/agentchat/contrib/vectordb/utils.py
115
- autogen/cache/__init__.py
116
- autogen/cache/abstract_cache_base.py
117
- autogen/cache/cache.py
118
- autogen/cache/cache_factory.py
119
- autogen/cache/cosmos_db_cache.py
120
- autogen/cache/disk_cache.py
121
- autogen/cache/in_memory_cache.py
122
- autogen/cache/redis_cache.py
123
- autogen/coding/__init__.py
124
- autogen/coding/base.py
125
- autogen/coding/docker_commandline_code_executor.py
126
- autogen/coding/factory.py
127
- autogen/coding/func_with_reqs.py
128
- autogen/coding/local_commandline_code_executor.py
129
- autogen/coding/markdown_code_extractor.py
130
- autogen/coding/utils.py
131
- autogen/coding/jupyter/__init__.py
132
- autogen/coding/jupyter/base.py
133
- autogen/coding/jupyter/docker_jupyter_server.py
134
- autogen/coding/jupyter/embedded_ipython_code_executor.py
135
- autogen/coding/jupyter/jupyter_client.py
136
- autogen/coding/jupyter/jupyter_code_executor.py
137
- autogen/coding/jupyter/local_jupyter_server.py
138
- autogen/extensions/__init__.py
139
- autogen/io/__init__.py
140
- autogen/io/base.py
141
- autogen/io/console.py
142
- autogen/io/websockets.py
143
- autogen/logger/__init__.py
144
- autogen/logger/base_logger.py
145
- autogen/logger/file_logger.py
146
- autogen/logger/logger_factory.py
147
- autogen/logger/logger_utils.py
148
- autogen/logger/sqlite_logger.py
149
- autogen/oai/__init__.py
150
- autogen/oai/anthropic.py
151
- autogen/oai/bedrock.py
152
- autogen/oai/cerebras.py
153
- autogen/oai/client.py
154
- autogen/oai/client_utils.py
155
- autogen/oai/cohere.py
156
- autogen/oai/completion.py
157
- autogen/oai/gemini.py
158
- autogen/oai/groq.py
159
- autogen/oai/mistral.py
160
- autogen/oai/ollama.py
161
- autogen/oai/openai_utils.py
162
- autogen/oai/together.py
163
- test/test_browser_utils.py
164
- test/test_code_utils.py
165
- test/test_function_utils.py
166
- test/test_graph_utils.py
167
- test/test_logging.py
168
- test/test_notebook.py
169
- test/test_pydantic.py
170
- test/test_retrieve_utils.py
171
- test/test_token_count.py
@@ -1,167 +0,0 @@
1
- diskcache
2
- docker
3
- flaml
4
- openai>=1.3
5
- packaging
6
- pydantic!=2.6.0,<3,>=1.10
7
- python-dotenv
8
- termcolor
9
- tiktoken
10
-
11
- [:python_version < "3.13"]
12
- numpy<2.0.0,>=1.24.0
13
-
14
- [:python_version >= "3.13"]
15
- numpy>=2.1
16
-
17
- [anthropic]
18
- anthropic>=0.23.1
19
-
20
- [autobuild]
21
- chromadb
22
- huggingface-hub
23
- pysqlite3-binary
24
- sentence-transformers
25
-
26
- [bedrock]
27
- boto3>=1.34.149
28
-
29
- [blendsearch]
30
- flaml[blendsearch]
31
-
32
- [captainagent]
33
- chromadb
34
- huggingface-hub
35
- pandas
36
- pysqlite3-binary
37
- sentence-transformers
38
-
39
- [cerebras]
40
- cerebras_cloud_sdk>=1.0.0
41
-
42
- [cohere]
43
- cohere>=5.5.8
44
-
45
- [cosmosdb]
46
- azure-cosmos>=4.2.0
47
-
48
- [gemini]
49
- google-auth
50
- google-cloud-aiplatform
51
- google-generativeai<1,>=0.5
52
- pillow
53
- pydantic
54
-
55
- [graph]
56
- matplotlib
57
- networkx
58
-
59
- [graph_rag_falkor_db]
60
- graphrag_sdk==0.3.3
61
-
62
- [groq]
63
- groq>=0.9.0
64
-
65
- [jupyter-executor]
66
- ipykernel>=6.29.0
67
- jupyter-client>=8.6.0
68
- jupyter-kernel-gateway
69
- requests
70
- websocket-client
71
-
72
- [lmm]
73
- pillow
74
- replicate
75
-
76
- [long-context]
77
- llmlingua<0.3
78
-
79
- [mathchat]
80
- pydantic==1.10.9
81
- sympy
82
- wolframalpha
83
-
84
- [mistral]
85
- mistralai>=1.0.1
86
-
87
- [ollama]
88
- fix_busted_json>=0.0.18
89
- ollama>=0.3.3
90
-
91
- [redis]
92
- redis
93
-
94
- [retrievechat]
95
- beautifulsoup4
96
- chromadb==0.5.3
97
- ipython
98
- markdownify
99
- protobuf==4.25.3
100
- pypdf
101
- sentence_transformers
102
-
103
- [retrievechat-mongodb]
104
- beautifulsoup4
105
- chromadb==0.5.3
106
- ipython
107
- markdownify
108
- protobuf==4.25.3
109
- pymongo>=4.0.0
110
- pypdf
111
- sentence_transformers
112
-
113
- [retrievechat-pgvector]
114
- beautifulsoup4
115
- chromadb==0.5.3
116
- ipython
117
- markdownify
118
- pgvector>=0.2.5
119
- protobuf==4.25.3
120
- psycopg>=3.1.18
121
- pypdf
122
- sentence_transformers
123
-
124
- [retrievechat-qdrant]
125
- beautifulsoup4
126
- chromadb==0.5.3
127
- fastembed>=0.3.1
128
- ipython
129
- markdownify
130
- protobuf==4.25.3
131
- pypdf
132
- qdrant_client
133
- sentence_transformers
134
-
135
- [teachable]
136
- chromadb
137
-
138
- [test]
139
- ipykernel
140
- nbconvert
141
- nbformat
142
- pandas
143
- pre-commit
144
- pytest-asyncio
145
- pytest-cov>=5
146
- pytest<8,>=6.1.1
147
-
148
- [together]
149
- together>=1.2
150
-
151
- [types]
152
- ipykernel>=6.29.0
153
- jupyter-client>=8.6.0
154
- jupyter-kernel-gateway
155
- mypy==1.9.0
156
- pytest<8,>=6.1.1
157
- requests
158
- websocket-client
159
-
160
- [websockets]
161
- websockets<13,>=12.0
162
-
163
- [websurfer]
164
- beautifulsoup4
165
- markdownify
166
- pathvalidate
167
- pdfminer.six
@@ -1 +0,0 @@
1
- autogen
@@ -1,17 +0,0 @@
1
- # Copyright (c) 2023 - 2024, Owners of https://github.com/ag2ai
2
- #
3
- # SPDX-License-Identifier: Apache-2.0
4
- #
5
- # Portions derived from https://github.com/microsoft/autogen are under the MIT License.
6
- # SPDX-License-Identifier: MIT
7
- import logging
8
-
9
- from .agentchat import *
10
- from .code_utils import DEFAULT_MODEL, FAST_MODEL
11
- from .exception_utils import *
12
- from .oai import *
13
- from .version import __version__
14
-
15
- # Set the root logger.
16
- logger = logging.getLogger(__name__)
17
- logger.setLevel(logging.INFO)