File size: 1,514 Bytes
3696fe2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
First Agent Template — Local Run Guide

This file explains how to run the prototype locally (macOS, zsh).

Assumptions
- Project root: /Users/gautam.kumar/Desktop/agents/First_agent_template
- You will use the included virtualenv `.venv` or create one.

1) Create & activate a venv (if needed)

```bash
cd /Users/gautam.kumar/Desktop/agents/First_agent_template
python3 -m venv .venv
source .venv/bin/activate
```

2) Install dependencies

```bash
pip install --upgrade pip
pip install -r requirements.txt
# optional: install gradio UI extras
pip install "smolagents[gradio]"
```

3) Smoke tests

```bash
PYTHONPATH=$(pwd) python tests/run_nlu_test.py
```

4) Demo run

```bash
PYTHONPATH=$(pwd) python tests/run_dialog_demo.py
```

5) Interactive CLI

```bash
PYTHONPATH=$(pwd) python tools/interactive_cli.py
```

Interactive CLI tips
- Type natural sentences like: "I can pay ¥30000 by next Friday"
- If assistant asks for missing info ("Can I confirm your full name?"), reply with the requested info.
- To request a human operator: "I want to talk to an operator tomorrow morning" — the assistant will propose JST slots.
- Type `exit` or `quit` to leave.

Data & files
- `data/requests.json` — saved handoff requests (JSON).
- `data/operator_notifications.log` — operator notification stub logs.

If you want, I can:
- Add this file into the main `README.md` (merge), or keep it separate.
- Add unit tests and CI configs.
- Improve the CLI to track dialogue state across multiple turns more robustly.