Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions .bob/01-project-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@ Collections of tests/conversations that can be executed together:
- **Language**: TypeScript
- **Role**: Job poller and external API executor

### Agent Service (Python)

- **Framework**: FastAPI
- **Language**: Python
- **Role**: CrewAI execution (currently out of date)
- **Status**: Present in the repo but not the primary maintained execution path

### Shared Packages

- **@ibm-vibe/types** - Shared TypeScript types
Expand All @@ -107,7 +100,6 @@ ai-agent-testing-suite/
├── frontend/ # Next.js UI
├── backend/ # Express API server
├── agent-service-api/ # Job poller & external API executor
├── agent-service/ # Python FastAPI (CrewAI)
├── packages/ # Shared packages
│ ├── types/ # Shared TypeScript types
│ ├── config/ # Configuration management
Expand Down Expand Up @@ -144,7 +136,6 @@ ai-agent-testing-suite/
- Run conversations/tests individually or in batches
- Execute with different agent versions
- Route `external_api` jobs through `agent-service-api`
- Keep legacy CrewAI compatibility through the older Python service path
- Use a backend job queue for asynchronous execution

### Results Analysis
Expand All @@ -166,9 +157,8 @@ The project is currently in a **legacy-to-conversation migration phase**:

## Port Configuration

| Service | Default Port | Role |
| ---------------------- | -----------: | -------------------------------------------- |
| Frontend | 3000 | UI for conversations, sessions, and analysis |
| Backend | 5100 | System API, storage, job orchestration |
| Agent Service API | 5003 | External API executor and backend job poller |
| Agent Service (Python) | 5002 | CrewAI execution service |
| Service | Default Port | Role |
| ----------------- | -----------: | -------------------------------------------- |
| Frontend | 3000 | UI for conversations, sessions, and analysis |
| Backend | 5100 | System API, storage, job orchestration |
| Agent Service API | 5003 | External API executor and backend job poller |
24 changes: 2 additions & 22 deletions .bob/02-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## High-Level Architecture

The IBM VIBE system consists of a Next.js frontend, an Express/SQLite backend, a TypeScript external API executor, and an older Python CrewAI service. The TypeScript path is the primary maintained execution path.
The IBM VIBE system consists of a Next.js frontend, an Express/SQLite backend, and a TypeScript external API executor.

```
┌─────────────────────────────────────────────────────────────┐
Expand All @@ -20,10 +20,6 @@ The IBM VIBE system consists of a Next.js frontend, an Express/SQLite backend, a
│ │Database │ │
│ └─────────┘ │
│ │
│ Optional: ┌──────────────────┐ │
│ │ Agent Service │ │
│ │ (Python/CrewAI) │ │
│ └──────────────────┘ │
└─────────────────────────────────────────────────────────────┘
```

Expand Down Expand Up @@ -151,22 +147,7 @@ agent-service-api/src/
└── routes/ # Health check endpoints
```

### 4. Agent Service (Python) (`agent-service/`)

**Technology**: FastAPI, Python, CrewAI

**Status**: Present in the repo but not the primary maintained execution path

**Responsibilities**:

- Execute CrewAI agent workflows
- Support for various LLM providers
- Detailed logging of intermediate steps
- Metrics collection

**Note**: The TypeScript path (backend + agent-service-api) is the primary maintained execution path.

### 5. Shared Packages (`packages/`)
### 4. Shared Packages (`packages/`)

**@ibm-vibe/types**:

Expand Down Expand Up @@ -252,7 +233,6 @@ Meanwhile:
localhost:3000 → Frontend (Next.js dev server)
localhost:5100 → Backend (ts-node-dev)
localhost:5003 → Agent Service API (ts-node-dev)
localhost:5002 → Agent Service Python (optional)
```

### Production Considerations
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,6 @@ jobs:
- name: Run TypeScript tests
run: npm run test:ts

python-quality-gates:
name: Python quality gates
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Python dependencies
run: python -m pip install --upgrade pip && pip install -r agent-service/requirements.txt

- name: Run Python tests
run: pytest agent-service/tests

