A programming framework for agentic AI
Improve readability of notebooks (#2200)
Mart918fd6b481b7
diff --git a/autogen/agentchat/contrib/capabilities/context_handling.py b/autogen/agentchat/contrib/capabilities/context_handling.pyindex dcdf30758..173811842 100644--- a/autogen/agentchat/contrib/capabilities/context_handling.py+++ b/autogen/agentchat/contrib/capabilities/context_handling.py@@ -35,7 +35,8 @@ class TransformChatHistory:3. Third, it limits the total number of tokens in the chat historyWhen adding this capability to an agent, the following are modified:- - A hook is added to the hookable method `process_all_messages_before_reply` to transform the received messages for possible truncation.+ - A hook is added to the hookable method `process_all_messages_before_reply` to transform the+ received messages for possible truncation.Not modifying the stored message history."""diff --git a/notebook/agentchat_agentoptimizer.ipynb b/notebook/agentchat_agentoptimizer.ipynbindex b23476cdd..9b45a6c3b 100644--- a/notebook/agentchat_agentoptimizer.ipynb+++ b/notebook/agentchat_agentoptimizer.ipynb@@ -60,7 +60,7 @@"source": ["# MathUserProxy with function_call\n","\n",- "This agent is a customozied MathUserProxy inherits from its [partent class](https://github.com/microsoft/autogen/blob/main/autogen/agentchat/contrib/math_user_proxy_agent.py.).\n",+ "This agent is a customized MathUserProxy inherits from its [partent class](https://github.com/microsoft/autogen/blob/main/autogen/agentchat/contrib/math_user_proxy_agent.py).\n","\n","It supports using both function_call and python to solve math problems.\n"]@@ -265,7 +265,7 @@"\n","MATAH dataset contains 12,500 challenging competition mathematics problems. Each problem in MATH has a full step-by-step solution which can be used to teach models to generate answer derivations and explanations. \n","\n",- "We strctly follow the [train](https://github.com/lifan-yuan/CRAFT/blob/main/tab_and_math/MATH/dataset/train/algebra.jsonl)/[test](https://github.com/lifan-yuan/CRAFT/blob/main/tab_and_math/MATH/dataset/algebra.jsonl) splits of [Craft](https://github.com/lifan-yuan/CRAFT). Please specific your own path to the dataset. Here we sample the first 10 algebra problems as examples. "+ "We strictly follow the [train](https://github.com/lifan-yuan/CRAFT/blob/main/tab_and_math/MATH/dataset/train/algebra.jsonl)/[test](https://github.com/lifan-yuan/CRAFT/blob/main/tab_and_math/MATH/dataset/algebra.jsonl) splits of [Craft](https://github.com/lifan-yuan/CRAFT). Please specific your own path to the dataset. Here we sample the first 10 algebra problems as examples. "]},{diff --git a/notebook/agentchat_groupchat_finite_state_machine.ipynb b/notebook/agentchat_groupchat_finite_state_machine.ipynbindex e24bb5bbb..b5724159e 100644--- a/notebook/agentchat_groupchat_finite_state_machine.ipynb+++ b/notebook/agentchat_groupchat_finite_state_machine.ipynb@@ -91,7 +91,7 @@"## Motivation\n","\n","\n",- "The current GroupChat class allows transition to any agent (without or without the decision of LLM), some use case might demand for more control over transition. A graph is a possible way to control the transition paths, where each node represents an agent and each directed edge represent possible transition path. Let's illustrate the current transition paths for a GroupChat with five agents."+ "The current GroupChat class allows transitioning to any agent (with or without the decision of the LLM), some use cases might demand for more control over transition. A graph is a possible way to control the transition paths, where each node represents an agent and each directed edge represents possible transition paths. Let's illustrate the current transition paths for a GroupChat with five agents."]},{diff --git a/notebook/agentchat_surfer.ipynb b/notebook/agentchat_surfer.ipynbindex dcbe6ee66..b6a8c3327 100644--- a/notebook/agentchat_surfer.ipynb+++ b/notebook/agentchat_surfer.ipynb@@ -152,7 +152,7 @@"metadata": {},"source": ["### Example 1: Search, summarize\n",- "- Search for information aobut Microsoft AutoGen\n",+ "- Search for information about Microsoft AutoGen\n","- Summarize the results\n","- Visit the Getting Started Docs page"]