You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update chat_with_teachable_agent.py to v2.
* Update agentchat_teachability.ipynb to v2.
* Add test of teachability accuracy.
* Update installation instructions.
* Add to contrib tests.
* pre-commit fixes
* Apply reviewer suggestions to test workflows.
Copy file name to clipboardExpand all lines: notebook/agentchat_teachability.ipynb
+7-7
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
"\n",
22
22
"In making decisions about memo storage and retrieval, `TeachableAgent` calls an instance of `TextAnalyzerAgent` to analyze pieces of text in several different ways. This adds extra LLM calls involving a relatively small number of tokens. These calls can add a few seconds to the time a user waits for a response.\n",
23
23
"\n",
24
-
"This notebook demonstrates how `TeachableAgent` can learn facts, preferences, and skills from users. To chat with `TeachableAgent` yourself, run [chat_with_teachable_agent.py](../test/agentchat/chat_with_teachable_agent.py).\n",
24
+
"This notebook demonstrates how `TeachableAgent` can learn facts, preferences, and skills from users. To chat with `TeachableAgent` yourself, run [chat_with_teachable_agent.py](../test/agentchat/contrib/chat_with_teachable_agent.py).\n",
25
25
"\n",
26
26
"## Requirements\n",
27
27
"\n",
@@ -38,7 +38,7 @@
38
38
"outputs": [],
39
39
"source": [
40
40
"%%capture --no-stderr\n",
41
-
"# %pip install \"pyautogen[teachable]"
41
+
"# %pip install \"pyautogen[teachable]\""
42
42
]
43
43
},
44
44
{
@@ -142,9 +142,9 @@
142
142
"from autogen import UserProxyAgent\n",
143
143
"\n",
144
144
"llm_config = {\n",
145
-
"\"timeout\": 60,\n",
146
145
"\"config_list\": config_list,\n",
147
-
"\"use_cache\": True, # Use False to explore LLM non-determinism.\n",
146
+
"\"timeout\": 60,\n",
147
+
"\"cache_seed\": None, # Use an int to seed the response cache. Use None to disable caching.\n",
148
148
"}\n",
149
149
"\n",
150
150
"teach_config={\n",
@@ -157,6 +157,7 @@
157
157
"try:\n",
158
158
" from termcolor import colored\n",
159
159
"except ImportError:\n",
160
+
"\n",
160
161
" def colored(x, *args, **kwargs):\n",
161
162
" return x\n",
162
163
"\n",
@@ -170,8 +171,7 @@
170
171
" human_input_mode=\"NEVER\",\n",
171
172
" is_termination_msg=lambda x: True if \"TERMINATE\" in x.get(\"content\") else False,\n",
Copy file name to clipboardExpand all lines: website/blog/2023-10-26-TeachableAgent/index.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@ In order to make effective decisions about memo storage and retrieval, `Teachabl
23
23
24
24
AutoGen contains three code examples that use `TeachableAgent`.
25
25
26
-
1. Run [chat_with_teachable_agent.py](https://github.com/microsoft/autogen/blob/main/test/agentchat/chat_with_teachable_agent.py) to converse with `TeachableAgent`.
26
+
1. Run [chat_with_teachable_agent.py](https://github.com/microsoft/autogen/blob/main/test/agentchat/contrib/chat_with_teachable_agent.py) to converse with `TeachableAgent`.
27
27
28
28
2. Use the Jupyter notebook [agentchat_teachability.ipynb](https://github.com/microsoft/autogen/blob/main/notebook/agentchat_teachability.ipynb) to step through examples discussed below.
29
29
30
-
3. Run [test_teachable_agent.py](https://github.com/microsoft/autogen/blob/main/test/agentchat/test_teachable_agent.py) for quick unit testing of `TeachableAgent`.
30
+
3. Run [test_teachable_agent.py](https://github.com/microsoft/autogen/blob/main/test/agentchat/contrib/test_teachable_agent.py) for quick unit testing of `TeachableAgent`.
Copy file name to clipboardExpand all lines: website/docs/Installation.md
+12-1
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ openai v1 is a total rewrite of the library with many breaking changes. For exam
55
55
Therefore, some changes are required for users of `pyautogen<0.2`.
56
56
57
57
-`api_base` -> `base_url`, `request_timeout` -> `timeout` in `llm_config` and `config_list`. `max_retry_period` and `retry_wait_time` are deprecated. `max_retries` can be set for each client.
58
-
- MathChat, TeachableAgent are unsupported until they are tested in future release.
58
+
- MathChat is unsupported until it is tested in future release.
59
59
-`autogen.Completion` and `autogen.ChatCompletion` are deprecated. The essential functionalities are moved to `autogen.OpenAIWrapper`:
60
60
```python
61
61
from autogen import OpenAIWrapper
@@ -118,6 +118,17 @@ Example notebooks:
118
118
[Automated Code Generation and Question Answering with Qdrant based Retrieval Augmented Agents](https://github.com/microsoft/autogen/blob/main/notebook/agentchat_qdrant_RetrieveChat.ipynb)
119
119
120
120
121
+
-#### TeachableAgent
122
+
123
+
To use TeachableAgent, please install AutoGen with the [teachable] option.
124
+
```bash
125
+
pip install "pyautogen[teachable]"
126
+
```
127
+
128
+
Example notebook: [Chatting with TeachableAgent](https://github.com/microsoft/autogen/blob/main/notebook/agentchat_teachability.ipynb)
129
+
130
+
131
+
121
132
-#### Large Multimodal Model (LMM) Agents
122
133
123
134
We offered Multimodal Conversable Agent and LLaVA Agent. Please install with the [lmm] option to use it.
0 commit comments