File size: 1,119 Bytes
87337b1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## Playground

[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](../LICENSE)
[![Node.js Version](https://img.shields.io/badge/node-%3E%3D20-brightgreen)](package.json)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.0-blue)](tsconfig.json)
[![React](https://img.shields.io/badge/React-18-blue)](package.json)
[![Next.js 15](https://img.shields.io/badge/Next.js-15-black)](package.json)
[![shadcn/ui](https://img.shields.io/badge/UI-shadcn%2Fui-black)](https://ui.shadcn.com)
[![pnpm](https://img.shields.io/badge/pnpm-9.12.3-blue)](package.json)

Local playground for Ten Agent.

## Local Development

### Prerequisites

- Node.js >= 20
- [pnpm 9.12.3](https://pnpm.io/installation)

### Run local server

First, make sure you have started the Ten Agent server by following the instructions in the [root README](../README.md#3-start-agent-development-containers).

Then, you can start the playground web UI by running the following steps.

### Install dependencies

```bash
# cd ./playground
# install dependencies
# corepack enable
pnpm install
```

### Run

```bash
# run
pnpm dev
```