mirror of https://github.com/microsoft/autogen.git
Improve readability of notebooks (#2200)
* Improve readability * Update context_handling.py update line breaks according to comment of reviewer * Update agentchat_groupchat_finite_state_machine.ipynb corrected sentence according to comment of reviewer * Update autogen/agentchat/contrib/capabilities/context_handling.py Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com> --------- Co-authored-by: Shaokun Zhang <shaokunzhang529@gmail.com> Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
This commit is contained in:
parent
94bff2dae8
commit
918fd6b481
|
@ -35,7 +35,8 @@ class TransformChatHistory:
|
|||
3. Third, it limits the total number of tokens in the chat history
|
||||
|
||||
When 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.
|
||||
"""
|
||||
|
||||
|
|
|
@ -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. "
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue