ag2 0.3.2__tar.gz → 0.4__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.
- {ag2-0.3.2/ag2.egg-info → ag2-0.4}/PKG-INFO +10 -9
- {ag2-0.3.2 → ag2-0.4}/README.md +7 -7
- {ag2-0.3.2 → ag2-0.4/ag2.egg-info}/PKG-INFO +10 -9
- {ag2-0.3.2 → ag2-0.4}/ag2.egg-info/SOURCES.txt +3 -0
- {ag2-0.3.2 → ag2-0.4}/ag2.egg-info/requires.txt +13 -1
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/__init__.py +18 -2
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/agent_builder.py +7 -5
- ag2-0.4/autogen/agentchat/contrib/captainagent.py +487 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/llamaindex_conversable_agent.py +9 -0
- ag2-0.4/autogen/agentchat/contrib/swarm_agent.py +414 -0
- ag2-0.4/autogen/agentchat/contrib/tool_retriever.py +114 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/conversable_agent.py +11 -7
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/groupchat.py +2 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/completion.py +2 -2
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/gemini.py +1 -1
- {ag2-0.3.2 → ag2-0.4}/autogen/version.py +1 -1
- {ag2-0.3.2 → ag2-0.4}/setup.py +7 -3
- {ag2-0.3.2 → ag2-0.4}/test/test_browser_utils.py +3 -3
- {ag2-0.3.2 → ag2-0.4}/test/test_notebook.py +6 -6
- {ag2-0.3.2 → ag2-0.4}/LICENSE +0 -0
- {ag2-0.3.2 → ag2-0.4}/NOTICE.md +0 -0
- {ag2-0.3.2 → ag2-0.4}/ag2.egg-info/dependency_links.txt +0 -0
- {ag2-0.3.2 → ag2-0.4}/ag2.egg-info/top_level.txt +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/_pydantic.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/assistant_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/chat.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/agent_optimizer.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/capabilities/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/capabilities/agent_capability.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/capabilities/generate_images.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/capabilities/teachability.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/capabilities/text_compressors.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/capabilities/transform_messages.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/capabilities/transforms.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/capabilities/transforms_util.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/capabilities/vision_capability.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/gpt_assistant_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/graph_rag/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/graph_rag/document.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/graph_rag/falkor_graph_query_engine.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/graph_rag/graph_query_engine.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/graph_rag/graph_rag_capability.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/img_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/llava_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/math_user_proxy_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/multimodal_conversable_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/retrieve_assistant_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/retrieve_user_proxy_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/society_of_mind_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/text_analyzer_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/vectordb/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/vectordb/base.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/vectordb/chromadb.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/vectordb/mongodb.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/vectordb/pgvectordb.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/vectordb/qdrant.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/vectordb/utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/contrib/web_surfer.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/user_proxy_agent.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/agentchat/utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/browser_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/cache/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/cache/abstract_cache_base.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/cache/cache.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/cache/cache_factory.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/cache/cosmos_db_cache.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/cache/disk_cache.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/cache/in_memory_cache.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/cache/redis_cache.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/code_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/base.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/docker_commandline_code_executor.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/factory.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/func_with_reqs.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/jupyter/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/jupyter/base.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/jupyter/docker_jupyter_server.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/jupyter/embedded_ipython_code_executor.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/jupyter/jupyter_client.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/jupyter/jupyter_code_executor.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/jupyter/local_jupyter_server.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/local_commandline_code_executor.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/markdown_code_extractor.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/coding/utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/exception_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/extensions/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/formatting_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/function_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/graph_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/io/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/io/base.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/io/console.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/io/websockets.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/logger/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/logger/base_logger.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/logger/file_logger.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/logger/logger_factory.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/logger/logger_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/logger/sqlite_logger.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/math_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/__init__.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/anthropic.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/bedrock.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/cerebras.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/client.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/client_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/cohere.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/groq.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/mistral.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/ollama.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/openai_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/oai/together.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/retrieve_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/runtime_logging.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/token_count_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/autogen/types.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/pyproject.toml +0 -0
- {ag2-0.3.2 → ag2-0.4}/setup.cfg +0 -0
- {ag2-0.3.2 → ag2-0.4}/test/test_code_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/test/test_function_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/test/test_graph_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/test/test_logging.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/test/test_pydantic.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/test/test_retrieve_utils.py +0 -0
- {ag2-0.3.2 → ag2-0.4}/test/test_token_count.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ag2
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4
|
|
4
4
|
Summary: A programming framework for agentic AI
|
|
5
5
|
Home-page: https://github.com/ag2ai/ag2
|
|
6
6
|
Author: Chi Wang & Qingyun Wu
|
|
@@ -10,12 +10,13 @@ Platform: UNKNOWN
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
|
-
Requires-Python: >=3.8,<3.
|
|
13
|
+
Requires-Python: >=3.8,<3.14
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
Provides-Extra: anthropic
|
|
16
16
|
Provides-Extra: autobuild
|
|
17
17
|
Provides-Extra: bedrock
|
|
18
18
|
Provides-Extra: blendsearch
|
|
19
|
+
Provides-Extra: captainagent
|
|
19
20
|
Provides-Extra: cerebras
|
|
20
21
|
Provides-Extra: cohere
|
|
21
22
|
Provides-Extra: cosmosdb
|
|
@@ -104,7 +105,7 @@ We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-
|
|
|
104
105
|
|
|
105
106
|
: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).
|
|
106
107
|
|
|
107
|
-
<!-- :fire: Nov 24: pyautogen [v0.2](https://github.com/
|
|
108
|
+
<!-- :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). -->
|
|
108
109
|
|
|
109
110
|
<!-- :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. -->
|
|
110
111
|
|
|
@@ -129,7 +130,7 @@ We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-
|
|
|
129
130
|
|
|
130
131
|
## What is AG2
|
|
131
132
|
|
|
132
|
-
AG2 (
|
|
133
|
+
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.
|
|
133
134
|
|
|
134
135
|
**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.
|
|
135
136
|
|
|
@@ -175,7 +176,7 @@ Find detailed instructions for users [here](https://ag2ai.github.io/ag2/docs/ins
|
|
|
175
176
|
|
|
176
177
|
### Option 2. Install AG2 Locally
|
|
177
178
|
|
|
178
|
-
AG2 requires **Python version >= 3.8, < 3.
|
|
179
|
+
AG2 requires **Python version >= 3.8, < 3.14**. It can be installed from pip:
|
|
179
180
|
|
|
180
181
|
```bash
|
|
181
182
|
pip install ag2
|
|
@@ -240,7 +241,7 @@ The figure below shows an example conversation flow with AG2.
|
|
|
240
241
|

|
|
241
242
|
|
|
242
243
|
|
|
243
|
-
Alternatively, the [sample code](https://github.com/ag2ai/build-with-
|
|
244
|
+
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.
|
|
244
245
|
Please find more [code examples](https://ag2ai.github.io/ag2/docs/Examples#automated-multi-agent-chat) for this feature.
|
|
245
246
|
|
|
246
247
|
<p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
|
|
@@ -299,12 +300,12 @@ In addition, you can find:
|
|
|
299
300
|
## CookBook
|
|
300
301
|
|
|
301
302
|
Explore detailed implementations with sample code and applications to help you get started with AG2.
|
|
302
|
-
[Cookbook](https://github.com/ag2ai/build-with-
|
|
303
|
+
[Cookbook](https://github.com/ag2ai/build-with-ag2)
|
|
303
304
|
|
|
304
305
|
|
|
305
306
|
## Related Papers
|
|
306
307
|
|
|
307
|
-
[
|
|
308
|
+
[AutoGen](https://arxiv.org/abs/2308.08155)
|
|
308
309
|
|
|
309
310
|
```
|
|
310
311
|
@inproceedings{wu2023autogen,
|
|
@@ -380,7 +381,7 @@ Explore detailed implementations with sample code and applications to help you g
|
|
|
380
381
|
## License
|
|
381
382
|
This project is licensed under the [Apache License, Version 2.0 (Apache-2.0)](./LICENSE).
|
|
382
383
|
|
|
383
|
-
This project is a spin-off of https://github.com/microsoft/autogen and contains code under two licenses:
|
|
384
|
+
This project is a spin-off of [AutoGen](https://github.com/microsoft/autogen) and contains code under two licenses:
|
|
384
385
|
|
|
385
386
|
- 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.
|
|
386
387
|
|
{ag2-0.3.2 → ag2-0.4}/README.md
RENAMED
|
@@ -59,7 +59,7 @@ We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-
|
|
|
59
59
|
|
|
60
60
|
: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).
|
|
61
61
|
|
|
62
|
-
<!-- :fire: Nov 24: pyautogen [v0.2](https://github.com/
|
|
62
|
+
<!-- :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). -->
|
|
63
63
|
|
|
64
64
|
<!-- :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. -->
|
|
65
65
|
|
|
@@ -84,7 +84,7 @@ We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-
|
|
|
84
84
|
|
|
85
85
|
## What is AG2
|
|
86
86
|
|
|
87
|
-
AG2 (
|
|
87
|
+
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.
|
|
88
88
|
|
|
89
89
|
**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.
|
|
90
90
|
|
|
@@ -130,7 +130,7 @@ Find detailed instructions for users [here](https://ag2ai.github.io/ag2/docs/ins
|
|
|
130
130
|
|
|
131
131
|
### Option 2. Install AG2 Locally
|
|
132
132
|
|
|
133
|
-
AG2 requires **Python version >= 3.8, < 3.
|
|
133
|
+
AG2 requires **Python version >= 3.8, < 3.14**. It can be installed from pip:
|
|
134
134
|
|
|
135
135
|
```bash
|
|
136
136
|
pip install ag2
|
|
@@ -195,7 +195,7 @@ The figure below shows an example conversation flow with AG2.
|
|
|
195
195
|

|
|
196
196
|
|
|
197
197
|
|
|
198
|
-
Alternatively, the [sample code](https://github.com/ag2ai/build-with-
|
|
198
|
+
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.
|
|
199
199
|
Please find more [code examples](https://ag2ai.github.io/ag2/docs/Examples#automated-multi-agent-chat) for this feature.
|
|
200
200
|
|
|
201
201
|
<p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
|
|
@@ -254,12 +254,12 @@ In addition, you can find:
|
|
|
254
254
|
## CookBook
|
|
255
255
|
|
|
256
256
|
Explore detailed implementations with sample code and applications to help you get started with AG2.
|
|
257
|
-
[Cookbook](https://github.com/ag2ai/build-with-
|
|
257
|
+
[Cookbook](https://github.com/ag2ai/build-with-ag2)
|
|
258
258
|
|
|
259
259
|
|
|
260
260
|
## Related Papers
|
|
261
261
|
|
|
262
|
-
[
|
|
262
|
+
[AutoGen](https://arxiv.org/abs/2308.08155)
|
|
263
263
|
|
|
264
264
|
```
|
|
265
265
|
@inproceedings{wu2023autogen,
|
|
@@ -335,7 +335,7 @@ Explore detailed implementations with sample code and applications to help you g
|
|
|
335
335
|
## License
|
|
336
336
|
This project is licensed under the [Apache License, Version 2.0 (Apache-2.0)](./LICENSE).
|
|
337
337
|
|
|
338
|
-
This project is a spin-off of https://github.com/microsoft/autogen and contains code under two licenses:
|
|
338
|
+
This project is a spin-off of [AutoGen](https://github.com/microsoft/autogen) and contains code under two licenses:
|
|
339
339
|
|
|
340
340
|
- 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.
|
|
341
341
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ag2
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4
|
|
4
4
|
Summary: A programming framework for agentic AI
|
|
5
5
|
Home-page: https://github.com/ag2ai/ag2
|
|
6
6
|
Author: Chi Wang & Qingyun Wu
|
|
@@ -10,12 +10,13 @@ Platform: UNKNOWN
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
|
-
Requires-Python: >=3.8,<3.
|
|
13
|
+
Requires-Python: >=3.8,<3.14
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
Provides-Extra: anthropic
|
|
16
16
|
Provides-Extra: autobuild
|
|
17
17
|
Provides-Extra: bedrock
|
|
18
18
|
Provides-Extra: blendsearch
|
|
19
|
+
Provides-Extra: captainagent
|
|
19
20
|
Provides-Extra: cerebras
|
|
20
21
|
Provides-Extra: cohere
|
|
21
22
|
Provides-Extra: cosmosdb
|
|
@@ -104,7 +105,7 @@ We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-
|
|
|
104
105
|
|
|
105
106
|
: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).
|
|
106
107
|
|
|
107
|
-
<!-- :fire: Nov 24: pyautogen [v0.2](https://github.com/
|
|
108
|
+
<!-- :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). -->
|
|
108
109
|
|
|
109
110
|
<!-- :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. -->
|
|
110
111
|
|
|
@@ -129,7 +130,7 @@ We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-
|
|
|
129
130
|
|
|
130
131
|
## What is AG2
|
|
131
132
|
|
|
132
|
-
AG2 (
|
|
133
|
+
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.
|
|
133
134
|
|
|
134
135
|
**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.
|
|
135
136
|
|
|
@@ -175,7 +176,7 @@ Find detailed instructions for users [here](https://ag2ai.github.io/ag2/docs/ins
|
|
|
175
176
|
|
|
176
177
|
### Option 2. Install AG2 Locally
|
|
177
178
|
|
|
178
|
-
AG2 requires **Python version >= 3.8, < 3.
|
|
179
|
+
AG2 requires **Python version >= 3.8, < 3.14**. It can be installed from pip:
|
|
179
180
|
|
|
180
181
|
```bash
|
|
181
182
|
pip install ag2
|
|
@@ -240,7 +241,7 @@ The figure below shows an example conversation flow with AG2.
|
|
|
240
241
|

|
|
241
242
|
|
|
242
243
|
|
|
243
|
-
Alternatively, the [sample code](https://github.com/ag2ai/build-with-
|
|
244
|
+
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.
|
|
244
245
|
Please find more [code examples](https://ag2ai.github.io/ag2/docs/Examples#automated-multi-agent-chat) for this feature.
|
|
245
246
|
|
|
246
247
|
<p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
|
|
@@ -299,12 +300,12 @@ In addition, you can find:
|
|
|
299
300
|
## CookBook
|
|
300
301
|
|
|
301
302
|
Explore detailed implementations with sample code and applications to help you get started with AG2.
|
|
302
|
-
[Cookbook](https://github.com/ag2ai/build-with-
|
|
303
|
+
[Cookbook](https://github.com/ag2ai/build-with-ag2)
|
|
303
304
|
|
|
304
305
|
|
|
305
306
|
## Related Papers
|
|
306
307
|
|
|
307
|
-
[
|
|
308
|
+
[AutoGen](https://arxiv.org/abs/2308.08155)
|
|
308
309
|
|
|
309
310
|
```
|
|
310
311
|
@inproceedings{wu2023autogen,
|
|
@@ -380,7 +381,7 @@ Explore detailed implementations with sample code and applications to help you g
|
|
|
380
381
|
## License
|
|
381
382
|
This project is licensed under the [Apache License, Version 2.0 (Apache-2.0)](./LICENSE).
|
|
382
383
|
|
|
383
|
-
This project is a spin-off of https://github.com/microsoft/autogen and contains code under two licenses:
|
|
384
|
+
This project is a spin-off of [AutoGen](https://github.com/microsoft/autogen) and contains code under two licenses:
|
|
384
385
|
|
|
385
386
|
- 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.
|
|
386
387
|
|
|
@@ -33,6 +33,7 @@ autogen/agentchat/utils.py
|
|
|
33
33
|
autogen/agentchat/contrib/__init__.py
|
|
34
34
|
autogen/agentchat/contrib/agent_builder.py
|
|
35
35
|
autogen/agentchat/contrib/agent_optimizer.py
|
|
36
|
+
autogen/agentchat/contrib/captainagent.py
|
|
36
37
|
autogen/agentchat/contrib/gpt_assistant_agent.py
|
|
37
38
|
autogen/agentchat/contrib/img_utils.py
|
|
38
39
|
autogen/agentchat/contrib/llamaindex_conversable_agent.py
|
|
@@ -43,7 +44,9 @@ autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py
|
|
|
43
44
|
autogen/agentchat/contrib/retrieve_assistant_agent.py
|
|
44
45
|
autogen/agentchat/contrib/retrieve_user_proxy_agent.py
|
|
45
46
|
autogen/agentchat/contrib/society_of_mind_agent.py
|
|
47
|
+
autogen/agentchat/contrib/swarm_agent.py
|
|
46
48
|
autogen/agentchat/contrib/text_analyzer_agent.py
|
|
49
|
+
autogen/agentchat/contrib/tool_retriever.py
|
|
47
50
|
autogen/agentchat/contrib/web_surfer.py
|
|
48
51
|
autogen/agentchat/contrib/capabilities/__init__.py
|
|
49
52
|
autogen/agentchat/contrib/capabilities/agent_capability.py
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
diskcache
|
|
2
2
|
docker
|
|
3
3
|
flaml
|
|
4
|
-
numpy<2,>=1.17.0
|
|
5
4
|
openai>=1.3
|
|
6
5
|
packaging
|
|
7
6
|
pydantic!=2.6.0,<3,>=1.10
|
|
@@ -9,6 +8,12 @@ python-dotenv
|
|
|
9
8
|
termcolor
|
|
10
9
|
tiktoken
|
|
11
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
|
+
|
|
12
17
|
[anthropic]
|
|
13
18
|
anthropic>=0.23.1
|
|
14
19
|
|
|
@@ -24,6 +29,13 @@ boto3>=1.34.149
|
|
|
24
29
|
[blendsearch]
|
|
25
30
|
flaml[blendsearch]
|
|
26
31
|
|
|
32
|
+
[captainagent]
|
|
33
|
+
chromadb
|
|
34
|
+
huggingface-hub
|
|
35
|
+
pandas
|
|
36
|
+
pysqlite3
|
|
37
|
+
sentence-transformers
|
|
38
|
+
|
|
27
39
|
[cerebras]
|
|
28
40
|
cerebras_cloud_sdk>=1.0.0
|
|
29
41
|
|
|
@@ -7,12 +7,22 @@
|
|
|
7
7
|
from .agent import Agent
|
|
8
8
|
from .assistant_agent import AssistantAgent
|
|
9
9
|
from .chat import ChatResult, initiate_chats
|
|
10
|
+
|
|
11
|
+
# Imported last to avoid circular imports
|
|
12
|
+
from .contrib.swarm_agent import (
|
|
13
|
+
AFTER_WORK,
|
|
14
|
+
ON_CONDITION,
|
|
15
|
+
AfterWorkOption,
|
|
16
|
+
SwarmAgent,
|
|
17
|
+
SwarmResult,
|
|
18
|
+
initiate_swarm_chat,
|
|
19
|
+
)
|
|
10
20
|
from .conversable_agent import ConversableAgent, register_function
|
|
11
21
|
from .groupchat import GroupChat, GroupChatManager
|
|
12
22
|
from .user_proxy_agent import UserProxyAgent
|
|
13
23
|
from .utils import gather_usage_summary
|
|
14
24
|
|
|
15
|
-
__all__ =
|
|
25
|
+
__all__ = [
|
|
16
26
|
"Agent",
|
|
17
27
|
"ConversableAgent",
|
|
18
28
|
"AssistantAgent",
|
|
@@ -23,4 +33,10 @@ __all__ = (
|
|
|
23
33
|
"initiate_chats",
|
|
24
34
|
"gather_usage_summary",
|
|
25
35
|
"ChatResult",
|
|
26
|
-
|
|
36
|
+
"initiate_swarm_chat",
|
|
37
|
+
"SwarmAgent",
|
|
38
|
+
"SwarmResult",
|
|
39
|
+
"ON_CONDITION",
|
|
40
|
+
"AFTER_WORK",
|
|
41
|
+
"AfterWorkOption",
|
|
42
|
+
]
|
|
@@ -203,7 +203,9 @@ Match roles in the role set to each expert in expert set.
|
|
|
203
203
|
builder_filter_dict.update({"model": builder_model})
|
|
204
204
|
if len(builder_model_tags) != 0:
|
|
205
205
|
builder_filter_dict.update({"tags": builder_model_tags})
|
|
206
|
-
builder_config_list = autogen.config_list_from_json(
|
|
206
|
+
builder_config_list = autogen.config_list_from_json(
|
|
207
|
+
config_file_or_env, file_location=config_file_location, filter_dict=builder_filter_dict
|
|
208
|
+
)
|
|
207
209
|
if len(builder_config_list) == 0:
|
|
208
210
|
raise RuntimeError(
|
|
209
211
|
f"Fail to initialize build manager: {builder_model}{builder_model_tags} does not exist in {config_file_or_env}. "
|
|
@@ -267,7 +269,7 @@ Match roles in the role set to each expert in expert set.
|
|
|
267
269
|
description = agent_config["description"]
|
|
268
270
|
|
|
269
271
|
# Path to the customize **ConversableAgent** class.
|
|
270
|
-
|
|
272
|
+
agent_path = agent_config.get("agent_path", None)
|
|
271
273
|
filter_dict = {}
|
|
272
274
|
if len(model_name_or_hf_repo) > 0:
|
|
273
275
|
filter_dict.update({"model": model_name_or_hf_repo})
|
|
@@ -302,8 +304,8 @@ Match roles in the role set to each expert in expert set.
|
|
|
302
304
|
)
|
|
303
305
|
|
|
304
306
|
model_class = autogen.AssistantAgent
|
|
305
|
-
if
|
|
306
|
-
module_path, model_class_name =
|
|
307
|
+
if agent_path:
|
|
308
|
+
module_path, model_class_name = agent_path.replace("/", ".").rsplit(".", 1)
|
|
307
309
|
module = importlib.import_module(module_path)
|
|
308
310
|
model_class = getattr(module, model_class_name)
|
|
309
311
|
if not issubclass(model_class, autogen.ConversableAgent):
|
|
@@ -313,7 +315,7 @@ Match roles in the role set to each expert in expert set.
|
|
|
313
315
|
additional_config = {
|
|
314
316
|
k: v
|
|
315
317
|
for k, v in agent_config.items()
|
|
316
|
-
if k not in ["model", "name", "system_message", "description", "
|
|
318
|
+
if k not in ["model", "name", "system_message", "description", "agent_path", "tags"]
|
|
317
319
|
}
|
|
318
320
|
agent = model_class(
|
|
319
321
|
name=agent_name, llm_config=current_config.copy(), description=description, **additional_config
|