ag2 0.4.1__tar.gz → 0.4.2b1__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 (179) hide show
  1. ag2-0.4.2b1/PKG-INFO +18 -0
  2. {ag2-0.4.1 → ag2-0.4.2b1}/README.md +2 -10
  3. ag2-0.4.2b1/ag2.egg-info/PKG-INFO +18 -0
  4. ag2-0.4.2b1/ag2.egg-info/SOURCES.txt +20 -0
  5. ag2-0.4.2b1/ag2.egg-info/requires.txt +1 -0
  6. ag2-0.4.2b1/ag2.egg-info/top_level.txt +1 -0
  7. {ag2-0.4.1 → ag2-0.4.2b1}/setup.py +1 -10
  8. ag2-0.4.2b1/setup_ag2.py +35 -0
  9. ag2-0.4.1/PKG-INFO +0 -395
  10. ag2-0.4.1/ag2.egg-info/PKG-INFO +0 -395
  11. ag2-0.4.1/ag2.egg-info/SOURCES.txt +0 -171
  12. ag2-0.4.1/ag2.egg-info/requires.txt +0 -167
  13. ag2-0.4.1/ag2.egg-info/top_level.txt +0 -1
  14. ag2-0.4.1/autogen/__init__.py +0 -17
  15. ag2-0.4.1/autogen/_pydantic.py +0 -116
  16. ag2-0.4.1/autogen/agentchat/__init__.py +0 -42
  17. ag2-0.4.1/autogen/agentchat/agent.py +0 -142
  18. ag2-0.4.1/autogen/agentchat/assistant_agent.py +0 -85
  19. ag2-0.4.1/autogen/agentchat/chat.py +0 -306
  20. ag2-0.4.1/autogen/agentchat/contrib/__init__.py +0 -0
  21. ag2-0.4.1/autogen/agentchat/contrib/agent_builder.py +0 -788
  22. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/agent_eval.py +0 -107
  23. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/criterion.py +0 -47
  24. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/critic_agent.py +0 -47
  25. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/quantifier_agent.py +0 -42
  26. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/subcritic_agent.py +0 -48
  27. ag2-0.4.1/autogen/agentchat/contrib/agent_eval/task.py +0 -43
  28. ag2-0.4.1/autogen/agentchat/contrib/agent_optimizer.py +0 -450
  29. ag2-0.4.1/autogen/agentchat/contrib/capabilities/__init__.py +0 -0
  30. ag2-0.4.1/autogen/agentchat/contrib/capabilities/agent_capability.py +0 -21
  31. ag2-0.4.1/autogen/agentchat/contrib/capabilities/generate_images.py +0 -297
  32. ag2-0.4.1/autogen/agentchat/contrib/capabilities/teachability.py +0 -406
  33. ag2-0.4.1/autogen/agentchat/contrib/capabilities/text_compressors.py +0 -72
  34. ag2-0.4.1/autogen/agentchat/contrib/capabilities/transform_messages.py +0 -92
  35. ag2-0.4.1/autogen/agentchat/contrib/capabilities/transforms.py +0 -565
  36. ag2-0.4.1/autogen/agentchat/contrib/capabilities/transforms_util.py +0 -120
  37. ag2-0.4.1/autogen/agentchat/contrib/capabilities/vision_capability.py +0 -217
  38. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/__init__.py +0 -0
  39. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/calculate_correlation.py +0 -41
  40. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/calculate_skewness_and_kurtosis.py +0 -29
  41. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/detect_outlier_iqr.py +0 -29
  42. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/detect_outlier_zscore.py +0 -29
  43. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/explore_csv.py +0 -22
  44. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/data_analysis/shapiro_wilk_test.py +0 -31
  45. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/arxiv_download.py +0 -26
  46. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/arxiv_search.py +0 -55
  47. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/extract_pdf_image.py +0 -54
  48. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/extract_pdf_text.py +0 -39
  49. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/get_wikipedia_text.py +0 -22
  50. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/get_youtube_caption.py +0 -35
  51. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/image_qa.py +0 -61
  52. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/optical_character_recognition.py +0 -62
  53. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/perform_web_search.py +0 -48
  54. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/scrape_wikipedia_tables.py +0 -34
  55. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/transcribe_audio_file.py +0 -22
  56. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/information_retrieval/youtube_download.py +0 -36
  57. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_circle_area_from_diameter.py +0 -22
  58. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_day_of_the_week.py +0 -19
  59. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_fraction_sum.py +0 -29
  60. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_matrix_power.py +0 -32
  61. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/calculate_reflected_point.py +0 -17
  62. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/complex_numbers_product.py +0 -26
  63. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/compute_currency_conversion.py +0 -24
  64. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/count_distinct_permutations.py +0 -28
  65. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/evaluate_expression.py +0 -29
  66. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/find_continuity_point.py +0 -35
  67. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/fraction_to_mixed_numbers.py +0 -40
  68. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/modular_inverse_sum.py +0 -23
  69. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/simplify_mixed_numbers.py +0 -37
  70. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/sum_of_digit_factorials.py +0 -16
  71. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/math/sum_of_primes_below.py +0 -16
  72. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/requirements.txt +0 -10
  73. ag2-0.4.1/autogen/agentchat/contrib/captainagent/tools/tool_description.tsv +0 -34
  74. ag2-0.4.1/autogen/agentchat/contrib/captainagent.py +0 -490
  75. ag2-0.4.1/autogen/agentchat/contrib/gpt_assistant_agent.py +0 -545
  76. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/__init__.py +0 -0
  77. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/document.py +0 -30
  78. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/falkor_graph_query_engine.py +0 -111
  79. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/falkor_graph_rag_capability.py +0 -81
  80. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/graph_query_engine.py +0 -56
  81. ag2-0.4.1/autogen/agentchat/contrib/graph_rag/graph_rag_capability.py +0 -64
  82. ag2-0.4.1/autogen/agentchat/contrib/img_utils.py +0 -390
  83. ag2-0.4.1/autogen/agentchat/contrib/llamaindex_conversable_agent.py +0 -123
  84. ag2-0.4.1/autogen/agentchat/contrib/llava_agent.py +0 -176
  85. ag2-0.4.1/autogen/agentchat/contrib/math_user_proxy_agent.py +0 -471
  86. ag2-0.4.1/autogen/agentchat/contrib/multimodal_conversable_agent.py +0 -128
  87. ag2-0.4.1/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py +0 -325
  88. ag2-0.4.1/autogen/agentchat/contrib/retrieve_assistant_agent.py +0 -56
  89. ag2-0.4.1/autogen/agentchat/contrib/retrieve_user_proxy_agent.py +0 -705
  90. ag2-0.4.1/autogen/agentchat/contrib/society_of_mind_agent.py +0 -203
  91. ag2-0.4.1/autogen/agentchat/contrib/swarm_agent.py +0 -463
  92. ag2-0.4.1/autogen/agentchat/contrib/text_analyzer_agent.py +0 -76
  93. ag2-0.4.1/autogen/agentchat/contrib/tool_retriever.py +0 -120
  94. ag2-0.4.1/autogen/agentchat/contrib/vectordb/__init__.py +0 -0
  95. ag2-0.4.1/autogen/agentchat/contrib/vectordb/base.py +0 -243
  96. ag2-0.4.1/autogen/agentchat/contrib/vectordb/chromadb.py +0 -326
  97. ag2-0.4.1/autogen/agentchat/contrib/vectordb/mongodb.py +0 -559
  98. ag2-0.4.1/autogen/agentchat/contrib/vectordb/pgvectordb.py +0 -958
  99. ag2-0.4.1/autogen/agentchat/contrib/vectordb/qdrant.py +0 -334
  100. ag2-0.4.1/autogen/agentchat/contrib/vectordb/utils.py +0 -126
  101. ag2-0.4.1/autogen/agentchat/contrib/web_surfer.py +0 -305
  102. ag2-0.4.1/autogen/agentchat/conversable_agent.py +0 -2908
  103. ag2-0.4.1/autogen/agentchat/groupchat.py +0 -1668
  104. ag2-0.4.1/autogen/agentchat/user_proxy_agent.py +0 -109
  105. ag2-0.4.1/autogen/agentchat/utils.py +0 -207
  106. ag2-0.4.1/autogen/browser_utils.py +0 -291
  107. ag2-0.4.1/autogen/cache/__init__.py +0 -10
  108. ag2-0.4.1/autogen/cache/abstract_cache_base.py +0 -78
  109. ag2-0.4.1/autogen/cache/cache.py +0 -182
  110. ag2-0.4.1/autogen/cache/cache_factory.py +0 -85
  111. ag2-0.4.1/autogen/cache/cosmos_db_cache.py +0 -150
  112. ag2-0.4.1/autogen/cache/disk_cache.py +0 -109
  113. ag2-0.4.1/autogen/cache/in_memory_cache.py +0 -61
  114. ag2-0.4.1/autogen/cache/redis_cache.py +0 -128
  115. ag2-0.4.1/autogen/code_utils.py +0 -745
  116. ag2-0.4.1/autogen/coding/__init__.py +0 -22
  117. ag2-0.4.1/autogen/coding/base.py +0 -113
  118. ag2-0.4.1/autogen/coding/docker_commandline_code_executor.py +0 -262
  119. ag2-0.4.1/autogen/coding/factory.py +0 -45
  120. ag2-0.4.1/autogen/coding/func_with_reqs.py +0 -203
  121. ag2-0.4.1/autogen/coding/jupyter/__init__.py +0 -22
  122. ag2-0.4.1/autogen/coding/jupyter/base.py +0 -32
  123. ag2-0.4.1/autogen/coding/jupyter/docker_jupyter_server.py +0 -164
  124. ag2-0.4.1/autogen/coding/jupyter/embedded_ipython_code_executor.py +0 -182
  125. ag2-0.4.1/autogen/coding/jupyter/jupyter_client.py +0 -224
  126. ag2-0.4.1/autogen/coding/jupyter/jupyter_code_executor.py +0 -161
  127. ag2-0.4.1/autogen/coding/jupyter/local_jupyter_server.py +0 -168
  128. ag2-0.4.1/autogen/coding/local_commandline_code_executor.py +0 -410
  129. ag2-0.4.1/autogen/coding/markdown_code_extractor.py +0 -44
  130. ag2-0.4.1/autogen/coding/utils.py +0 -57
  131. ag2-0.4.1/autogen/exception_utils.py +0 -46
  132. ag2-0.4.1/autogen/extensions/__init__.py +0 -0
  133. ag2-0.4.1/autogen/formatting_utils.py +0 -76
  134. ag2-0.4.1/autogen/function_utils.py +0 -362
  135. ag2-0.4.1/autogen/graph_utils.py +0 -148
  136. ag2-0.4.1/autogen/io/__init__.py +0 -15
  137. ag2-0.4.1/autogen/io/base.py +0 -105
  138. ag2-0.4.1/autogen/io/console.py +0 -43
  139. ag2-0.4.1/autogen/io/websockets.py +0 -213
  140. ag2-0.4.1/autogen/logger/__init__.py +0 -11
  141. ag2-0.4.1/autogen/logger/base_logger.py +0 -140
  142. ag2-0.4.1/autogen/logger/file_logger.py +0 -287
  143. ag2-0.4.1/autogen/logger/logger_factory.py +0 -29
  144. ag2-0.4.1/autogen/logger/logger_utils.py +0 -42
  145. ag2-0.4.1/autogen/logger/sqlite_logger.py +0 -459
  146. ag2-0.4.1/autogen/math_utils.py +0 -356
  147. ag2-0.4.1/autogen/oai/__init__.py +0 -33
  148. ag2-0.4.1/autogen/oai/anthropic.py +0 -428
  149. ag2-0.4.1/autogen/oai/bedrock.py +0 -606
  150. ag2-0.4.1/autogen/oai/cerebras.py +0 -270
  151. ag2-0.4.1/autogen/oai/client.py +0 -1148
  152. ag2-0.4.1/autogen/oai/client_utils.py +0 -167
  153. ag2-0.4.1/autogen/oai/cohere.py +0 -453
  154. ag2-0.4.1/autogen/oai/completion.py +0 -1216
  155. ag2-0.4.1/autogen/oai/gemini.py +0 -469
  156. ag2-0.4.1/autogen/oai/groq.py +0 -281
  157. ag2-0.4.1/autogen/oai/mistral.py +0 -279
  158. ag2-0.4.1/autogen/oai/ollama.py +0 -582
  159. ag2-0.4.1/autogen/oai/openai_utils.py +0 -811
  160. ag2-0.4.1/autogen/oai/together.py +0 -343
  161. ag2-0.4.1/autogen/retrieve_utils.py +0 -487
  162. ag2-0.4.1/autogen/runtime_logging.py +0 -163
  163. ag2-0.4.1/autogen/token_count_utils.py +0 -259
  164. ag2-0.4.1/autogen/types.py +0 -20
  165. ag2-0.4.1/autogen/version.py +0 -7
  166. {ag2-0.4.1 → ag2-0.4.2b1}/LICENSE +0 -0
  167. {ag2-0.4.1 → ag2-0.4.2b1}/NOTICE.md +0 -0
  168. {ag2-0.4.1 → ag2-0.4.2b1}/ag2.egg-info/dependency_links.txt +0 -0
  169. {ag2-0.4.1 → ag2-0.4.2b1}/pyproject.toml +0 -0
  170. {ag2-0.4.1 → ag2-0.4.2b1}/setup.cfg +0 -0
  171. {ag2-0.4.1 → ag2-0.4.2b1}/test/test_browser_utils.py +0 -0
  172. {ag2-0.4.1 → ag2-0.4.2b1}/test/test_code_utils.py +0 -0
  173. {ag2-0.4.1 → ag2-0.4.2b1}/test/test_function_utils.py +0 -0
  174. {ag2-0.4.1 → ag2-0.4.2b1}/test/test_graph_utils.py +0 -0
  175. {ag2-0.4.1 → ag2-0.4.2b1}/test/test_logging.py +0 -0
  176. {ag2-0.4.1 → ag2-0.4.2b1}/test/test_notebook.py +0 -0
  177. {ag2-0.4.1 → ag2-0.4.2b1}/test/test_pydantic.py +0 -0
  178. {ag2-0.4.1 → ag2-0.4.2b1}/test/test_retrieve_utils.py +0 -0
  179. {ag2-0.4.1 → ag2-0.4.2b1}/test/test_token_count.py +0 -0
