Skip to content

Commit 02b3f4f

Browse files
committed
render notebooks
1 parent 5db340e commit 02b3f4f

26 files changed

+176
-125
lines changed

notebook/agentchat_cost_token_tracking.ipynb

+6-11
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"<a href=\"https://colab.research.google.com/github/microsoft/autogen/blob/main/notebook/oai_client_cost.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
8-
]
9-
},
10-
{
11-
"cell_type": "markdown",
12-
"metadata": {},
13-
"source": [
14-
"Copyright (c) Microsoft Corporation. All rights reserved. \n",
15-
"\n",
16-
"Licensed under the MIT License.\n",
17-
"\n",
187
"# Usage tracking with AutoGen\n",
198
"## 1. Use AutoGen's OpenAIWrapper for cost estimation\n",
209
"The `OpenAIWrapper` from `autogen` tracks token counts and costs of your API calls. Use the `create()` method to initiate requests and `print_usage_summary()` to retrieve a detailed usage report, including total cost and token usage for both cached and actual requests.\n",
@@ -539,6 +528,12 @@
539528
}
540529
],
541530
"metadata": {
531+
"front_matter": {
532+
"description": "cost calculation",
533+
"tags": [
534+
"cost"
535+
]
536+
},
542537
"kernelspec": {
543538
"display_name": "msft",
544539
"language": "python",

notebook/agentchat_dalle_and_gpt4v.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,13 @@
620620
}
621621
],
622622
"metadata": {
623+
"front_matter": {
624+
"description": "Multimodal agent chat with DALL-E and GPT-4v.",
625+
"tags": [
626+
"multimodal",
627+
"gpt-4v"
628+
]
629+
},
623630
"kernelspec": {
624631
"display_name": "Python 3 (ipykernel)",
625632
"language": "python",

notebook/agentchat_function_call_code_writing.ipynb

+1-2
Original file line numberDiff line numberDiff line change
@@ -983,9 +983,8 @@
983983
"front_matter": {
984984
"description": "Equip your agent with functions that can efficiently implement features into your software application.",
985985
"tags": [
986-
"function call",
987986
"code generation",
988-
"tool use",
987+
"tool/function",
989988
"software engineering"
990989
]
991990
},

notebook/agentchat_guidance.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,13 @@
303303
}
304304
],
305305
"metadata": {
306+
"front_matter": {
307+
"description": "Constrained responses via guidance.",
308+
"tags": [
309+
"guidance",
310+
"JSON"
311+
]
312+
},
306313
"kernelspec": {
307314
"display_name": "Python 3",
308315
"language": "python",

notebook/agentchat_human_feedback.ipynb

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"attachments": {},
5-
"cell_type": "markdown",
6-
"metadata": {},
7-
"source": [
8-
"<a href=\"https://colab.research.google.com/github/microsoft/autogen/blob/main/notebook/agentchat_human_feedback.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
9-
]
10-
},
113
{
124
"attachments": {},
135
"cell_type": "markdown",
@@ -377,6 +369,13 @@
377369
}
378370
],
379371
"metadata": {
372+
"front_matter": {
373+
"description": "Code generation, execution, debugging and human feedback.",
374+
"tags": [
375+
"human",
376+
"code generation"
377+
]
378+
},
380379
"kernelspec": {
381380
"display_name": "Python 3",
382381
"language": "python",

notebook/agentchat_inception_function.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,13 @@
307307
}
308308
],
309309
"metadata": {
310+
"front_matter": {
311+
"description": "Function Inception: Enable AutoGen agents to update/remove functions during conversations.",
312+
"tags": [
313+
"function inception",
314+
"tool/function"
315+
]
316+
},
310317
"kernelspec": {
311318
"display_name": "Python 3 (ipykernel)",
312319
"language": "python",

notebook/agentchat_langchain.ipynb

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"attachments": {},
5-
"cell_type": "markdown",
6-
"id": "ae1f50ec",
7-
"metadata": {
8-
"id": "ae1f50ec"
9-
},
10-
"source": [
11-
"<a href=\"https://colab.research.google.com/github/microsoft/autogen/blob/main/notebook/agentchat_langchain.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
12-
]
13-
},
143
{
154
"attachments": {},
165
"cell_type": "markdown",
@@ -688,6 +677,13 @@
688677
}
689678
],
690679
"metadata": {
680+
"front_matter": {
681+
"description": "Use Langchain tools.",
682+
"tags": [
683+
"langchain",
684+
"tool/function"
685+
]
686+
},
691687
"colab": {
692688
"provenance": []
693689
},

notebook/agentchat_lmm_gpt-4v.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@
11381138
],
11391139
"metadata": {
11401140
"front_matter": {
1141-
"description": "In AutoGen, leveraging multimodal models can be done through two different methodologies: MultimodalConversableAgent and VisionCapability.",
1141+
"description": "Leveraging multimodal models through two different methodologies: MultimodalConversableAgent and VisionCapability.",
11421142
"tags": [
11431143
"multimodal",
11441144
"gpt-4v"

notebook/agentchat_lmm_llava.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,13 @@
859859
}
860860
],
861861
"metadata": {
862+
"front_matter": {
863+
"description": "Leveraging multimodal models like llava.",
864+
"tags": [
865+
"multimodal",
866+
"llava"
867+
]
868+
},
862869
"kernelspec": {
863870
"display_name": "Python 3 (ipykernel)",
864871
"language": "python",

notebook/agentchat_oai_assistant_function_call.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
"description": "This Jupyter Notebook demonstrates how to leverage OSS Insight (Open Source Software Insight) for advanced GitHub data analysis by defining `Function calls` in AutoGen for the OpenAI Assistant.",
279279
"tags": [
280280
"OpenAI Assistant",
281-
"function call"
281+
"function/tool"
282282
]
283283
},
284284
"kernelspec": {

notebook/agentchat_oai_assistant_groupchat.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
],
483483
"metadata": {
484484
"front_matter": {
485-
"description": "This Jupyter Notebook demonstrates how to use the GPTAssistantAgent in AutoGen's group chat mode, enabling collaborative task performance through automated chat with agents powered by LLMs, tools, or humans.",
485+
"description": "Use GPTAssistantAgent in group chat.",
486486
"tags": [
487487
"OpenAI Assistant",
488488
"group chat"

notebook/agentchat_oai_assistant_retrieval.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@
112112
}
113113
],
114114
"metadata": {
115+
"front_matter": {
116+
"description": "OpenAI Assistant with retrieval augmentation.",
117+
"tags": [
118+
"RAG",
119+
"OpenAI Assistant"
120+
]
121+
},
115122
"kernelspec": {
116123
"display_name": "Python 3",
117124
"language": "python",

notebook/agentchat_oai_assistant_twoagents_basic.ipynb

+6
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@
185185
}
186186
],
187187
"metadata": {
188+
"front_matter": {
189+
"description": "Two-agent chat with OpenAI assistants.",
190+
"tags": [
191+
"OpenAI Assistant"
192+
]
193+
},
188194
"kernelspec": {
189195
"display_name": "Python 3",
190196
"language": "python",

notebook/agentchat_planning.ipynb

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"attachments": {},
5-
"cell_type": "markdown",
6-
"metadata": {},
7-
"source": [
8-
"<a href=\"https://colab.research.google.com/github/microsoft/autogen/blob/main/notebook/agentchat_planning.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
9-
]
10-
},
113
{
124
"attachments": {},
135
"cell_type": "markdown",
@@ -431,6 +423,13 @@
431423
}
432424
],
433425
"metadata": {
426+
"front_matter": {
427+
"description": "Use planning agent in a function call.",
428+
"tags": [
429+
"planning",
430+
"tool/function"
431+
]
432+
},
434433
"kernelspec": {
435434
"display_name": "Python 3",
436435
"language": "python",

notebook/agentchat_sql_spider.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,13 @@
294294
}
295295
],
296296
"metadata": {
297+
"front_matter": {
298+
"description": "Natural language text to SQL query using the Spider text-to-SQL benchmark.",
299+
"tags": [
300+
"SQL",
301+
"tool/function"
302+
]
303+
},
297304
"kernelspec": {
298305
"display_name": ".venv",
299306
"language": "python",

notebook/agentchat_stream.ipynb

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"attachments": {},
5-
"cell_type": "markdown",
6-
"metadata": {},
7-
"source": [
8-
"<a href=\"https://colab.research.google.com/github/microsoft/autogen/blob/main/notebook/agentchat_stream.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
9-
]
10-
},
113
{
124
"attachments": {},
135
"cell_type": "markdown",
@@ -370,6 +362,14 @@
370362
}
371363
],
372364
"metadata": {
365+
"front_matter": {
366+
"description": "Automated continual learning from new data.",
367+
"tags": [
368+
"streaming",
369+
"async",
370+
"learning"
371+
]
372+
},
373373
"kernelspec": {
374374
"display_name": "Python 3",
375375
"language": "python",

notebook/agentchat_surfer.ipynb

+8-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"\n",
4040
"It first looks for environment variable \"OAI_CONFIG_LIST\" which needs to be a valid json string. If that variable is not found, it then looks for a json file named \"OAI_CONFIG_LIST\". It filters the configs by models (you can filter by other keys as well).\n",
4141
"\n",
42-
"The WebSurferAgent uses a combination of models. GPT-4 and GPT-3.5-turbo-16 are recommended.\n",
42+
"The WebSurferAgent uses a combination of models. GPT-4 and GPT-3.5-turbo-16k are recommended.\n",
4343
"\n",
4444
"Your json config should look something like the following:\n",
4545
"```json\n",
@@ -604,6 +604,13 @@
604604
}
605605
],
606606
"metadata": {
607+
"front_matter": {
608+
"description": "Browse the web with agents.",
609+
"tags": [
610+
"web",
611+
"tool/function"
612+
]
613+
},
607614
"kernelspec": {
608615
"display_name": "Python 3 (ipykernel)",
609616
"language": "python",

notebook/agentchat_teachable_oai_assistants.ipynb

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"attachments": {},
5-
"cell_type": "markdown",
6-
"metadata": {},
7-
"source": [
8-
"<a href=\"https://colab.research.google.com/github/microsoft/autogen/blob/main/notebook/agentchat_teachability.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
9-
]
10-
},
113
{
124
"attachments": {},
135
"cell_type": "markdown",
@@ -1127,6 +1119,13 @@
11271119
}
11281120
],
11291121
"metadata": {
1122+
"front_matter": {
1123+
"description": "Teach OpenAI assistants.",
1124+
"tags": [
1125+
"teaching",
1126+
"OpenAI assistant"
1127+
]
1128+
},
11301129
"kernelspec": {
11311130
"display_name": "flaml",
11321131
"language": "python",

notebook/agentchat_two_users.ipynb

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"attachments": {},
5-
"cell_type": "markdown",
6-
"metadata": {},
7-
"source": [
8-
"<a href=\"https://colab.research.google.com/github/microsoft/autogen/blob/main/notebook/agentchat_two_users.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
9-
]
10-
},
113
{
124
"attachments": {},
135
"cell_type": "markdown",
@@ -493,6 +485,13 @@
493485
}
494486
],
495487
"metadata": {
488+
"front_matter": {
489+
"description": "Involve multiple human users via function calls and nested chat.",
490+
"tags": [
491+
"human",
492+
"tool/function"
493+
]
494+
},
496495
"kernelspec": {
497496
"display_name": "Python 3",
498497
"language": "python",

notebook/agentchat_web_info.ipynb

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"attachments": {},
5-
"cell_type": "markdown",
6-
"metadata": {},
7-
"source": [
8-
"<a href=\"https://colab.research.google.com/github/microsoft/autogen/blob/main/notebook/agentchat_web_info.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
9-
]
10-
},
113
{
124
"attachments": {},
135
"cell_type": "markdown",
@@ -592,6 +584,13 @@
592584
}
593585
],
594586
"metadata": {
587+
"front_matter": {
588+
"description": "Solve tasks requiring web info.",
589+
"tags": [
590+
"web",
591+
"code generation"
592+
]
593+
},
595594
"kernelspec": {
596595
"display_name": "Python 3",
597596
"language": "python",

0 commit comments

Comments
 (0)