A programming framework for agentic AI
bump version to 0.2.22 (#2256)
Chi Wangebd0210fa1d1
diff --git a/README.md b/README.mdindex 98aebbf06..bd770ab34 100644--- a/README.md+++ b/README.md@@ -233,7 +233,7 @@ contact [[email protected]](mailto:[email protected]) with any additio## Contributors Wall<a href="https://github.com/microsoft/autogen/graphs/contributors">- <img src="https://contrib.rocks/image?repo=microsoft/autogen&max=200" />+ <img src="https://contrib.rocks/image?repo=microsoft/autogen&max=204" /></a># Legal Noticesdiff --git a/autogen/version.py b/autogen/version.pyindex f28927419..7043c3b4c 100644--- a/autogen/version.py+++ b/autogen/version.py@@ -1 +1 @@-__version__ = "0.2.21"+__version__ = "0.2.22"diff --git a/notebook/agentchat_capability_long_context_handling.ipynb b/notebook/agentchat_capability_long_context_handling.ipynbindex bf2224f5a..0bc1b4ffd 100644--- a/notebook/agentchat_capability_long_context_handling.ipynb+++ b/notebook/agentchat_capability_long_context_handling.ipynb@@ -664,13 +664,6 @@}],"metadata": {- "front_matter": {- "description": "Use the TransformChatHistory capability to handle long contexts",- "tags": [- "long context handling",- "capability"- ]- },"kernelspec": {"display_name": "Python 3","language": "python",diff --git a/notebook/agentchat_compression.ipynb b/notebook/agentchat_compression.ipynbindex afdd20d35..29cc2d9e2 100644--- a/notebook/agentchat_compression.ipynb+++ b/notebook/agentchat_compression.ipynb@@ -853,10 +853,6 @@}],"metadata": {- "front_matter": {- "description": "Learn about the CompressibleAgent",- "tags": []- },"kernelspec": {"display_name": "msft","language": "python",diff --git a/notebook/agentchat_function_call_async.ipynb b/notebook/agentchat_function_call_async.ipynbindex 00e3ee8c7..78a8d1919 100644--- a/notebook/agentchat_function_call_async.ipynb+++ b/notebook/agentchat_function_call_async.ipynb@@ -364,8 +364,8 @@"front_matter": {"description": "Learn how to implement both synchronous and asynchronous function calls using AssistantAgent and UserProxyAgent in AutoGen, with examples of their application in individual and group chat settings for task execution with language models.","tags": [- "code generation","function call",+ "tool use","async"]},diff --git a/notebook/agentchat_function_call_currency_calculator.ipynb b/notebook/agentchat_function_call_currency_calculator.ipynbindex c7ec32ad8..de8247659 100644--- a/notebook/agentchat_function_call_currency_calculator.ipynb+++ b/notebook/agentchat_function_call_currency_calculator.ipynb@@ -6,7 +6,7 @@"id": "ae1f50ec","metadata": {},"source": [- "<a href=\"https://colab.research.google.com/github/microsoft/autogen/blob/main/notebook/agentchat_function_call_currency_calculator.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"+ "# Currency Calculator: Task Solving with Provided Tools as Functions\n"]},{@@ -15,8 +15,6 @@"id": "9a71fa36","metadata": {},"source": [- "# Currency Calculator: Task Solving with Provided Tools as Functions\n",- "\n","AutoGen offers conversable agents powered by LLM, tool, or human, which can be used to perform tasks collectively via automated chat. This framework allows tool use and human participation through multi-agent conversation. Please find documentation about this feature [here](https://microsoft.github.io/autogen/docs/Use-Cases/agent_chat).\n","\n","In this notebook, we demonstrate how to use `AssistantAgent` and `UserProxyAgent` to make function calls with the new feature of OpenAI models (in model version 0613). A specified prompt and function configs must be passed to `AssistantAgent` to initialize the agent. The corresponding functions must be passed to `UserProxyAgent`, which will execute any function calls made by `AssistantAgent`. Besides this requirement of matching descriptions with functions, we recommend checking the system message in the `AssistantAgent` to ensure the instructions align with the function call descriptions.\n",@@ -591,23 +589,30 @@}],"metadata": {- "kernelspec": {- "display_name": "flaml_dev",- "language": "python",- "name": "python3"- },- "language_info": {- "codemirror_mode": {- "name": "ipython",- "version": 3- },- "file_extension": ".py",- "mimetype": "text/x-python",- "name": "python",- "nbconvert_exporter": "python",- "pygments_lexer": "ipython3",- "version": "3.10.13"- }+ "front_matter": {+ "description": "Learn how to register function calls using AssistantAgent and UserProxyAgent in AutoGen.",+ "tags": [+ "function call",+ "tool use"+ ]+ },+ "kernelspec": {+ "display_name": "flaml_dev",+ "language": "python",+ "name": "python3"+ },+ "language_info": {+ "codemirror_mode": {+ "name": "ipython",+ "version": 3+ },+ "file_extension": ".py",+ "mimetype": "text/x-python",+ "name": "python",+ "nbconvert_exporter": "python",+ "pygments_lexer": "ipython3",+ "version": "3.10.13"+ }},"nbformat": 4,"nbformat_minor": 5diff --git a/notebook/agentchat_multi_task_async_chats.ipynb b/notebook/agentchat_multi_task_async_chats.ipynbindex 091e5575a..ad75618a5 100644--- a/notebook/agentchat_multi_task_async_chats.ipynb+++ b/notebook/agentchat_multi_task_async_chats.ipynb@@ -1737,7 +1737,8 @@"front_matter": {"description": "Use conversational agents to solve a set of tasks with a sequence of async chats.","tags": [- "sequential chat"+ "orchestration",+ "sequential chats"]},"kernelspec": {diff --git a/notebook/agentchat_multi_task_chats.ipynb b/notebook/agentchat_multi_task_chats.ipynbindex e640e15ff..2c200f523 100644--- a/notebook/agentchat_multi_task_chats.ipynb+++ b/notebook/agentchat_multi_task_chats.ipynb@@ -1533,7 +1533,8 @@"front_matter": {"description": "Use conversational agents to solve a set of tasks with a sequence of chats.","tags": [- "sequential chat"+ "orchestration",+ "sequential chats"]},"kernelspec": {diff --git a/notebook/agentchat_nested_chats_chess.ipynb b/notebook/agentchat_nested_chats_chess.ipynbindex 1cfa4ba95..9dbf34b8d 100644--- a/notebook/agentchat_nested_chats_chess.ipynb+++ b/notebook/agentchat_nested_chats_chess.ipynb@@ -1129,7 +1129,7 @@"source": ["In the output above, you can see \"Start a new chat\" is displayed\n","whenever a new nested chat is started between the board proxy agent and a player agent.\n",- "The \"carryover\" empty as it is a new chat in the sequence."+ "The \"carryover\" is empty as it is a new chat in the sequence."]}],@@ -1137,7 +1137,9 @@"front_matter": {"description": "LLM-backed agents playing chess with each other using nested chats.","tags": [- "nested chat"+ "nested chat",+ "tool use",+ "orchestration"]},"kernelspec": {diff --git a/notebook/agentchat_nested_sequential_chats.ipynb b/notebook/agentchat_nested_sequential_chats.ipynbindex 1b6ff0ea6..4d013218d 100644--- a/notebook/agentchat_nested_sequential_chats.ipynb+++ b/notebook/agentchat_nested_sequential_chats.ipynb@@ -811,7 +811,7 @@"front_matter": {"description": "Solve complex tasks with one or more sequence chats nested as inner monologue.","tags": [- "nested chat", "sequential chat"+ "nested chat", "sequential chats", "orchestration"]},"kernelspec": {diff --git a/notebook/agentchat_nestedchat.ipynb b/notebook/agentchat_nestedchat.ipynbindex 5448d4a31..3cd4d0a99 100644--- a/notebook/agentchat_nestedchat.ipynb+++ b/notebook/agentchat_nestedchat.ipynb@@ -664,7 +664,8 @@"front_matter": {"description": "Solve complex tasks with a chat nested as inner monologue.","tags": [- "nested chat"+ "nested chat",+ "orchestration"]},"kernelspec": {diff --git a/notebook/agentchat_nestedchat_optiguide.ipynb b/notebook/agentchat_nestedchat_optiguide.ipynbindex 11441d3e9..c1648bce6 100644--- a/notebook/agentchat_nestedchat_optiguide.ipynb+++ b/notebook/agentchat_nestedchat_optiguide.ipynb@@ -1122,7 +1122,9 @@"front_matter": {"description": "This is a nested chat re-implementation of OptiGuide which is an LLM-based supply chain optimization framework.","tags": [- "nested chat"+ "nested chat",+ "hierarchical chat",+ "orchestration"]},"kernelspec": {diff --git a/notebook/agentchat_society_of_mind.ipynb b/notebook/agentchat_society_of_mind.ipynbindex 9a456ccda..79e5990a2 100644--- a/notebook/agentchat_society_of_mind.ipynb+++ b/notebook/agentchat_society_of_mind.ipynb@@ -357,7 +357,7 @@],"metadata": {"front_matter": {- "tags": ["orchestration"],+ "tags": ["orchestration", "nested chat"],"description": "Explore the demonstration of the SocietyOfMindAgent in the AutoGen library, which runs a group chat as an internal monologue, but appears to the external world as a single agent, offering a structured way to manage complex interactions among multiple agents and handle issues such as extracting responses from complex dialogues and dealing with context window constraints."},"kernelspec": {diff --git a/notebook/agentchats_sequential_chats.ipynb b/notebook/agentchats_sequential_chats.ipynbindex 0dd9fa941..cffcbfdef 100644--- a/notebook/agentchats_sequential_chats.ipynb+++ b/notebook/agentchats_sequential_chats.ipynb@@ -1128,6 +1128,7 @@"front_matter": {"description": "Use AutoGen to solve a set of tasks with a sequence of chats.","tags": [+ "orchestration","sequential chats"]},diff --git a/test/agentchat/test_agent_logging.py b/test/agentchat/test_agent_logging.pyindex 870704db3..9f7835154 100644--- a/test/agentchat/test_agent_logging.py+++ b/test/agentchat/test_agent_logging.py@@ -103,10 +103,13 @@ def test_two_agents_logging(db_connection):first_request_message = request["messages"][0]["content"]first_request_role = request["messages"][0]["role"]- if idx == 0 or idx == 2:+ # some config may fail+ if idx == 0 or idx == len(rows) - 1:assert first_request_message == TEACHER_MESSAGE- elif idx == 1:+ elif idx == 1 and len(rows) == 3:assert first_request_message == STUDENT_MESSAGE+ else:+ assert first_request_message in (TEACHER_MESSAGE, STUDENT_MESSAGE)assert first_request_role == "system"response = json.loads(row["response"])diff --git a/website/docs/Examples.md b/website/docs/Examples.mdindex 3da637d85..837376898 100644--- a/website/docs/Examples.md+++ b/website/docs/Examples.md@@ -45,7 +45,7 @@ Links to notebook examples:### Tool Use- **Web Search**: Solve Tasks Requiring Web Info - [View Notebook](https://github.com/microsoft/autogen/blob/main/notebook/agentchat_web_info.ipynb)-- Use Provided Tools as Functions - [View Notebook](https://github.com/microsoft/autogen/blob/main/notebook/agentchat_function_call.ipynb)+- Use Provided Tools as Functions - [View Notebook](/docs/notebooks/agentchat_function_call_currency_calculator)- Use Tools via Sync and Async Function Calling - [View Notebook](/docs/notebooks/agentchat_function_call_async)- Task Solving with Langchain Provided Tools as Functions - [View Notebook](https://github.com/microsoft/autogen/blob/main/notebook/agentchat_langchain.ipynb)- **RAG**: Group Chat with Retrieval Augmented Generation (with 5 group member agents and 1 manager agent) - [View Notebook](/docs/notebooks/agentchat_groupchat_RAG)@@ -87,7 +87,7 @@ Links to notebook examples:### Long Context Handling<!-- - Conversations with Chat History Compression Enabled - [View Notebook](https://github.com/microsoft/autogen/blob/main/notebook/agentchat_compression.ipynb) -->-- Long Context Handling as A Capability - [View Notebook](/docs/notebooks/agentchat_capability_long_context_handling)+- Long Context Handling as A Capability - [View Notebook](/docs/notebooks/agentchat_transform_messages)### Evaluation and Assessmentdiff --git a/website/docs/tutorial/what-next.md b/website/docs/tutorial/what-next.mdindex 42fb124e4..d9a0062e8 100644--- a/website/docs/tutorial/what-next.md+++ b/website/docs/tutorial/what-next.md@@ -25,7 +25,7 @@ topics:## Dig Deeper-- Read the [topic docs](/docs/topics) to learn more+- Read the [user guide](/docs/topics) to learn more- Read the examples and guides in the [notebooks section](/docs/notebooks)- Check [research](/docs/Research) and [blog](/blog)