Skip to content

The NVIDIA AIQToolkit UI streamlines interacting with AIQToolkit workflows in an easy-to-use web application.

License

Notifications You must be signed in to change notification settings

NVIDIA/NeMo-Agent-Toolkit-UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

58 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

NeMo Agent Toolkit - UI

License NeMo Agent Toolkit

This is the official frontend user interface component for NeMo Agent Toolkit, an open-source library for building AI agents and workflows.

This project builds upon the work of:

Features

  • 🎨 Modern and responsive user interface
  • πŸ”„ Real-time streaming responses
  • 🀝 Human-in-the-loop workflow support
  • πŸŒ™ Light/Dark theme
  • πŸ”Œ WebSocket and HTTP API integration
  • 🐳 Docker support

Getting Started

Prerequisites

Installation

Clone the repository:

git clone [email protected]:NVIDIA/NeMo-Agent-Toolkit-UI.git
cd NeMo-Agent-Toolkit-UI

Install dependencies:

npm ci

Running the Application

Local Development

npm run dev

The application will be available at http://localhost:3000

Docker Deployment

# Build the Docker image
docker build -t nemo-agent-toolkit-ui .

# Run the container with environment variables from .env
# Ensure the .env file is present before running this command.
# Skip --env-file .env if no overrides are needed.
docker run --env-file .env -p 3000:3000 nemo-agent-toolkit-ui

NeMo Agent Toolkit Web User Interface

Configuration

HTTP API Connection

Settings can be configured by selecting the Settings icon located on the bottom left corner of the home page.

NeMo Agent Toolkit Web UI Settings

Settings Options

NOTE: Most of the time, you will want to select /chat/stream for intermediate results streaming.

  • Theme: Light or Dark Theme
  • HTTP URL for Chat Completion: REST API endpoint
    • /generate - Single response generation
    • /generate/stream - Streaming response generation
    • /chat - Single response chat completion
    • /chat/stream - Streaming chat completion
  • WebSocket URL for Completion: WebSocket URL to connect to running NeMo Agent Toolkit server
  • WebSocket Schema: Workflow schema type over WebSocket connection

Usage Examples

Getting Started Example

Setup and Configuration

  1. Set up NeMo Agent Toolkit following the getting started guide
  2. Start workflow by following the Getting Started Examples
nat serve --config_file=examples/getting_started/simple_calculator/configs/config.yml

Testing the Calculator

Interact with the chat interface by prompting the agent with the message:

Is 4 + 4 greater than the current hour of the day?

NeMo Agent Toolkit Web UI Workflow Result

Human In The Loop (HITL) Example

Setup and Configuration

  1. Set up NeMo Agent Toolkit following the getting started guide
  2. Start workflow by following the HITL Example
nat serve --config_file=examples/HITL/simple_calculator_hitl/configs/config-hitl.yml

Configuring HITL Settings

Enable WebSocket mode in the settings panel for bidirectional real-time communication between the client and server.

NeMo Agent Toolkit Web UI HITL Settings

Example Conversation

  1. Send the following prompt:
Can you process my input and display the result for the given prompt: How are you today?
  1. Enter your response when prompted:

NeMo Agent Toolkit Web UI HITL Prompt

  1. Monitor the result:

NeMo Agent Toolkit Web UI HITL Result

Server Communication

The UI supports both HTTP requests (OpenAI Chat compatible) and WebSocket connections for server communication. For detailed information about WebSocket messaging integration, please refer to the WebSocket Documentation in the NeMo Agent Toolkit documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details. The project includes code from chatbot-ui and chatbot-ollama, which are also MIT licensed.

About

The NVIDIA AIQToolkit UI streamlines interacting with AIQToolkit workflows in an easy-to-use web application.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published