Views
No views yet
| Action Type | Required Fields | Description |
|---|---|---|
categorize | ticket_id, category | Classify ticket (billing, technical, account, feature_request, complaint, general) |
prioritize | ticket_id, priority | Assign priority 1-5 (1=lowest, 5=highest) |
escalate | ticket_id, escalation_level | Escalate to higher support tier (1=team lead, 2=manager, 3=director) |
resolve | ticket_id | Mark ticket as resolved |
request_info | ticket_id | Request additional information from customer |
| Field | Type | Description |
|---|---|---|
tickets | array | List of pending tickets with metadata |
queue_position | integer | Current position in queue |
processed_count | integer | Number of tickets processed |
task_id | string | Task difficulty (easy/medium/hard) |
step_count | integer | Steps taken in current episode |
sla_deadline | integer | Hours until nearest SLA violation |
urgency_level | string | Queue urgency (critical/normal/low) |
| Action | Reward | Breakdown |
|---|---|---|
| Correct categorization | +0.7 | +0.7 for exact match, +0.3 for close |
| Accurate prioritization | Up to +0.6 | Based on closeness to correct priority |
| Appropriate escalation | +0.8 | +0.8 for correct level, -0.2 for unnecessary |
| Timely resolution | +0.5 | +0.15 efficiency bonus for quick handling |
| Progress | +0.05 per ticket | Cumulative progress through queue |
| SLA compliance | -0.2 per warning | Penalty for approaching SLA violations |
| Completion bonus | Up to +1.0 | Bonus based on SLA performance |
| Invalid actions | -0.3 | Penalty for targeting wrong ticket |
1# Clone repository
2git clone <repository-url>
3cd customer-support-env
4
5# Install dependencies
6pip install -r requirements.txt
7
8# Set OpenAI API key (for baseline agent)
9export OPENAI_API_KEY="your-api-key-here"
10
11# Run baseline evaluation
12python baseline/baseline_agent.py
13
14# Run tests
15pytest tests/test_env.py -v