ag2-0.4.2b1/PKG-INFO ADDED
@@ -0,0 +1,18 @@
1
+ Metadata-Version: 2.1
2
+ Name: ag2
3
+ Version: 0.4.2b1
4
+ Summary: Alias package for pyautogen
5
+ Home-page: https://github.com/ag2ai/ag2
6
+ Author: Chi Wang & Qingyun Wu
7
+ Author-email: support@ag2.ai
8
+ License: Apache Software License 2.0
9
+ Platform: UNKNOWN
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.8,<3.14
14
+ License-File: LICENSE
15
+ License-File: NOTICE.md
16
+
17
+ UNKNOWN
18
+
@@ -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.
@@ -0,0 +1,18 @@
1
+ Metadata-Version: 2.1
2
+ Name: ag2
3
+ Version: 0.4.2b1
4
+ Summary: Alias package for pyautogen
5
+ Home-page: https://github.com/ag2ai/ag2
6
+ Author: Chi Wang & Qingyun Wu
7
+ Author-email: support@ag2.ai
8
+ License: Apache Software License 2.0
9
+ Platform: UNKNOWN
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.8,<3.14
14
+ License-File: LICENSE
15
+ License-File: NOTICE.md
16
+
17
+ UNKNOWN
18
+
@@ -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.4.2b1
@@ -0,0 +1 @@
1
+
@@ -113,17 +113,8 @@ extra_require = {
113
113
  "bedrock": ["boto3>=1.34.149"],
114
114
  }
