DASHBOARD_GUIDE.mdβ’5.65 kB
# Enhanced Dashboard Guide
## Quick Reference for Resume Agent Interactive Dashboards
---
## π€ Send Task Dashboard (`send_task.py`)
### **Interactive Mode**
```bash
python3 send_task.py
```
**Features:**
- β¨ Color-coded interface
- π Real-time statistics tracking
- π¬ Conversation history (last 10)
- β‘ Loading animations
- π― Word-wrapped responses
**Available Commands:**
- `/help` - Show available commands
- `/history` - View recent conversations
- `/stats` - Show session statistics
- `/clear` - Clear screen
- `/info` - Get agent information
- `/status` - Check agent status
- `quit` - Exit dashboard
### **Command Line Mode**
```bash
python3 send_task.py "Your question here"
```
### **Example Session:**
```
π > What are my Python skills?
β
Response received!
A: [resume-agent] Here's information...
π > /history
π¬ Recent Conversations (1)
[1] 11:30:15
Q: What are my Python skills?
A: [resume-agent] Here's information...
π > /stats
π Session Statistics
Total Tasks: 5
Successful: 5
Failed: 0
Success Rate: 100.0%
```
---
## π¬ Message Viewer Dashboard (`view_messages.py`)
### **Default View**
```bash
python3 view_messages.py
```
Shows last 20 messages with timestamps and senders.
### **Real-Time Monitor Mode**
```bash
python3 view_messages.py --monitor
```
Auto-refreshes every 5 seconds to show live messages.
Custom interval:
```bash
python3 view_messages.py --monitor 10
```
### **Statistics Mode**
```bash
python3 view_messages.py --stats
```
Shows:
- Total messages ever received
- Recent message count
- Top senders with bar chart
- Agent status
### **Filter Messages**
```bash
python3 view_messages.py --filter tech-expert
```
Shows only messages from specific sender.
### **Help**
```bash
python3 view_messages.py --help
```
---
## π¨ Features Overview
### Send Task Dashboard
| Feature | Description |
|---------|-------------|
| **Statistics** | Track success/failure rates, session duration |
| **History** | View last 10 conversations with Q&A pairs |
| **Colors** | Green (user), Blue (agents), Cyan (info) |
| **Commands** | Slash commands for quick actions |
| **Animation** | Loading dots while processing |
### Message Viewer
| Feature | Description |
|---------|-------------|
| **Real-time** | Auto-refresh mode with new message alerts |
| **Statistics** | Total messages, top senders, bar charts |
| **Filtering** | Filter by sender agent ID |
| **Timestamps** | Full timestamp for each message |
| **Colors** | Green (users), Blue (agents) |
---
## π Quick Start
### Send a query:
```bash
python3 send_task.py "What is my work experience at TikTok?"
```
### View incoming messages:
```bash
python3 view_messages.py
```
### Monitor live traffic:
```bash
python3 view_messages.py --monitor
```
### Interactive session:
```bash
python3 send_task.py
π > What are my cloud computing skills?
π > /history
π > /stats
π > quit
```
---
## π Sample Output
### Statistics Display:
```
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Session Statistics
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Total Tasks: 12
Successful: 11
Failed: 1
Success Rate: 91.7%
Session Duration: 142s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
### Top Senders Chart:
```
Top Senders (last 100):
user ββββββββββββ 25
tech-expert ββββ 8
python-expert ββ 4
data-scientist β 2
```
---
## π§ Configuration
Both tools connect to:
- **Agent Endpoint**: http://52.73.59.119:6050/a2a
- **EC2 Instance**: 52.73.59.119
- **SSH Key**: ~/nanda/personal-resume-agent/deploy/aws/nanda-resume-key.pem
---
## π‘ Tips
1. **Use monitor mode** when testing agent interactions
2. **Check statistics** regularly to track agent health
3. **Filter messages** when debugging specific agent conversations
4. **Use command line mode** for quick one-off queries
5. **Interactive mode** best for exploratory sessions
---
## β‘ Keyboard Shortcuts
- **Ctrl+C**: Exit monitor mode or interactive session
- **Enter**: Submit query in interactive mode
- **Up/Down**: Command history (terminal native)
---
## π Example Queries
```bash
# Work Experience
python3 send_task.py "What is my current role?"
# Technical Skills
python3 send_task.py "What cloud technologies do I know?"
# Education
python3 send_task.py "Tell me about my education background"
# Agent Commands
python3 send_task.py "/info"
python3 send_task.py "/status"
```
---
## π Troubleshooting
### Connection timeout?
- Check if agent is running: `ssh ubuntu@52.73.59.119 "sudo supervisorctl status resume-agent"`
- View agent logs: `ssh ubuntu@52.73.59.119 "sudo tail -f /var/log/resume-agent.log"`
### No messages showing?
- Verify SSH key path in `view_messages.py:28`
- Test SSH connection: `ssh -i <key> ubuntu@52.73.59.119`
### Colors not showing?
- Ensure terminal supports ANSI colors
- Try running in iTerm2 or modern terminal
---
**Agent Status**: β
Fully Operational
**Total Messages**: 19+
**Success Rate**: 100%
**Network**: 481 agents in NANDA
---
*Last Updated: 2025-10-13*