Skip to content

feat(backend): add Node.js/TypeScript version with full parity #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ It is composed of two parts:

2. A Next.js UI allowing the visualization of the agent orchestration process and providing a chat interface.

**New:** This repository now also includes a **Node.js/TypeScript backend** that provides 100% feature parity with the Python version, using the [OpenAI Agents SDK for TypeScript](https://github.com/openai/openai-agents-js).

![Demo Screenshot](screenshot.jpg)

## How to use
Expand Down Expand Up @@ -71,6 +73,26 @@ The frontend will be available at: [http://localhost:3000](http://localhost:3000

This command will also start the backend.

#### Run the Node.js/TypeScript backend

**Quick start (one-line command):**

```bash
cd node-backend && OPENAI_API_KEY=your_api_key npm run dev
```

**Or install dependencies first:**

```bash
cd node-backend
npm install
npm run dev
```

The Node.js backend will be available at: [http://localhost:8000](http://localhost:8000)

This backend provides identical functionality to the Python version, including all 5 agents, 6 tools, guardrails, conversation memory, and handoff capabilities.

## Customization

This app is designed for demonstration purposes. Feel free to update the agent prompts, guardrails, and tools to fit your own customer service workflows or experiment with new use cases! The modular structure makes it easy to extend or modify the orchestration logic for your needs.
Expand Down
Loading