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
Agent **without any agentic framework**: uses only the **OpenAI Python client** and **pure Python** (Responses API). No LlamaStack, LangChain, LlamaIndex, etc. – to show it can be done without frameworks. 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+.
5
+
</div>
4
6
5
-
# Use Agent Locally
7
+
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+.
6
8
7
-
### Installation
9
+
---
8
10
9
-
```bash
10
-
git clone <repository-url>
11
-
cd Agentic-Starter-Kits
12
-
```
13
-
```bash
14
-
python -m venv .venv
15
-
source .venv/bin/activate # On Windows: .venv\Scripts\activate
16
-
```
11
+
### Preconditions
17
12
18
-
If you want to install Ollama: [Ollama site](https://ollama.com/) or [Brew](https://formulae.brew.sh/formula/ollama#default).
13
+
- Copy/paste the `.env` file and set values for your environment
14
+
- Choose **local** or **RH OpenShift Cluster** and fill the needed values
15
+
- Run `./init.sh` to load values from `.env` into the environment
Edit the `.env` file with your local configuration:
26
+
27
+
```
28
+
BASE_URL=http://localhost:8321
29
+
MODEL_ID=ollama/llama3.2:3b
30
+
API_KEY=not-needed
31
+
CONTAINER_IMAGE=not-needed
32
+
```
29
33
30
-
**Option A – OpenAI API**
34
+
> **Local setup (Ollama):** Port and model name can differ depending on your setup (e.g. Llama Stack on port 8321 vs Ollama on 11434, or a different model ID). Check your running services and `run_llama_server.yaml` (if using Llama Stack) and set `BASE_URL` and `MODEL_ID` accordingly.
31
35
32
-
Create `.env` in the agent directory (or use repo `template.env`):
36
+
Or for **OpenAI API** directly:
33
37
34
-
```env
38
+
```
35
39
BASE_URL=https://api.openai.com/v1
36
40
MODEL_ID=gpt-4o-mini
37
41
API_KEY=sk-...
42
+
CONTAINER_IMAGE=not-needed
38
43
```
39
44
40
-
**Option B – Local OpenAI-compatible endpoint (e.g. Ollama)**
45
+
#### OpenShift Cluster
41
46
42
-
1. Pull model and run Ollama (or another OpenAI-compatible server).
43
-
2. In `.env` set e.g. `BASE_URL=http://localhost:11434/v1`, `MODEL_ID=llama3.2`, `API_KEY=not-needed` (if not required).
47
+
Edit the `.env` file and fill in all required values:
-`CONTAINER_IMAGE` – full image path where the agent container will be pushed and pulled from. The image is built locally, pushed to this registry, and then deployed to OpenShift.
0 commit comments