dco-check:
if: ${{ github.event_name == 'pull_request' }}
name: DCO signoff check
Expand Down
34 changes: 4 additions & 30 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ This project is organized as a monorepo with the following components:
ai-agent-testing-suite/
├── frontend/ # Next.js user interface
├── backend/ # Express.js API server
├── agent-service/ # Python FastAPI service for CrewAI agents
├── agent-service-api/ # TypeScript Express communication layer
└── docs/ # Documentation and diagrams
```
Expand All @@ -23,7 +22,7 @@ ai-agent-testing-suite/

Mermaid source: [`docs/diagrams/high-level-component-diagram.mermaid`](docs/diagrams/high-level-component-diagram.mermaid)

The system consists of four main components:
The system consists of three main components:

### 1. Frontend (`frontend/`)

Expand All @@ -50,22 +49,7 @@ The system consists of four main components:
- Agent service factory for handling different agent types
- Support for external API integration

### 3. Agent Service (`agent-service/`)

**Technology Stack:** Python, FastAPI, CrewAI

**Key Features:**

- Agent execution using CrewAI framework
- Support for various LLM providers (currently Ollama)
- Detailed logging of intermediate steps
- Metrics collection (token usage, model calls, etc.)
- Configurable agent settings (role, goal, backstory, etc.)
- Support for tools and delegation

**Status note:** The Python `agent-service` is currently out of date and needs TLC. The primary maintained execution path is `backend` + `agent-service-api`.

### 4. Agent Service API (`agent-service-api/`)
### 3. Agent Service API (`agent-service-api/`)

**Technology Stack:** TypeScript, Express.js

Expand All @@ -88,10 +72,8 @@ The system supports two main types of agents:

### 1. CrewAI Agents

- Configured with role, goal, and backstory
- Support for tools and delegation
- LLM configuration (model, temperature, etc.)
- Memory and code execution options
- The `crewai` settings type is still accepted and stored by the backend
- No service currently executes these jobs: the Python CrewAI service has been removed, and `agent-service-api` only runs `external_api` jobs

### 2. External API Agents

Expand Down Expand Up @@ -139,12 +121,6 @@ The system uses SQLite for data persistence with the following key entities (leg
- **Purpose:** Execute external API conversations/tests
- **Data:** Formatted requests, mapped responses, usage metadata

### Backend ↔ Agent Service (Python)

- **Protocol:** HTTP API (FastAPI)
- **Purpose:** Direct CrewAI execution path (optional/legacy-maintained)
- **Data:** Agent configurations, conversation/test inputs, execution outputs

### Backend ↔ Database

- **Protocol:** SQLite (better-sqlite3)
Expand All @@ -163,7 +139,6 @@ The system uses SQLite for data persistence with the following key entities (leg

- **Frontend**: Static site deployment (Vercel, Netlify)
- **Backend**: Node.js server deployment
- **Agent Service**: Python ASGI server deployment
- **Database**: SQLite file-based storage
- **Monitoring**: Log aggregation and performance monitoring

Expand All @@ -172,7 +147,6 @@ The system uses SQLite for data persistence with the following key entities (leg
- Use sentence capitalization for strings (including titles)
- Add new line at the end of files
- Follow TypeScript/JavaScript best practices
- Use Python PEP 8 for Python components

## Diagrams

Expand Down
12 changes: 4 additions & 8 deletions MULTI_INSTANCE_DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The deployment system consists of:
- **Helper scripts**: Stop, view logs, and check status of instances
- **Environment files**: Configuration for each instance (ports, database paths, etc.)

By default, `start-instance.sh` manages backend, agent-service-api, and frontend. The Python agent-service commands are present in the script but commented out.
By default, `start-instance.sh` manages backend, agent-service-api, and frontend.

## Prerequisites

Expand All @@ -25,9 +25,6 @@ By default, `start-instance.sh` manages backend, agent-service-api, and frontend
```bash
# Install root dependencies (links workspaces)
npm install

# Agent Service (Python)
cd agent-service && pip install -r requirements.txt && cd ..
```

## Port Allocation
Expand All @@ -38,7 +35,7 @@ By default, `start-instance.sh` manages backend, agent-service-api, and frontend
| instance2 | 5010 | 5011 | 5013 | 3010 | `./data/agent-testing-instance2.db` |
| instance3 | 5020 | 5021 | 5023 | 3020 | `./data/agent-testing-instance3.db` |

`Agent Service` ports are reserved for the optional Python service if you enable it in `start-instance.sh`.
`Agent Service` ports are used by `start-instance.sh` to set `AGENT_SERVICE_URL` for the backend. No Python service runs on them.

## Quick Start

Expand Down Expand Up @@ -267,9 +264,8 @@ If you get database errors:
Common issues:

1. **Backend**: Missing `npm install` or wrong working directory
2. **Agent Service**: Missing Python dependencies or wrong working directory
3. **Agent Service API**: Missing `npm install` or wrong working directory
4. **Frontend**: Missing `npm install` or wrong working directory
2. **Agent Service API**: Missing `npm install` or wrong working directory
3. **Frontend**: Missing `npm install` or wrong working directory

## Advanced Configuration

Expand Down
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ Add `--json` to any command for clean JSON stdout. Exit codes: `0` success, `1`

Optional:

- Python `3.10+` only if you are working on the legacy CrewAI service
- Ollama or another local LLM only if your selected agent path requires it

### Start the maintained TypeScript stack
Expand Down Expand Up @@ -144,22 +143,21 @@ Legacy test and suite flows still exist for compatibility, but new work should p

The repository is an npm workspace monorepo:

| Workspace | Technology | Purpose |
| ------------------- | --------------------------- | ------------------------------------------------------ |
| `frontend` | Next.js, TypeScript, Carbon | Web UI for evaluation workflows |
| `backend` | Express, TypeScript, SQLite | API, persistence, job orchestration |
| `agent-service-api` | Express, TypeScript | Polls backend jobs and executes external API agents |
| `packages/vibe-cli` | TypeScript | CLI for scripting against a VIBE deployment |
| `packages/*` | TypeScript | Shared contracts, config, and utilities |
| `agent-service` | Python, FastAPI, CrewAI | Legacy CrewAI path; currently not the maintained stack |
| Workspace | Technology | Purpose |
| ------------------- | --------------------------- | --------------------------------------------------- |
| `frontend` | Next.js, TypeScript, Carbon | Web UI for evaluation workflows |
| `backend` | Express, TypeScript, SQLite | API, persistence, job orchestration |
| `agent-service-api` | Express, TypeScript | Polls backend jobs and executes external API agents |
| `packages/vibe-cli` | TypeScript | CLI for scripting against a VIBE deployment |
| `packages/*` | TypeScript | Shared contracts, config, and utilities |

Key integration path:

```text
Frontend -> Backend -> Job queue -> Agent Service API -> Backend -> Sessions/transcripts
```

The Python `agent-service` is not started by `npm run dev`. Prefer `backend` + `agent-service-api` unless you are explicitly working on CrewAI integration.
The Python `agent-service` was removed. The maintained stack is `backend` + `agent-service-api`.

## Development

Expand Down
11 changes: 0 additions & 11 deletions agent-service/.env.example

This file was deleted.

33 changes: 0 additions & 33 deletions agent-service/.gitignore

This file was deleted.

Loading
Loading