ag2 0.3.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (112) hide show
  1. ag2-0.3.2.dist-info/LICENSE +201 -0
  2. ag2-0.3.2.dist-info/METADATA +490 -0
  3. ag2-0.3.2.dist-info/NOTICE.md +19 -0
  4. ag2-0.3.2.dist-info/RECORD +112 -0
  5. ag2-0.3.2.dist-info/WHEEL +5 -0
  6. ag2-0.3.2.dist-info/top_level.txt +1 -0
  7. autogen/__init__.py +17 -0
  8. autogen/_pydantic.py +116 -0
  9. autogen/agentchat/__init__.py +26 -0
  10. autogen/agentchat/agent.py +142 -0
  11. autogen/agentchat/assistant_agent.py +85 -0
  12. autogen/agentchat/chat.py +306 -0
  13. autogen/agentchat/contrib/__init__.py +0 -0
  14. autogen/agentchat/contrib/agent_builder.py +785 -0
  15. autogen/agentchat/contrib/agent_optimizer.py +450 -0
  16. autogen/agentchat/contrib/capabilities/__init__.py +0 -0
  17. autogen/agentchat/contrib/capabilities/agent_capability.py +21 -0
  18. autogen/agentchat/contrib/capabilities/generate_images.py +297 -0
  19. autogen/agentchat/contrib/capabilities/teachability.py +406 -0
  20. autogen/agentchat/contrib/capabilities/text_compressors.py +72 -0
  21. autogen/agentchat/contrib/capabilities/transform_messages.py +92 -0
  22. autogen/agentchat/contrib/capabilities/transforms.py +565 -0
  23. autogen/agentchat/contrib/capabilities/transforms_util.py +120 -0
  24. autogen/agentchat/contrib/capabilities/vision_capability.py +217 -0
  25. autogen/agentchat/contrib/gpt_assistant_agent.py +545 -0
  26. autogen/agentchat/contrib/graph_rag/__init__.py +0 -0
  27. autogen/agentchat/contrib/graph_rag/document.py +24 -0
  28. autogen/agentchat/contrib/graph_rag/falkor_graph_query_engine.py +76 -0
  29. autogen/agentchat/contrib/graph_rag/graph_query_engine.py +50 -0
  30. autogen/agentchat/contrib/graph_rag/graph_rag_capability.py +56 -0
  31. autogen/agentchat/contrib/img_utils.py +390 -0
  32. autogen/agentchat/contrib/llamaindex_conversable_agent.py +114 -0
  33. autogen/agentchat/contrib/llava_agent.py +176 -0
  34. autogen/agentchat/contrib/math_user_proxy_agent.py +471 -0
  35. autogen/agentchat/contrib/multimodal_conversable_agent.py +128 -0
  36. autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py +325 -0
  37. autogen/agentchat/contrib/retrieve_assistant_agent.py +56 -0
  38. autogen/agentchat/contrib/retrieve_user_proxy_agent.py +701 -0
  39. autogen/agentchat/contrib/society_of_mind_agent.py +203 -0
  40. autogen/agentchat/contrib/text_analyzer_agent.py +76 -0
  41. autogen/agentchat/contrib/vectordb/__init__.py +0 -0
  42. autogen/agentchat/contrib/vectordb/base.py +243 -0
  43. autogen/agentchat/contrib/vectordb/chromadb.py +326 -0
  44. autogen/agentchat/contrib/vectordb/mongodb.py +559 -0
  45. autogen/agentchat/contrib/vectordb/pgvectordb.py +958 -0
  46. autogen/agentchat/contrib/vectordb/qdrant.py +334 -0
  47. autogen/agentchat/contrib/vectordb/utils.py +126 -0
  48. autogen/agentchat/contrib/web_surfer.py +305 -0
  49. autogen/agentchat/conversable_agent.py +2904 -0
  50. autogen/agentchat/groupchat.py +1666 -0
  51. autogen/agentchat/user_proxy_agent.py +109 -0
  52. autogen/agentchat/utils.py +207 -0
  53. autogen/browser_utils.py +291 -0
  54. autogen/cache/__init__.py +10 -0
  55. autogen/cache/abstract_cache_base.py +78 -0
  56. autogen/cache/cache.py +182 -0
  57. autogen/cache/cache_factory.py +85 -0
  58. autogen/cache/cosmos_db_cache.py +150 -0
  59. autogen/cache/disk_cache.py +109 -0
  60. autogen/cache/in_memory_cache.py +61 -0
  61. autogen/cache/redis_cache.py +128 -0
  62. autogen/code_utils.py +745 -0
  63. autogen/coding/__init__.py +22 -0
  64. autogen/coding/base.py +113 -0
  65. autogen/coding/docker_commandline_code_executor.py +262 -0
  66. autogen/coding/factory.py +45 -0
  67. autogen/coding/func_with_reqs.py +203 -0
  68. autogen/coding/jupyter/__init__.py +22 -0
  69. autogen/coding/jupyter/base.py +32 -0
  70. autogen/coding/jupyter/docker_jupyter_server.py +164 -0
  71. autogen/coding/jupyter/embedded_ipython_code_executor.py +182 -0
  72. autogen/coding/jupyter/jupyter_client.py +224 -0
  73. autogen/coding/jupyter/jupyter_code_executor.py +161 -0
  74. autogen/coding/jupyter/local_jupyter_server.py +168 -0
  75. autogen/coding/local_commandline_code_executor.py +410 -0
  76. autogen/coding/markdown_code_extractor.py +44 -0
  77. autogen/coding/utils.py +57 -0
  78. autogen/exception_utils.py +46 -0
  79. autogen/extensions/__init__.py +0 -0
  80. autogen/formatting_utils.py +76 -0
  81. autogen/function_utils.py +362 -0
  82. autogen/graph_utils.py +148 -0
  83. autogen/io/__init__.py +15 -0
  84. autogen/io/base.py +105 -0
  85. autogen/io/console.py +43 -0
  86. autogen/io/websockets.py +213 -0
  87. autogen/logger/__init__.py +11 -0
  88. autogen/logger/base_logger.py +140 -0
  89. autogen/logger/file_logger.py +287 -0
  90. autogen/logger/logger_factory.py +29 -0
  91. autogen/logger/logger_utils.py +42 -0
  92. autogen/logger/sqlite_logger.py +459 -0
  93. autogen/math_utils.py +356 -0
  94. autogen/oai/__init__.py +33 -0
  95. autogen/oai/anthropic.py +428 -0
  96. autogen/oai/bedrock.py +600 -0
  97. autogen/oai/cerebras.py +264 -0
  98. autogen/oai/client.py +1148 -0
  99. autogen/oai/client_utils.py +167 -0
  100. autogen/oai/cohere.py +453 -0
  101. autogen/oai/completion.py +1216 -0
  102. autogen/oai/gemini.py +469 -0
  103. autogen/oai/groq.py +281 -0
  104. autogen/oai/mistral.py +279 -0
  105. autogen/oai/ollama.py +576 -0
  106. autogen/oai/openai_utils.py +810 -0
  107. autogen/oai/together.py +343 -0
  108. autogen/retrieve_utils.py +487 -0
  109. autogen/runtime_logging.py +163 -0
  110. autogen/token_count_utils.py +257 -0
  111. autogen/types.py +20 -0
  112. autogen/version.py +7 -0