115
115
 
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
116
  setuptools.setup(
126
- name=package_name,
117
+ name="pyautogen",
127
118
  version=__version__,
128
119
  author="Chi Wang & Qingyun Wu",
129
120
  author_email="support@ag2.ai",
@@ -0,0 +1,35 @@
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
+ install_requires=["pyautogen==" + __version__],
25
+ url="https://github.com/ag2ai/ag2",
26
+ author="Chi Wang & Qingyun Wu",
27
+ author_email="support@ag2.ai",
28
+ classifiers=[
29
+ "Programming Language :: Python :: 3",
30
+ "License :: OSI Approved :: Apache Software License",
31
+ "Operating System :: OS Independent",
32
+ ],
33
+ license="Apache Software License 2.0",
34
+ python_requires=">=3.8,<3.14",
35
+ )
ag2-0.4.1/PKG-INFO DELETED
@@ -1,395 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: ag2
3
- Version: 0.4.1
4
- Summary: A programming framework for agentic AI
5
- Home-page: https://github.com/ag2ai/ag2
6
- Author: Chi Wang & Qingyun Wu
7
- Author-email: support@ag2.ai
8
- License: Apache Software License 2.0
9
- Platform: UNKNOWN
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: License :: OSI Approved :: Apache Software License
12
- Classifier: Operating System :: OS Independent
13
- Requires-Python: >=3.8,<3.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
- License-File: LICENSE
45
- License-File: NOTICE.md
46
-
47
- <a name="readme-top"></a>
48
-
49
- ![Pypi Downloads](https://img.shields.io/pypi/dm/pyautogen?label=PyPI%20downloads)
50
- [![PyPI version](https://badge.fury.io/py/autogen.svg)](https://badge.fury.io/py/autogen)
51
- [![Build](https://github.com/ag2ai/ag2/actions/workflows/python-package.yml/badge.svg)](https://github.com/ag2ai/ag2/actions/workflows/python-package.yml)
52
- ![Python Version](https://img.shields.io/badge/3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue)
53
- [![Discord](https://img.shields.io/discord/1153072414184452236?logo=discord&style=flat)](https://discord.gg/pAbnFJrkgZ)
54
- [![Twitter](https://img.shields.io/twitter/url/https/twitter.com/cloudposse.svg?style=social&label=Follow%20%40ag2ai)](https://x.com/ag2ai)
55
-
56
- <!-- [![NuGet version](https://badge.fury.io/nu/AutoGen.Core.svg)](https://badge.fury.io/nu/AutoGen.Core) -->
57
-
58
- # [AG2](https://github.com/ag2ai/ag2)
59
-
60
- [📚 Cite paper](#related-papers).
61
- <!-- <p align="center">
62
- <img src="https://github.com/ag2ai/ag2/blob/main/website/static/img/flaml.svg" width=200>
63
- <br>
64
- </p> -->
65
-
66
- > **:tada: IMPORTANT**
67
- >
68
- > :fire: :tada: **Nov 11, 2024:** We are evolving AutoGen into **AG2**!
69
- > A new organization [AG2ai](https://github.com/ag2ai) is created to host the development of AG2 and related projects with open governance. Check [AG2's new look](https://ag2.ai/).
70
- >
71
- > We invite collaborators from all organizations and individuals to join the development.
72
-
73
-
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
79
- ```
80
- pip install pyautogen
81
- ```
82
- or
83
- ```
84
- pip install autogen
85
- ```
86
-
87
-
88
- 📄 **License:**
89
- 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.
90
-
91
-
92
- :tada: May 29, 2024: DeepLearning.ai launched a new short course [AI Agentic Design Patterns with AutoGen](https://www.deeplearning.ai/short-courses/ai-agentic-design-patterns-with-autogen), made in collaboration with Microsoft and Penn State University, and taught by AutoGen creators [Chi Wang](https://github.com/sonichi) and [Qingyun Wu](https://github.com/qingyun-wu).
93
-
94
- :tada: May 24, 2024: Foundation Capital published an article on [Forbes: The Promise of Multi-Agent AI](https://www.forbes.com/sites/joannechen/2024/05/24/the-promise-of-multi-agent-ai/?sh=2c1e4f454d97) and a video [AI in the Real World Episode 2: Exploring Multi-Agent AI and AutoGen with Chi Wang](https://www.youtube.com/watch?v=RLwyXRVvlNk).
95
-
96
- :tada: May 13, 2024: [The Economist](https://www.economist.com/science-and-technology/2024/05/13/todays-ai-models-are-impressive-teams-of-them-will-be-formidable) published an article about multi-agent systems (MAS) following a January 2024 interview with [Chi Wang](https://github.com/sonichi).
97
-
98
- :tada: May 11, 2024: [AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation](https://openreview.net/pdf?id=uAjxFFing2) received the best paper award at the [ICLR 2024 LLM Agents Workshop](https://llmagents.github.io/).
99
-
100
- <!-- :tada: Apr 26, 2024: [AutoGen.NET](https://ag2ai.github.io/ag2-for-net/) is available for .NET developers! -->
101
-
102
- :tada: Apr 17, 2024: Andrew Ng cited AutoGen in [The Batch newsletter](https://www.deeplearning.ai/the-batch/issue-245/) and [What's next for AI agentic workflows](https://youtu.be/sal78ACtGTc?si=JduUzN_1kDnMq0vF) at Sequoia Capital's AI Ascent (Mar 26).
103
-
104
- :tada: Mar 3, 2024: What's new in AutoGen? 📰[Blog](https://ag2ai.github.io/ag2/blog/2024/03/03/AutoGen-Update); 📺[Youtube](https://www.youtube.com/watch?v=j_mtwQiaLGU).
105
-
106
- <!-- :tada: Mar 1, 2024: the first AutoGen multi-agent experiment on the challenging [GAIA](https://huggingface.co/spaces/gaia-benchmark/leaderboard) benchmark achieved the No. 1 accuracy in all the three levels. -->
107
-
108
- <!-- :tada: Jan 30, 2024: AutoGen is highlighted by Peter Lee in Microsoft Research Forum [Keynote](https://t.co/nUBSjPDjqD). -->
109
-
110
- :tada: Dec 31, 2023: [AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework](https://arxiv.org/abs/2308.08155) is selected by [TheSequence: My Five Favorite AI Papers of 2023](https://thesequence.substack.com/p/my-five-favorite-ai-papers-of-2023).
111
-
112
- <!-- :fire: Nov 24: pyautogen [v0.2](https://github.com/ag2ai/ag2/releases/tag/v0.2.0) is released with many updates and new features compared to v0.1.1. It switches to using openai-python v1. Please read the [migration guide](https://ag2ai.github.io/ag2/docs/Installation#python). -->
113
-
114
- <!-- :fire: Nov 11: OpenAI's Assistants are available in AutoGen and interoperatable with other AutoGen agents! Checkout our [blogpost](https://ag2ai.github.io/ag2/blog/2023/11/13/OAI-assistants) for details and examples. -->
115
-
116
- :tada: Nov 8, 2023: AutoGen is selected into [Open100: Top 100 Open Source achievements](https://www.benchcouncil.org/evaluation/opencs/annual.html) 35 days after spinoff from [FLAML](https://github.com/microsoft/FLAML).
117
-
118
- <!-- :tada: Nov 6, 2023: AutoGen is mentioned by Satya Nadella in a [fireside chat](https://youtu.be/0pLBvgYtv6U). -->
119
-
120
- <!-- :tada: Nov 1, 2023: AutoGen is the top trending repo on GitHub in October 2023. -->
121
-
122
- <!-- :tada: Oct 03, 2023: AutoGen spins off from [FLAML](https://github.com/microsoft/FLAML) on GitHub. -->
123
-
124
- <!-- :tada: Aug 16: Paper about AutoGen on [arxiv](https://arxiv.org/abs/2308.08155). -->
125
-
126
- :tada: Mar 29, 2023: AutoGen is first created in [FLAML](https://github.com/microsoft/FLAML).
127
-
128
- <!--
129
- :fire: FLAML is highlighted in OpenAI's [cookbook](https://github.com/openai/openai-cookbook#related-resources-from-around-the-web).
130
-
131
- :fire: [autogen](https://ag2ai.github.io/ag2/) is released with support for ChatGPT and GPT-4, based on [Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference](https://arxiv.org/abs/2303.04673).
132
-
133
- :fire: FLAML supports Code-First AutoML & Tuning – Private Preview in [Microsoft Fabric Data Science](https://learn.microsoft.com/en-us/fabric/data-science/). -->
134
-
135
- ## What is AG2
136
-
137
- AG2 (formerly AutoGen) is an open-source programming framework for building AI agents and facilitating cooperation among multiple agents to solve tasks. AG2 aims to streamline the development and research of agentic AI, much like PyTorch does for Deep Learning. It offers features such as agents capable of interacting with each other, facilitates the use of various large language models (LLMs) and tool use support, autonomous and human-in-the-loop workflows, and multi-agent conversation patterns.
138
-
139
- **Open Source Statement**: The project welcomes contributions from developers and organizations worldwide. Our goal is to foster a collaborative and inclusive community where diverse perspectives and expertise can drive innovation and enhance the project's capabilities. Whether you are an individual contributor or represent an organization, we invite you to join us in shaping the future of this project. Together, we can build something truly remarkable.
140
-
141
- The project is currently maintained by a [dynamic group of volunteers](MAINTAINERS.md) from several organizations. Contact project administrators Chi Wang and Qingyun Wu via [support@ag2.ai](mailto:support@ag2.ai) if you are interested in becoming a maintainer.
142
-
143
-
144
- ![AutoGen Overview](https://media.githubusercontent.com/media/ag2ai/ag2/refs/heads/main/website/static/img/autogen_agentchat.png)
145
-
146
-
147
- <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
148
- <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
149
- ↑ Back to Top ↑
150
- </a>
151
- </p>
152
-
153
- <!--
154
- ## Roadmaps
155
- -->
156
-
157
- ## Quickstart
158
- The easiest way to start playing is
159
- 1. Click below to use the GitHub Codespace
160
-
161
- [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/ag2ai/ag2?quickstart=1)
162
-
163
- 2. Copy OAI_CONFIG_LIST_sample to ./notebook folder, name to OAI_CONFIG_LIST, and set the correct configuration.
164
- 3. Start playing with the notebooks!
165
-
166
- *NOTE*: OAI_CONFIG_LIST_sample lists gpt-4o as the default model. If you use a different model, you may need to revise various system prompts (especially if using weaker models like gpt-4o-mini). Proceed with caution when updating this default and be aware of additional risks related to alignment and safety.
167
-
168
- <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
169
- <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
170
- ↑ Back to Top ↑
171
- </a>
172
- </p>
173
-
174
- ## [Installation](https://ag2ai.github.io/ag2/docs/Installation)
175
-
176
- ### Option 1. Install and Run AG2 in Docker
177
-
178
- Find detailed instructions for users [here](https://ag2ai.github.io/ag2/docs/installation/Docker#step-1-install-docker), and for developers [here](https://ag2ai.github.io/ag2/docs/Contribute#docker-for-development).
179
-
180
- ### Option 2. Install AG2 Locally
181
-
182
- AG2 requires **Python version >= 3.8, < 3.14**. It can be installed from pip:
183
-
184
- ```bash
185
- pip install ag2
186
- ```
187
-
188
- Minimal dependencies are installed without extra options. You can install extra options based on the feature you need.
189
-
190
- <!-- For example, use the following to install the dependencies needed by the [`blendsearch`](https://microsoft.github.io/FLAML/docs/Use-Cases/Tune-User-Defined-Function#blendsearch-economical-hyperparameter-optimization-with-blended-search-strategy) option.
191
- ```bash
192
- pip install "autogen[blendsearch]"
193
- ``` -->
194
-
195
- Find more options in [Installation](https://ag2ai.github.io/ag2/docs/Installation#option-2-install-autogen-locally-using-virtual-environment).
196
-
197
- <!-- Each of the [`notebook examples`](https://github.com/ag2ai/ag2/tree/main/notebook) may require a specific option to be installed. -->
198
-
199
- Even if you are installing and running AG2 locally outside of docker, the recommendation and default behavior of agents is to perform [code execution](https://ag2ai.github.io/ag2/docs/FAQ/#code-execution) in docker. Find more instructions and how to change the default behaviour [here](https://ag2ai.github.io/ag2/docs/Installation#code-execution-with-docker-(default)).
200
-
201
- For LLM inference configurations, check the [FAQs](https://ag2ai.github.io/ag2/docs/FAQ#set-your-api-endpoints).
202
-
203
- <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
204
- <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
205
- ↑ Back to Top ↑
206
- </a>
207
- </p>
208
-
209
- ## Multi-Agent Conversation Framework
210
-
211
- AG2 enables the next-gen LLM applications with a generic [multi-agent conversation](https://ag2ai.github.io/ag2/docs/Use-Cases/agent_chat) framework. It offers customizable and conversable agents that integrate LLMs, tools, and humans.
212
- By automating chat among multiple capable agents, one can easily make them collectively perform tasks autonomously or with human feedback, including tasks that require using tools via code.
213
-
214
- Features of this use case include:
215
-
216
- - **Multi-agent conversations**: AG2 agents can communicate with each other to solve tasks. This allows for more complex and sophisticated applications than would be possible with a single LLM.
217
- - **Customization**: AG2 agents can be customized to meet the specific needs of an application. This includes the ability to choose the LLMs to use, the types of human input to allow, and the tools to employ.
218
- - **Human participation**: AG2 seamlessly allows human participation. This means that humans can provide input and feedback to the agents as needed.
219
-
220
- For [example](https://github.com/ag2ai/ag2/blob/main/test/twoagent.py),
221
-
222
- ```python
223
- from autogen import AssistantAgent, UserProxyAgent, config_list_from_json
224
- # Load LLM inference endpoints from an env variable or a file
225
- # See https://ag2ai.github.io/ag2/docs/FAQ#set-your-api-endpoints
226
- # and OAI_CONFIG_LIST_sample
227
- config_list = config_list_from_json(env_or_file="OAI_CONFIG_LIST")
228
- # You can also set config_list directly as a list, for example, config_list = [{'model': 'gpt-4o', 'api_key': '<your OpenAI API key here>'},]
229
- assistant = AssistantAgent("assistant", llm_config={"config_list": config_list})
230
- user_proxy = UserProxyAgent("user_proxy", code_execution_config={"work_dir": "coding", "use_docker": False}) # IMPORTANT: set to True to run code in docker, recommended
231
- user_proxy.initiate_chat(assistant, message="Plot a chart of NVDA and TESLA stock price change YTD.")
232
- # This initiates an automated chat between the two agents to solve the task
233
- ```
234
-
235
- This example can be run with
236
-
237
- ```python
238
- python test/twoagent.py
239
- ```
240
-
241
- After the repo is cloned.
242
- The figure below shows an example conversation flow with AG2.
243
-
244
- ![Agent Chat Example](https://media.githubusercontent.com/media/ag2ai/ag2/refs/heads/main/website/static/img/chat_example.png)
245
-
246
-
247
- Alternatively, the [sample code](https://github.com/ag2ai/build-with-ag2/blob/main/samples/simple_chat.py) here allows a user to chat with an AG2 agent in ChatGPT style.
248
- Please find more [code examples](https://ag2ai.github.io/ag2/docs/Examples#automated-multi-agent-chat) for this feature.
249
-
250
- <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
251
- <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
252
- ↑ Back to Top ↑
253
- </a>
254
- </p>
255
-
256
- ## Enhanced LLM Inferences
257
-
258
- AG2 also helps maximize the utility out of the expensive LLMs such as gpt-4o. It offers [enhanced LLM inference](https://ag2ai.github.io/ag2/docs/Use-Cases/enhanced_inference#api-unification) with powerful functionalities like caching, error handling, multi-config inference and templating.
259
-
260
- <!-- For example, you can optimize generations by LLM with your own tuning data, success metrics, and budgets.
261
-
262
- ```python
263
- # perform tuning for openai<1
264
- config, analysis = autogen.Completion.tune(
265
- data=tune_data,
266
- metric="success",
267
- mode="max",
268
- eval_func=eval_func,
269
- inference_budget=0.05,
270
- optimization_budget=3,
271
- num_samples=-1,
272
- )
273
- # perform inference for a test instance
274
- response = autogen.Completion.create(context=test_instance, **config)
275
- ```
276
-
277
- Please find more [code examples](https://ag2ai.github.io/ag2/docs/Examples#tune-gpt-models) for this feature. -->
278
-
279
- <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
280
- <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
281
- ↑ Back to Top ↑
282
- </a>
283
- </p>
284
-
285
- ## Documentation
286
-
287
- You can find detailed documentation about AG2 [here](https://ag2ai.github.io/ag2/).
288
-
289
- In addition, you can find:
290
-
291
- - [Research](https://ag2ai.github.io/ag2/docs/Research), [blogposts](https://ag2ai.github.io/ag2/blog) around AG2, and [Transparency FAQs](https://github.com/ag2ai/ag2/blob/main/TRANSPARENCY_FAQS.md)
292
-
293
- - [Discord](https://discord.gg/pAbnFJrkgZ)
294
-
295
- - [Contributing guide](https://ag2ai.github.io/ag2/docs/Contribute)
296
-
297
- <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
298
- <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
299
- ↑ Back to Top ↑
300
- </a>
301
- </p>
302
-
303
- ## CookBook
304
-
305
- Explore detailed implementations with sample code and applications to help you get started with AG2.
306
- [Cookbook](https://github.com/ag2ai/build-with-ag2)
307
-
308
-
309
- ## Related Papers
310
-
311
- [AutoGen](https://arxiv.org/abs/2308.08155)
312
-
313
- ```
314
- @inproceedings{wu2023autogen,
315
- title={AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework},
316
- author={Qingyun Wu and Gagan Bansal and Jieyu Zhang and Yiran Wu and Beibin Li and Erkang Zhu and Li Jiang and Xiaoyun Zhang and Shaokun Zhang and Jiale Liu and Ahmed Hassan Awadallah and Ryen W White and Doug Burger and Chi Wang},
317
- year={2023},
318
- eprint={2308.08155},
319
- archivePrefix={arXiv},
320
- primaryClass={cs.AI}
321
- }
322
- ```
323
-
324
- [EcoOptiGen](https://arxiv.org/abs/2303.04673)
325
-
326
- ```
327
- @inproceedings{wang2023EcoOptiGen,
328
- title={Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference},
329
- author={Chi Wang and Susan Xueqing Liu and Ahmed H. Awadallah},
330
- year={2023},
331
- booktitle={AutoML'23},
332
- }
333
- ```
334
-
335
- [MathChat](https://arxiv.org/abs/2306.01337)
336
-
337
- ```
338
- @inproceedings{wu2023empirical,
339
- title={An Empirical Study on Challenging Math Problem Solving with GPT-4},
340
- author={Yiran Wu and Feiran Jia and Shaokun Zhang and Hangyu Li and Erkang Zhu and Yue Wang and Yin Tat Lee and Richard Peng and Qingyun Wu and Chi Wang},
341
- year={2023},
342
- booktitle={ArXiv preprint arXiv:2306.01337},
343
- }
344
- ```
345
-
346
- [AgentOptimizer](https://arxiv.org/pdf/2402.11359)
347
-
348
- ```
349
- @article{zhang2024training,
350
- title={Training Language Model Agents without Modifying Language Models},
351
- author={Zhang, Shaokun and Zhang, Jieyu and Liu, Jiale and Song, Linxin and Wang, Chi and Krishna, Ranjay and Wu, Qingyun},
352
- journal={ICML'24},
353
- year={2024}
354
- }
355
- ```
356
-
357
- [StateFlow](https://arxiv.org/abs/2403.11322)
358
- ```
359
- @article{wu2024stateflow,
360
- title={StateFlow: Enhancing LLM Task-Solving through State-Driven Workflows},
361
- author={Wu, Yiran and Yue, Tianwei and Zhang, Shaokun and Wang, Chi and Wu, Qingyun},
362
- journal={arXiv preprint arXiv:2403.11322},
363
- year={2024}
364
- }
365
- ```
366
-
367
- <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
368
- <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
369
- ↑ Back to Top ↑
370
- </a>
371
- </p>
372
-
373
- ## Contributors Wall
374
- <a href="https://github.com/ag2ai/ag2/graphs/contributors">
375
- <img src="https://contrib.rocks/image?repo=ag2ai/ag2&max=204" />
376
- </a>
377
-
378
- <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
379
- <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
380
- ↑ Back to Top ↑
381
- </a>
382
- </p>
383
-
384
- ## License
385
- This project is licensed under the [Apache License, Version 2.0 (Apache-2.0)](./LICENSE).
386
-
387
- This project is a spin-off of [AutoGen](https://github.com/microsoft/autogen) and contains code under two licenses:
388
-
389
- - The original code from https://github.com/microsoft/autogen is licensed under the MIT License. See the [LICENSE_original_MIT](./license_original/LICENSE_original_MIT) file for details.
390
-
391
- - Modifications and additions made in this fork are licensed under the Apache License, Version 2.0. See the [LICENSE](./LICENSE) file for the full license text.
392
-
393
- We have documented these changes for clarity and to ensure transparency with our user and contributor community. For more details, please see the [NOTICE](./NOTICE.md) file.
394
-
395
-