Skip to content

Commit 6cbe471

Browse files
Merge pull request #12 from red-hat-data-services/dev-update-readmes
docs: update READMEs with proper venv
2 parents d5cecec + 30eff74 commit 6cbe471

5 files changed

Lines changed: 36 additions & 10 deletions

File tree

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ Install UV
7272
```bash
7373
curl -LsSf https://astral.sh/uv/install.sh | sh
7474
```
75-
Create venv and activate
76-
```bash
77-
uv venv --python 3.12
78-
source .venv/bin/activate
79-
```
8075
---
8176

8277
## Next Steps

agents/base/langgraph_react_agent/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ Go to agent dir
5757
cd agents/base/langgraph_react_agent
5858
```
5959

60+
Create and activate a virtual environment (Python 3.12) in this directory using [uv](https://docs.astral.sh/uv/):
61+
```bash
62+
uv venv --python 3.12
63+
source .venv/bin/activate
64+
```
65+
(On Windows: `.venv\Scripts\activate`)
66+
6067
Make scripts executable
6168
```bash
6269
chmod +x init.sh
@@ -108,7 +115,7 @@ llama stack run ../../../run_llama_server.yaml
108115
109116
Run the example:
110117
```bash
111-
uv run agents/base/langgraph_react_agent/examples/execute_ai_service_locally.py
118+
uv run examples/execute_ai_service_locally.py
112119
```
113120

114121
# Deployment on RedHat OpenShift Cluster

agents/base/llamaindex_websearch_agent/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ Go to agent dir
5757
cd agents/base/llamaindex_websearch_agent
5858
```
5959

60+
Create and activate a virtual environment (Python 3.12) in this directory using [uv](https://docs.astral.sh/uv/):
61+
```bash
62+
uv venv --python 3.12
63+
source .venv/bin/activate
64+
```
65+
(On Windows: `.venv\Scripts\activate`)
66+
6067
Make scripts executable
6168
```bash
6269
chmod +x init.sh

agents/base/openai_responses_agent/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
</div>
66

7+
---
78
Agent **without any agentic framework**: uses only the **OpenAI Python client** and **pure Python** (Responses API). No LlamaStack, LangChain, LlamaIndex, etc. Uses `AIAgent` with chat, tools, and Action/Observation loop. Compatible with OpenAI API or any OpenAI-compatible endpoint (e.g. `BASE_URL` override). Python 3.12+.
89

910
---
@@ -74,6 +75,15 @@ Go to agent dir:
7475
cd agents/base/openai_responses_agent
7576
```
7677

78+
Create and activate a virtual environment (Python 3.12) in this directory using [uv](https://docs.astral.sh/uv/):
79+
80+
```bash
81+
uv venv --python 3.12
82+
source .venv/bin/activate
83+
```
84+
85+
(On Windows: `.venv\Scripts\activate`)
86+
7787
Make scripts executable:
7888

7989
```bash
@@ -133,7 +143,7 @@ llama stack run ../../../run_llama_server.yaml
133143
Run the example:
134144

135145
```bash
136-
uv run agents/base/openai_responses_agent/examples/execute_ai_service_locally.py
146+
uv run examples/execute_ai_service_locally.py
137147
```
138148

139149
---

agents/community/langgraph_agentic_rag/README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
</div>
88

99
---
10-
1110
### Preconditions:
1211

1312
- You need to copy/paste .env file and change its values to yours
@@ -83,6 +82,15 @@ Go to agent dir
8382
cd agents/community/langgraph_agentic_rag
8483
```
8584

85+
Create and activate a virtual environment (Python 3.12) in this directory using [uv](https://docs.astral.sh/uv/):
86+
87+
```bash
88+
uv venv --python 3.12
89+
source .venv/bin/activate
90+
```
91+
92+
(On Windows: `.venv\Scripts\activate`)
93+
8694
Make scripts executable
8795

8896
```bash
@@ -160,8 +168,7 @@ This will:
160168
### Run the example:
161169

162170
```bash
163-
cd ..
164-
uv run agents/community/langgraph_agentic_rag/examples/execute_ai_service_locally.py
171+
uv run examples/execute_ai_service_locally.py
165172
```
166173

167174
# Deployment on RedHat OpenShift Cluster

0 commit comments

Comments
 (0)