@@ -0,0 +1,490 @@
1
+ Metadata-Version: 2.1
2
+ Name: ag2
3
+ Version: 0.3.2
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.13
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ License-File: NOTICE.md
17
+ Requires-Dist: diskcache
18
+ Requires-Dist: docker
19
+ Requires-Dist: flaml
20
+ Requires-Dist: numpy (<2,>=1.17.0)
21
+ Requires-Dist: openai (>=1.3)
22
+ Requires-Dist: packaging
23
+ Requires-Dist: pydantic (!=2.6.0,<3,>=1.10)
24
+ Requires-Dist: python-dotenv
25
+ Requires-Dist: termcolor
26
+ Requires-Dist: tiktoken
27
+ Provides-Extra: anthropic
28
+ Requires-Dist: anthropic (>=0.23.1) ; extra == 'anthropic'
29
+ Provides-Extra: autobuild
30
+ Requires-Dist: chromadb ; extra == 'autobuild'
31
+ Requires-Dist: huggingface-hub ; extra == 'autobuild'
32
+ Requires-Dist: pysqlite3 ; extra == 'autobuild'
33
+ Requires-Dist: sentence-transformers ; extra == 'autobuild'
34
+ Provides-Extra: bedrock
35
+ Requires-Dist: boto3 (>=1.34.149) ; extra == 'bedrock'
36
+ Provides-Extra: blendsearch
37
+ Requires-Dist: flaml[blendsearch] ; extra == 'blendsearch'
38
+ Provides-Extra: cerebras
39
+ Requires-Dist: cerebras-cloud-sdk (>=1.0.0) ; extra == 'cerebras'
40
+ Provides-Extra: cohere
41
+ Requires-Dist: cohere (>=5.5.8) ; extra == 'cohere'
42
+ Provides-Extra: cosmosdb
43
+ Requires-Dist: azure-cosmos (>=4.2.0) ; extra == 'cosmosdb'
44
+ Provides-Extra: gemini
45
+ Requires-Dist: google-auth ; extra == 'gemini'
46
+ Requires-Dist: google-cloud-aiplatform ; extra == 'gemini'
47
+ Requires-Dist: google-generativeai (<1,>=0.5) ; extra == 'gemini'
48
+ Requires-Dist: pillow ; extra == 'gemini'
49
+ Requires-Dist: pydantic ; extra == 'gemini'
50
+ Provides-Extra: graph
51
+ Requires-Dist: matplotlib ; extra == 'graph'
52
+ Requires-Dist: networkx ; extra == 'graph'
53
+ Provides-Extra: graph_rag_falkor_db
54
+ Requires-Dist: graphrag-sdk ; extra == 'graph_rag_falkor_db'
55
+ Provides-Extra: groq
56
+ Requires-Dist: groq (>=0.9.0) ; extra == 'groq'
57
+ Provides-Extra: jupyter-executor
58
+ Requires-Dist: ipykernel (>=6.29.0) ; extra == 'jupyter-executor'
59
+ Requires-Dist: jupyter-client (>=8.6.0) ; extra == 'jupyter-executor'
60
+ Requires-Dist: jupyter-kernel-gateway ; extra == 'jupyter-executor'
61
+ Requires-Dist: requests ; extra == 'jupyter-executor'
62
+ Requires-Dist: websocket-client ; extra == 'jupyter-executor'
63
+ Provides-Extra: lmm
64
+ Requires-Dist: pillow ; extra == 'lmm'
65
+ Requires-Dist: replicate ; extra == 'lmm'
66
+ Provides-Extra: long-context
67
+ Requires-Dist: llmlingua (<0.3) ; extra == 'long-context'
68
+ Provides-Extra: mathchat
69
+ Requires-Dist: pydantic (==1.10.9) ; extra == 'mathchat'
70
+ Requires-Dist: sympy ; extra == 'mathchat'
71
+ Requires-Dist: wolframalpha ; extra == 'mathchat'
72
+ Provides-Extra: mistral
73
+ Requires-Dist: mistralai (>=1.0.1) ; extra == 'mistral'
74
+ Provides-Extra: ollama
75
+ Requires-Dist: fix-busted-json (>=0.0.18) ; extra == 'ollama'
76
+ Requires-Dist: ollama (>=0.3.3) ; extra == 'ollama'
77
+ Provides-Extra: redis
78
+ Requires-Dist: redis ; extra == 'redis'
79
+ Provides-Extra: retrievechat
80
+ Requires-Dist: beautifulsoup4 ; extra == 'retrievechat'
81
+ Requires-Dist: chromadb (==0.5.3) ; extra == 'retrievechat'
82
+ Requires-Dist: ipython ; extra == 'retrievechat'
83
+ Requires-Dist: markdownify ; extra == 'retrievechat'
84
+ Requires-Dist: protobuf (==4.25.3) ; extra == 'retrievechat'
85
+ Requires-Dist: pypdf ; extra == 'retrievechat'
86
+ Requires-Dist: sentence-transformers ; extra == 'retrievechat'
87
+ Provides-Extra: retrievechat-mongodb
88
+ Requires-Dist: beautifulsoup4 ; extra == 'retrievechat-mongodb'
89
+ Requires-Dist: chromadb (==0.5.3) ; extra == 'retrievechat-mongodb'
90
+ Requires-Dist: ipython ; extra == 'retrievechat-mongodb'
91
+ Requires-Dist: markdownify ; extra == 'retrievechat-mongodb'
92
+ Requires-Dist: protobuf (==4.25.3) ; extra == 'retrievechat-mongodb'
93
+ Requires-Dist: pymongo (>=4.0.0) ; extra == 'retrievechat-mongodb'
94
+ Requires-Dist: pypdf ; extra == 'retrievechat-mongodb'
95
+ Requires-Dist: sentence-transformers ; extra == 'retrievechat-mongodb'
96
+ Provides-Extra: retrievechat-pgvector
97
+ Requires-Dist: beautifulsoup4 ; extra == 'retrievechat-pgvector'
98
+ Requires-Dist: chromadb (==0.5.3) ; extra == 'retrievechat-pgvector'
99
+ Requires-Dist: ipython ; extra == 'retrievechat-pgvector'
100
+ Requires-Dist: markdownify ; extra == 'retrievechat-pgvector'
101
+ Requires-Dist: pgvector (>=0.2.5) ; extra == 'retrievechat-pgvector'
102
+ Requires-Dist: protobuf (==4.25.3) ; extra == 'retrievechat-pgvector'
103
+ Requires-Dist: psycopg (>=3.1.18) ; extra == 'retrievechat-pgvector'
104
+ Requires-Dist: pypdf ; extra == 'retrievechat-pgvector'
105
+ Requires-Dist: sentence-transformers ; extra == 'retrievechat-pgvector'
106
+ Provides-Extra: retrievechat-qdrant
107
+ Requires-Dist: beautifulsoup4 ; extra == 'retrievechat-qdrant'
108
+ Requires-Dist: chromadb (==0.5.3) ; extra == 'retrievechat-qdrant'
109
+ Requires-Dist: fastembed (>=0.3.1) ; extra == 'retrievechat-qdrant'
110
+ Requires-Dist: ipython ; extra == 'retrievechat-qdrant'
111
+ Requires-Dist: markdownify ; extra == 'retrievechat-qdrant'
112
+ Requires-Dist: protobuf (==4.25.3) ; extra == 'retrievechat-qdrant'
113
+ Requires-Dist: pypdf ; extra == 'retrievechat-qdrant'
114
+ Requires-Dist: qdrant-client ; extra == 'retrievechat-qdrant'
115
+ Requires-Dist: sentence-transformers ; extra == 'retrievechat-qdrant'
116
+ Provides-Extra: teachable
117
+ Requires-Dist: chromadb ; extra == 'teachable'
118
+ Provides-Extra: test
119
+ Requires-Dist: ipykernel ; extra == 'test'
120
+ Requires-Dist: nbconvert ; extra == 'test'
121
+ Requires-Dist: nbformat ; extra == 'test'
122
+ Requires-Dist: pandas ; extra == 'test'
123
+ Requires-Dist: pre-commit ; extra == 'test'
124
+ Requires-Dist: pytest-asyncio ; extra == 'test'
125
+ Requires-Dist: pytest-cov (>=5) ; extra == 'test'
126
+ Requires-Dist: pytest (<8,>=6.1.1) ; extra == 'test'
127
+ Provides-Extra: together
128
+ Requires-Dist: together (>=1.2) ; extra == 'together'
129
+ Provides-Extra: types
130
+ Requires-Dist: ipykernel (>=6.29.0) ; extra == 'types'
131
+ Requires-Dist: jupyter-client (>=8.6.0) ; extra == 'types'
132
+ Requires-Dist: jupyter-kernel-gateway ; extra == 'types'
133
+ Requires-Dist: mypy (==1.9.0) ; extra == 'types'
134
+ Requires-Dist: pytest (<8,>=6.1.1) ; extra == 'types'
135
+ Requires-Dist: requests ; extra == 'types'
136
+ Requires-Dist: websocket-client ; extra == 'types'
137
+ Provides-Extra: websockets
138
+ Requires-Dist: websockets (<13,>=12.0) ; extra == 'websockets'
139
+ Provides-Extra: websurfer
140
+ Requires-Dist: beautifulsoup4 ; extra == 'websurfer'
141
+ Requires-Dist: markdownify ; extra == 'websurfer'
142
+ Requires-Dist: pathvalidate ; extra == 'websurfer'
143
+ Requires-Dist: pdfminer.six ; extra == 'websurfer'
144
+
145
+ <a name="readme-top"></a>
146
+
147
+ [![PyPI version](https://badge.fury.io/py/autogen.svg)](https://badge.fury.io/py/autogen)
148
+ [![Build](https://github.com/ag2ai/ag2/actions/workflows/python-package.yml/badge.svg)](https://github.com/ag2ai/ag2/actions/workflows/python-package.yml)
149
+ ![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)
150
+ [![Discord](https://img.shields.io/discord/1153072414184452236?logo=discord&style=flat)](https://discord.gg/pAbnFJrkgZ)
151
+ [![Twitter](https://img.shields.io/twitter/url/https/twitter.com/cloudposse.svg?style=social&label=Follow%20%40ag2ai)](https://x.com/ag2ai)
152
+
153
+ <!-- [![NuGet version](https://badge.fury.io/nu/AutoGen.Core.svg)](https://badge.fury.io/nu/AutoGen.Core) -->
154
+
155
+ # [AG2](https://github.com/ag2ai/ag2)
156
+
157
+ [📚 Cite paper](#related-papers).
158
+ <!-- <p align="center">
159
+ <img src="https://github.com/ag2ai/ag2/blob/main/website/static/img/flaml.svg" width=200>
160
+ <br>
161
+ </p> -->
162
+
163
+ > [!IMPORTANT]
164
+ >
165
+ > :fire: :tada: Nov 11, 2024: We are evolving AutoGen into AG2! A new organization [ag2ai](https://github.com/ag2ai) is created to host the development of AG2 and related projects with open governance. We invite collaborators from all organizations and individuals to join the development.
166
+
167
+
168
+ :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:
169
+ ```
170
+ pip install ag2
171
+ ```
172
+ or
173
+ ```
174
+ pip install pyautogen
175
+ ```
176
+ or
177
+ ```
178
+ pip install autogen
179
+ ```
180
+
181
+
182
+ 📄 **License:**
183
+ 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.
184
+
185
+
186
+ :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).
187
+
188
+ :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).
189
+
190
+ :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).
191
+
192
+ :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/).
193
+
194
+ <!-- :tada: Apr 26, 2024: [AutoGen.NET](https://ag2ai.github.io/ag2-for-net/) is available for .NET developers! -->
195
+
196
+ :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).
197
+
198
+ :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).
199
+
200
+ <!-- :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. -->
201
+
202
+ <!-- :tada: Jan 30, 2024: AutoGen is highlighted by Peter Lee in Microsoft Research Forum [Keynote](https://t.co/nUBSjPDjqD). -->
203
+
204
+ :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).
205
+
206
+ <!-- :fire: Nov 24: pyautogen [v0.2](https://github.com/microsoft/autogen/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). -->
207
+
208
+ <!-- :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. -->
209
+
210
+ :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).
211
+
212
+ <!-- :tada: Nov 6, 2023: AutoGen is mentioned by Satya Nadella in a [fireside chat](https://youtu.be/0pLBvgYtv6U). -->
213
+
214
+ <!-- :tada: Nov 1, 2023: AutoGen is the top trending repo on GitHub in October 2023. -->
215
+
216
+ <!-- :tada: Oct 03, 2023: AutoGen spins off from [FLAML](https://github.com/microsoft/FLAML) on GitHub. -->
217
+
218
+ <!-- :tada: Aug 16: Paper about AutoGen on [arxiv](https://arxiv.org/abs/2308.08155). -->
219
+
220
+ :tada: Mar 29, 2023: AutoGen is first created in [FLAML](https://github.com/microsoft/FLAML).
221
+
222
+ <!--
223
+ :fire: FLAML is highlighted in OpenAI's [cookbook](https://github.com/openai/openai-cookbook#related-resources-from-around-the-web).
224
+
225
+ :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).
226
+
227
+ :fire: FLAML supports Code-First AutoML & Tuning – Private Preview in [Microsoft Fabric Data Science](https://learn.microsoft.com/en-us/fabric/data-science/). -->
228
+
229
+ ## What is AG2
230
+
231
+ AG2 (formally 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.
232
+
233
+ **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.
234
+
235
+ 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.
236
+
237
+
238
+ ![AutoGen Overview](./website/static/img/autogen_agentchat.png)
239
+
240
+
241
+
242
+ <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
243
+ <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
244
+ ↑ Back to Top ↑
245
+ </a>
246
+ </p>
247
+
248
+ <!--
249
+ ## Roadmaps
250
+ -->
251
+
252
+ ## Quickstart
253
+ The easiest way to start playing is
254
+ 1. Click below to use the GitHub Codespace
255
+
256
+ [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/ag2ai/ag2?quickstart=1)
257
+
258
+ 2. Copy OAI_CONFIG_LIST_sample to ./notebook folder, name to OAI_CONFIG_LIST, and set the correct configuration.
259
+ 3. Start playing with the notebooks!
260
+
261
+ *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.
262
+
263
+ <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
264
+ <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
265
+ ↑ Back to Top ↑
266
+ </a>
267
+ </p>
268
+
269
+ ## [Installation](https://ag2ai.github.io/ag2/docs/Installation)
270
+
271
+ ### Option 1. Install and Run AG2 in Docker
272
+
273
+ 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).
274
+
275
+ ### Option 2. Install AG2 Locally
276
+
277
+ AG2 requires **Python version >= 3.8, < 3.13**. It can be installed from pip:
278
+
279
+ ```bash
280
+ pip install ag2
281
+ ```
282
+
283
+ Minimal dependencies are installed without extra options. You can install extra options based on the feature you need.
284
+
285
+ <!-- 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.
286
+ ```bash
287
+ pip install "autogen[blendsearch]"
288
+ ``` -->
289
+
290
+ Find more options in [Installation](https://ag2ai.github.io/ag2/docs/Installation#option-2-install-autogen-locally-using-virtual-environment).
291
+
292
+ <!-- Each of the [`notebook examples`](https://github.com/ag2ai/ag2/tree/main/notebook) may require a specific option to be installed. -->
293
+
294
+ 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)).
295
+
296
+ For LLM inference configurations, check the [FAQs](https://ag2ai.github.io/ag2/docs/FAQ#set-your-api-endpoints).
297
+
298
+ <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
299
+ <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
300
+ ↑ Back to Top ↑
301
+ </a>
302
+ </p>
303
+
304
+ ## Multi-Agent Conversation Framework
305
+
306
+ 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.
307
+ 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.
308
+
309
+ Features of this use case include:
310
+
311
+ - **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.
312
+ - **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.
313
+ - **Human participation**: AG2 seamlessly allows human participation. This means that humans can provide input and feedback to the agents as needed.
314
+
315
+ For [example](https://github.com/ag2ai/ag2/blob/main/test/twoagent.py),
316
+
317
+ ```python
318
+ from autogen import AssistantAgent, UserProxyAgent, config_list_from_json
319
+ # Load LLM inference endpoints from an env variable or a file
320
+ # See https://ag2ai.github.io/ag2/docs/FAQ#set-your-api-endpoints
321
+ # and OAI_CONFIG_LIST_sample
322
+ config_list = config_list_from_json(env_or_file="OAI_CONFIG_LIST")
323
+ # You can also set config_list directly as a list, for example, config_list = [{'model': 'gpt-4o', 'api_key': '<your OpenAI API key here>'},]
324
+ assistant = AssistantAgent("assistant", llm_config={"config_list": config_list})
325
+ user_proxy = UserProxyAgent("user_proxy", code_execution_config={"work_dir": "coding", "use_docker": False}) # IMPORTANT: set to True to run code in docker, recommended
326
+ user_proxy.initiate_chat(assistant, message="Plot a chart of NVDA and TESLA stock price change YTD.")
327
+ # This initiates an automated chat between the two agents to solve the task
328
+ ```
329
+
330
+ This example can be run with
331
+
332
+ ```python
333
+ python test/twoagent.py
334
+ ```
335
+
336
+ After the repo is cloned.
337
+ The figure below shows an example conversation flow with AG2.
338
+
339
+ ![Agent Chat Example](./website/static/img/chat_example.png)
340
+
341
+
342
+ Alternatively, the [sample code](https://github.com/ag2ai/build-with-autogen/blob/main/samples/simple_chat.py) here allows a user to chat with an AG2 agent in ChatGPT style.
343
+ Please find more [code examples](https://ag2ai.github.io/ag2/docs/Examples#automated-multi-agent-chat) for this feature.
344
+
345
+ <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
346
+ <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
347
+ ↑ Back to Top ↑
348
+ </a>
349
+ </p>
350
+
351
+ ## Enhanced LLM Inferences
352
+
353
+ 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.
354
+
355
+ <!-- For example, you can optimize generations by LLM with your own tuning data, success metrics, and budgets.
356
+
357
+ ```python
358
+ # perform tuning for openai<1
359
+ config, analysis = autogen.Completion.tune(
360
+ data=tune_data,
361
+ metric="success",
362
+ mode="max",
363
+ eval_func=eval_func,
364
+ inference_budget=0.05,
365
+ optimization_budget=3,
366
+ num_samples=-1,
367
+ )
368
+ # perform inference for a test instance
369
+ response = autogen.Completion.create(context=test_instance, **config)
370
+ ```
371
+
372
+ Please find more [code examples](https://ag2ai.github.io/ag2/docs/Examples#tune-gpt-models) for this feature. -->
373
+
374
+ <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
375
+ <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
376
+ ↑ Back to Top ↑
377
+ </a>
378
+ </p>
379
+
380
+ ## Documentation
381
+
382
+ You can find detailed documentation about AG2 [here](https://ag2ai.github.io/ag2/).
383
+
384
+ In addition, you can find:
385
+
386
+ - [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)
387
+
388
+ - [Discord](https://discord.gg/pAbnFJrkgZ)
389
+
390
+ - [Contributing guide](https://ag2ai.github.io/ag2/docs/Contribute)
391
+
392
+ <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
393
+ <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
394
+ ↑ Back to Top ↑
395
+ </a>
396
+ </p>
397
+
398
+ ## CookBook
399
+
400
+ Explore detailed implementations with sample code and applications to help you get started with AG2.
401
+ [Cookbook](https://github.com/ag2ai/build-with-autogen)
402
+
403
+
404
+ ## Related Papers
405
+
406
+ [AG2](https://arxiv.org/abs/2308.08155)
407
+
408
+ ```
409
+ @inproceedings{wu2023autogen,
410
+ title={AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework},
411
+ 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},
412
+ year={2023},
413
+ eprint={2308.08155},
414
+ archivePrefix={arXiv},
415
+ primaryClass={cs.AI}
416
+ }
417
+ ```
418
+
419
+ [EcoOptiGen](https://arxiv.org/abs/2303.04673)
420
+
421
+ ```
422
+ @inproceedings{wang2023EcoOptiGen,
423
+ title={Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference},
424
+ author={Chi Wang and Susan Xueqing Liu and Ahmed H. Awadallah},
425
+ year={2023},
426
+ booktitle={AutoML'23},
427
+ }
428
+ ```
429
+
430
+ [MathChat](https://arxiv.org/abs/2306.01337)
431
+
432
+ ```
433
+ @inproceedings{wu2023empirical,
434
+ title={An Empirical Study on Challenging Math Problem Solving with GPT-4},
435
+ 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},
436
+ year={2023},
437
+ booktitle={ArXiv preprint arXiv:2306.01337},
438
+ }
439
+ ```
440
+
441
+ [AgentOptimizer](https://arxiv.org/pdf/2402.11359)
442
+
443
+ ```
444
+ @article{zhang2024training,
445
+ title={Training Language Model Agents without Modifying Language Models},
446
+ author={Zhang, Shaokun and Zhang, Jieyu and Liu, Jiale and Song, Linxin and Wang, Chi and Krishna, Ranjay and Wu, Qingyun},
447
+ journal={ICML'24},
448
+ year={2024}
449
+ }
450
+ ```
451
+
452
+ [StateFlow](https://arxiv.org/abs/2403.11322)
453
+ ```
454
+ @article{wu2024stateflow,
455
+ title={StateFlow: Enhancing LLM Task-Solving through State-Driven Workflows},
456
+ author={Wu, Yiran and Yue, Tianwei and Zhang, Shaokun and Wang, Chi and Wu, Qingyun},
457
+ journal={arXiv preprint arXiv:2403.11322},
458
+ year={2024}
459
+ }
460
+ ```
461
+
462
+ <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
463
+ <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
464
+ ↑ Back to Top ↑
465
+ </a>
466
+ </p>
467
+
468
+ ## Contributors Wall
469
+ <a href="https://github.com/ag2ai/ag2/graphs/contributors">
470
+ <img src="https://contrib.rocks/image?repo=ag2ai/ag2&max=204" />
471
+ </a>
472
+
473
+ <p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
474
+ <a href="#readme-top" style="text-decoration: none; color: blue; font-weight: bold;">
475
+ ↑ Back to Top ↑
476
+ </a>
477
+ </p>
478
+
479
+ ## License
480
+ This project is licensed under the [Apache License, Version 2.0 (Apache-2.0)](./LICENSE).
481
+
482
+ This project is a spin-off of https://github.com/microsoft/autogen and contains code under two licenses:
483
+
484
+ - 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.
485
+
486
+ - 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.
487
+
488
+ 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.
489
+
490
+
@@ -0,0 +1,19 @@
1
+ ## NOTICE
2
+
3
+ Copyright (c) 2023-2024, Owners of https://github.com/ag2ai
4
+
5
+ This project is a fork of https://github.com/microsoft/autogen.
6
+
7
+ The [original project](https://github.com/microsoft/autogen) is licensed under the MIT License as detailed in [LICENSE_original_MIT](./license_original/LICENSE_original_MIT). The fork was created from version v0.2.35 of the original project.
8
+
9
+
10
+ This project, i.e., https://github.com/ag2ai/ag2, is licensed under the Apache License, Version 2.0 as detailed in [LICENSE](./LICENSE)
11
+
12
+
13
+ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
14
+
15
+ Ongoing MIT-licensed contributions:
16
+ This project regularly incorporates code merged from the [original repository](https://github.com/microsoft/autogen) after the initial fork. This merged code remains under the original MIT license. For specific details on merged commits, please refer to the project's commit history.
17
+ The MIT license applies to portions of code originating from the [original repository](https://github.com/microsoft/autogen) as described above.
18
+
19
+ Last updated: 08/25/2024
@@ -0,0 +1,112 @@
1
+ autogen/__init__.py,sha256=eNsTdCkF0qnFdptTUXK9T7Vx7SbUVjvIt3ryRdsyCL4,491
2
+ autogen/_pydantic.py,sha256=HRc_pCb9puuh4uOyVzeJPNm__XSYbLQ26Gnc5xXgQU8,3409
3
+ autogen/browser_utils.py,sha256=DiDUvsiSkTFItU_tOqTQAbeg3E8Br9SX2cd2P-zOipM,11939
4
+ autogen/code_utils.py,sha256=NS2QrVxpVQo2e5QNndXy6mRmtfv_zHs4ZHl-MMib4z4,29835
5
+ autogen/exception_utils.py,sha256=WEdeVlc_otHXgWQZ-lqaHdezXdrl3Q4M-qfpBv4eiE0,1581
6
+ autogen/formatting_utils.py,sha256=lhNmim0G6Vmlrz6D-ra6u0YRt7wP98nSGubRYJ3717Q,1913
7
+ autogen/function_utils.py,sha256=6wTb2LxTzGveMk360JerU9l7hA497alMet8q2o9BqDo,12245
8
+ autogen/graph_utils.py,sha256=Bszgh51Pdpuc2o05IX6aa7uCD_p1BCqYVaipozStQlE,6416
9
+ autogen/math_utils.py,sha256=gXgTqhT1BssQ4EjPPd9tXlHgKuftuSu5DYW-lxgMx4s,10274
10
+ autogen/retrieve_utils.py,sha256=CndQ0lr7dsRGLltudqp-O_dC_4NgO6fmhzka8iXLa-g,19600
11
+ autogen/runtime_logging.py,sha256=iAJO_oddNfItIghNlTv060Ld0NybK52SzL7qu3n0vRw,4837
12
+ autogen/token_count_utils.py,sha256=z9HMEYf9DWr3IJah-PyzIwU_vr64_NF_6U0WCFI1L7s,10240
13
+ autogen/types.py,sha256=zkSwYEfDePIsuk03IgutDPwb1QlFK-rAu23uYvQKrXE,601
14
+ autogen/version.py,sha256=4AF2zyKy8W_AxDUAJXcwitR8PpTkqFi5Gtn0IR9b0jU,248
15
+ autogen/agentchat/__init__.py,sha256=THTYvGvFyi-gKVAMnBdDgU9CKE8cWMqWcbFS-VrzOQs,773
16
+ autogen/agentchat/agent.py,sha256=r3jjZbVGkms4a8FTOXzyiQQ7PcMPVBj8zwbSJ-siwXg,4764
17
+ autogen/agentchat/assistant_agent.py,sha256=cEaYk15yyeRSE3LaguDThxzZFgTWiPJ1SxTvAvK6t68,5548
18
+ autogen/agentchat/chat.py,sha256=F7WNQc_feDg0pXwkqG0ER74jy_zRzj6NO7MVNwEQcPM,12484
19
+ autogen/agentchat/conversable_agent.py,sha256=oV3xQiZtn8zasMb8iH_jB-csc27wyKDMITLNkMvaaO4,139137
20
+ autogen/agentchat/groupchat.py,sha256=S4hQ_pAxfk6n9_R0HhVM4fJ12hxEKP_nMhTeel2Yu_I,83723
21
+ autogen/agentchat/user_proxy_agent.py,sha256=c-RG-Sb_O3p3QnePkOVepVI5olyfKOlsM9SQaEOcthw,7307
22
+ autogen/agentchat/utils.py,sha256=Y-FjMcwiJuO-WsgLDuXep_IU2absAMwQulCKs9QdHVc,8036
23
+ autogen/agentchat/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
+ autogen/agentchat/contrib/agent_builder.py,sha256=yY2eFSaewKmYS-vylNJVN_jtHG6zTdKETR50nrjyb9A,32641
25
+ autogen/agentchat/contrib/agent_optimizer.py,sha256=dSsRIcYwZXxTWIGn_0gUl-zvDnWgOSQKyImzmkE6UPQ,22446
26
+ autogen/agentchat/contrib/gpt_assistant_agent.py,sha256=5aNsw8HJQKw5KumHRZekT2smnHR9e4PLRvIZzfsNPQw,25146
27
+ autogen/agentchat/contrib/img_utils.py,sha256=XEnLKeWOXoD1IiWf8IT1A3QiUE8ZEdZrjxUaJwR1WVY,14276
28
+ autogen/agentchat/contrib/llamaindex_conversable_agent.py,sha256=2g-yz9nNu1p3RxagwGYuU0bp_baje7vfV2gYNqFtiK0,4292
29
+ autogen/agentchat/contrib/llava_agent.py,sha256=pVKcwa_16Pg6lBfGJ6JXWUH-nAUtgW05q6KdhDESass,6330
30
+ autogen/agentchat/contrib/math_user_proxy_agent.py,sha256=Q6YI8Z3M4Ndcp8ruMtpEr16rxLi4ZnIKKnYD8ujv33I,19938
31
+ autogen/agentchat/contrib/multimodal_conversable_agent.py,sha256=vDYP6c3K1L6HaefG4gItGvlrbAa91KERJQTKZlMpe2c,5155
32
+ autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py,sha256=mgKHvKbx5dcTRMlE4yg6K6DMmfVWuIxncNHdf987Ct4,19406
33
+ autogen/agentchat/contrib/retrieve_assistant_agent.py,sha256=79igEA0r1eZYSuWKOCKkUwCV1c5yTWH295-L2-4ao4c,2424
34
+ autogen/agentchat/contrib/retrieve_user_proxy_agent.py,sha256=kDEQ_HJ5nvbBmsCf-oyCnZGxzv3R0VawoLHKuNz5v4c,37069
35
+ autogen/agentchat/contrib/society_of_mind_agent.py,sha256=lRF69C8ejcqPRGj5_fPtUs2NandyATw010OJB7OTdos,9087
36
+ autogen/agentchat/contrib/text_analyzer_agent.py,sha256=WitXX--yoGh3Xq_jC_D85Unt7UCVPdhM4MzuVJxiRSg,3563
37
+ autogen/agentchat/contrib/web_surfer.py,sha256=kAqbfuyj_lK61VUhvVUM83CYs_Hsut6eKPy388LVwL8,14563
38
+ autogen/agentchat/contrib/capabilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
+ autogen/agentchat/contrib/capabilities/agent_capability.py,sha256=f6cBV4FcMvA7oZE1_o42RUUayC3KTkKOB7wW2fFEjso,771
40
+ autogen/agentchat/contrib/capabilities/generate_images.py,sha256=B0n9bSNovYLcSMSYwtYAwOMnx77y52jucQtGZ4RbA60,12627
41
+ autogen/agentchat/contrib/capabilities/teachability.py,sha256=6PUVPC-rCGH6D0r-xEzyXTAm8-OqjftvZFL8wmcpJ6U,19501
42
+ autogen/agentchat/contrib/capabilities/text_compressors.py,sha256=xKQwv268AVZYKK-RdZMhNyjabT-6y-lJ7a1jxepFs4Q,3080
43
+ autogen/agentchat/contrib/capabilities/transform_messages.py,sha256=RdzTnmlRS5aXA8dtxQky3P4rVlveU1aibeH40sXoKKQ,3708
44
+ autogen/agentchat/contrib/capabilities/transforms.py,sha256=4a1Gb_8ol48l-g0B7V9Mqful6A9gCizSRayhR_HudwY,25637
45
+ autogen/agentchat/contrib/capabilities/transforms_util.py,sha256=-OnVwZeHhmJhV-FkiOODpsAU8-gZkcJSwJMpctOyz8Y,4441
46
+ autogen/agentchat/contrib/capabilities/vision_capability.py,sha256=XzKKLXOffNWAowgF0f2CS050fdRvVWT0ce7F68T1q5I,10058
47
+ autogen/agentchat/contrib/graph_rag/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
+ autogen/agentchat/contrib/graph_rag/document.py,sha256=yUR0_i9h5XaTiMLvV7--gjaUM9YOUB5N2LkK5-HXC5o,413
49
+ autogen/agentchat/contrib/graph_rag/falkor_graph_query_engine.py,sha256=0qmPapOsj4qim2QYAgOqdH6HB5MzPrOcQpdL2AocLoc,2695
50
+ autogen/agentchat/contrib/graph_rag/graph_query_engine.py,sha256=FnVJkKFopMvsqo-7YShaFQGGQ4tDbBVZIwb5me1g2DE,1537
51
+ autogen/agentchat/contrib/graph_rag/graph_rag_capability.py,sha256=0aqzxxmtRduy9fXCutIeHICZMphijOnMInOdadAfWEE,1997
52
+ autogen/agentchat/contrib/vectordb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
+ autogen/agentchat/contrib/vectordb/base.py,sha256=50MchILyOfBHPuBg1G1nM2vIuzKfoQKssCXKvbMKruU,9151
54
+ autogen/agentchat/contrib/vectordb/chromadb.py,sha256=2dFVBd_Icj_GJ4XOVC5D4LYNFXtzoDmXux-WuTW7EDw,13480
55
+ autogen/agentchat/contrib/vectordb/mongodb.py,sha256=iD7ayIrTZ9V3xV0nOOWpQ3U8GWDDmVMB8wW_o5CKEtY,23192
56
+ autogen/agentchat/contrib/vectordb/pgvectordb.py,sha256=RxTvZciJkT1oty4CFer-gVvGX0sRHp_xFgQPh0de6HM,39240
57
+ autogen/agentchat/contrib/vectordb/qdrant.py,sha256=SVho_uZPfPjFamz2raPudx-wFOx1wNCf90UvK_TozcI,13823
58
+ autogen/agentchat/contrib/vectordb/utils.py,sha256=skh86LXkbW5owCehkj887D7cIMxgT35Mk4vu75SWFIc,4435
59
+ autogen/cache/__init__.py,sha256=uXnBVq_fGjRt5ypTrTtUuZ1KKFKOqR2iOiT27G0Az28,336
60
+ autogen/cache/abstract_cache_base.py,sha256=lIx9XeFhgNGRrsC4ferOUmGxskyMBu1wC6KTvbjO9j8,2388
61
+ autogen/cache/cache.py,sha256=BH3892nm3DO4q0HIDLNh--zp6vfefmyOqULJZmmRq8s,6408
62
+ autogen/cache/cache_factory.py,sha256=xmTCC_GY2gc3MmxNzjzrH-V2vbsHYNoQwoAr6ifSQ08,3038
63
+ autogen/cache/cosmos_db_cache.py,sha256=9BlJc3hmyAB16leb9MAfgnpX58eOpRadlh1P4FzRdzA,5797
64
+ autogen/cache/disk_cache.py,sha256=fHWga6HmMBLvI9o8Et3vIgeqsEdKCNaHSXgrw0rSot8,3357
65
+ autogen/cache/in_memory_cache.py,sha256=CXd8TRcCh4vOTgvLqUPKnQfN8fCEQJib5aR4RxZWBu4,1849
66
+ autogen/cache/redis_cache.py,sha256=r6vzXbU8nZkqErcB0KiEI7v7D8icpuBq7ZM9oxnHFdA,4137
67
+ autogen/coding/__init__.py,sha256=bbs19EUNBaAcISEavwfJssKS-_QIfNcTWKkM9u3wSTU,791
68
+ autogen/coding/base.py,sha256=UN7AnCtAAqkrMSAfwN-PKh9u7wMPSmSRvPdb5nQh8Hk,3594
69
+ autogen/coding/docker_commandline_code_executor.py,sha256=Yv4hL-VEC8VPt9smUfDTbSTbB3ONeptKlPtpZJsnAmI,9600
70
+ autogen/coding/factory.py,sha256=u-OzGT2i04IOlC38XHEp4tVaQ4UCuzyQ7S5O0eyH02Q,1895
71
+ autogen/coding/func_with_reqs.py,sha256=OXIftScn08abW6IxMA1_qCWw2w27x25J4mYn3HVqhOA,6399
72
+ autogen/coding/local_commandline_code_executor.py,sha256=ZdYVFeIK-PmRdxs7jqZwX9unj7QSnuDAmU7x2HxJhbo,16748
73
+ autogen/coding/markdown_code_extractor.py,sha256=_H6B93Y5CbC5artw6G7TcZGi_imJAKSQIajJb7s98ns,1595
74
+ autogen/coding/utils.py,sha256=0TL1wYSShRtQvkgi8o_M1_CaBpxVdyEGv0QVttdn-gY,2110
75
+ autogen/coding/jupyter/__init__.py,sha256=FfaEWT1EUW2l44rjmDDQmj60W76H-jIHmVSP1ZdouFc,795
76
+ autogen/coding/jupyter/base.py,sha256=aQIYeL4PRE0awiUGfvDA_RO9UU00gs2aSlZVLMelY6w,1015
77
+ autogen/coding/jupyter/docker_jupyter_server.py,sha256=or17u84l4NacCPEk_isLTUnCigdouvUFtgyqPBuGT5Y,5695
78
+ autogen/coding/jupyter/embedded_ipython_code_executor.py,sha256=2DWAIYLjZGVrYP1AUopW14AKXqNwL3PwlcaMGLwrK-0,8088
79
+ autogen/coding/jupyter/jupyter_client.py,sha256=8kIHjh2kD5Wh6Ci9uj8r3eq8qSdyZI-eqo4iZPy74II,8296
80
+ autogen/coding/jupyter/jupyter_code_executor.py,sha256=0CVu18Uw2A3uUujCWxBkrxTKVzLRC41FNvTLuNiWXH8,6376
81
+ autogen/coding/jupyter/local_jupyter_server.py,sha256=no8lLzm-3U2qwhlBDq4YqM7tDULCq8ANsHhsoCqZ934,6404
82
+ autogen/extensions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
+ autogen/io/__init__.py,sha256=LARrer2Vn88okcf-EBq5zn6vAHt9yAs2rh3cl1_HdMM,561
84
+ autogen/io/base.py,sha256=xIK9vTat6HHcwMndGNFcY17B3y62C8bRTk3tezf7A_w,3425
85
+ autogen/io/console.py,sha256=lYzBsy7VWTsTP0Evxsd6tarVYR1v8btjItoCRxe3vg4,1407
86
+ autogen/io/websockets.py,sha256=qK2DLDTx5rGtuhsRPpV-xleuLCBy4Oorpc5WggKHcf4,7264
87
+ autogen/logger/__init__.py,sha256=1aNIdfAhzJjf8qJSqsgCCEbZcBGIcJdiXbS1G6iMns8,403
88
+ autogen/logger/base_logger.py,sha256=boarsJGfgD_vZYqDROsHyauouQaLdeQkP9xMfJEMWWo,5159
89
+ autogen/logger/file_logger.py,sha256=faApnlfmJ42x0JD5JDmOsBpNxMqwZY9HMJh6LGXMKYg,10402
90
+ autogen/logger/logger_factory.py,sha256=RNr12g2pPTeBEJzeYrbp3KWeJxpZnEGvlufYiFeyq8A,941
91
+ autogen/logger/logger_utils.py,sha256=-P3_YWBEFsTF8MgQ9oc5AqLb6fSdjDJZ8FOg5hs8oMM,1436
92
+ autogen/logger/sqlite_logger.py,sha256=vkZtYLWKKGDHh0GCTbp_4PWBl9-yjhzii1cnQ7-lQkQ,16430
93
+ autogen/oai/__init__.py,sha256=6HF5dNTEgwi-rM-A273XtVBSyvkIsKtNpccsoNXWdqY,911
94
+ autogen/oai/anthropic.py,sha256=ibeH8-NLfeNDKpGdjJbh9dPoUWJGzBszguKaWzJJLzs,17249
95
+ autogen/oai/bedrock.py,sha256=oTd7qWw3zfMhYLA2QUGoOiPNeA1hDG7ooaA-iqavRfI,23562
96
+ autogen/oai/cerebras.py,sha256=7TrdvplPx5ATbFwSIvwqg_8Xmzkjsi2Hr9Q60w5uyZk,10669
97
+ autogen/oai/client.py,sha256=HR8ATrTlNoSM8fr0fH9cmKR-lxr3Rd62kBI0aj-eoNg,52615
98
+ autogen/oai/client_utils.py,sha256=W9RD6V3XPpelDqPwjG412go4qXfYWDPmKur68s-Siu0,7282
99
+ autogen/oai/cohere.py,sha256=giMIRomeAEd3y0QsulmWYYLXXCfsqY0ojKG4UzwQ2SI,18513
100
+ autogen/oai/completion.py,sha256=KwbFggV_b30uJfuJsw3oOpvVzIM05fNM1KHwjbLJHXY,53660
101
+ autogen/oai/gemini.py,sha256=JcjJh9WoV7JDxkS2e4kercaApw_Ecp4q_T4t9GgrsBE,20599
102
+ autogen/oai/groq.py,sha256=gpLe1UJZMtkJAks2mj40aksvMcQ0oBjgOxRuTVupG7s,11164
103
+ autogen/oai/mistral.py,sha256=1xybwfihh6n2HyLlCNNebT01SYVIwNj9ClIms92ySak,11414
104
+ autogen/oai/ollama.py,sha256=lKGvNdVoNhpvssYu-shrNPcMHczBX1kVktZe77c9zz0,25383
105
+ autogen/oai/openai_utils.py,sha256=zZU1GFZsqy_dEYvt5UbCfRPh_i3nIFvGVnmF3kbTUvU,35162
106
+ autogen/oai/together.py,sha256=AfEx2Dt4limeVvnCibtwvs9OuJkS1wcYFdA-P-gDzRw,13411
107
+ ag2-0.3.2.dist-info/LICENSE,sha256=GEFQVNayAR-S_rQD5l8hPdgvgyktVdy4Bx5-v90IfRI,11384
108
+ ag2-0.3.2.dist-info/METADATA,sha256=MVcmbzNczPQo86nvdU91GNfQ2aVC1notYGCZ9FQiK2A,24562
109
+ ag2-0.3.2.dist-info/NOTICE.md,sha256=ucvou1bE6i2s40qyuU9RL0TeIVG01VhXoQ59EngtEz4,1317
110
+ ag2-0.3.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
111
+ ag2-0.3.2.dist-info/top_level.txt,sha256=qRZ2MW8yuy0LtOLpeZndl4H1buusjxhwD6c9AXbVqKQ,8
112
+ ag2-0.3.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ autogen
autogen/__init__.py ADDED
@@ -0,0 +1,17 @@
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)