Skip to content

A programming framework for agentic AI

docs: Clarify missing dependencies in documentation (fix #6076) (#6406)

Mars Wang998840f7e0c9
diff --git a/python/samples/agentchat_chainlit/model_config.yaml b/python/samples/agentchat_chainlit/model_config.yaml
index 04caf2b48..a98e2d2b1 100644
--- a/python/samples/agentchat_chainlit/model_config.yaml
+++ b/python/samples/agentchat_chainlit/model_config.yaml
@@ -2,3 +2,4 @@
provider: autogen_ext.models.openai.OpenAIChatCompletionClient
config:
model: gpt-4o
+ api_key: REPLACE_WITH_YOUR_API_KEY
diff --git a/python/samples/agentchat_chess_game/README.md b/python/samples/agentchat_chess_game/README.md
index 97196b5a8..769e54837 100644
--- a/python/samples/agentchat_chess_game/README.md
+++ b/python/samples/agentchat_chess_game/README.md
@@ -18,6 +18,12 @@ pip install "autogen-ext[openai]"
# pip install "autogen-ext[openai,azure]" for Azure OpenAI models
```
+To run this sample, you will need to install the following packages:
+
+```shell
+pip install -U autogen-agentchat pyyaml
+```
+
Create a new file named `model_config.yaml` in the the same directory as the script
to configure the model you want to use.
diff --git a/python/samples/agentchat_fastapi/README.md b/python/samples/agentchat_fastapi/README.md
index b7ba4012e..bbbea2716 100644
--- a/python/samples/agentchat_fastapi/README.md
+++ b/python/samples/agentchat_fastapi/README.md
@@ -17,7 +17,7 @@ You will be using the following features of AgentChat:
Install the required packages with OpenAI support:
```bash
-pip install -U "autogen-ext[openai]" "fastapi" "uvicorn" "PyYAML"
+pip install -U "autogen-agentchat" "autogen-ext[openai]" "fastapi" "uvicorn[standard]" "PyYAML"
```
To use models other than OpenAI, see the [Models](https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/tutorial/models.html) documentation.
diff --git a/python/samples/agentchat_graphrag/requirements.txt b/python/samples/agentchat_graphrag/requirements.txt
index 9322e4d25..b8549693f 100644
--- a/python/samples/agentchat_graphrag/requirements.txt
+++ b/python/samples/agentchat_graphrag/requirements.txt
@@ -1,2 +1,3 @@
-autogen-agentchat>=0.4.0,<0.5
-autogen-ext[graphrag,openai,azure]>=0.4.0,<0.5
\ No newline at end of file
+autogen-agentchat
+autogen-ext
+pyyaml
\ No newline at end of file
diff --git a/python/samples/core_async_human_in_the_loop/README.md b/python/samples/core_async_human_in_the_loop/README.md
index f97942a74..4eb971b9d 100644
--- a/python/samples/core_async_human_in_the_loop/README.md
+++ b/python/samples/core_async_human_in_the_loop/README.md
@@ -7,7 +7,7 @@ An example showing human-in-the-loop which waits for human input before making t
First, you need a shell with AutoGen core and required dependencies installed.
```bash
-pip install "autogen-ext[openai,azure]"
+pip install "autogen-ext[openai,azure]" "pyyaml"
```
## Model Configuration
diff --git a/python/samples/core_chess_game/README.md b/python/samples/core_chess_game/README.md
index 487c205a4..faeac476c 100644
--- a/python/samples/core_chess_game/README.md
+++ b/python/samples/core_chess_game/README.md
@@ -7,7 +7,7 @@ An example with two chess player agents that executes its own tools to demonstra
First, you need a shell with AutoGen core and required dependencies installed.
```bash
-pip install "autogen-ext[openai,azure]" "chess"
+pip install "autogen-ext[openai,azure]" "chess" "pyyaml"
```
## Model Configuration
diff --git a/python/samples/core_distributed-group-chat/README.md b/python/samples/core_distributed-group-chat/README.md
index a5f52a64d..60ab22edf 100644
--- a/python/samples/core_distributed-group-chat/README.md
+++ b/python/samples/core_distributed-group-chat/README.md
@@ -10,7 +10,7 @@ This example runs a gRPC server using [GrpcWorkerAgentRuntimeHost](../../src/aut
2. Install dependencies.
```bash
-pip install "autogen-ext[openai,azure,chainlit,rich,pyyaml]"
+pip install "autogen-ext[openai,azure,chainlit,rich]" "pyyaml"
```
### General Configuration