Neerav02/email-openenv
1
Email Triage OpenEnv
  
A real-world OpenEnv environment where AI agents learn to manage professional email inboxes. Agents classify priority, draft replies for urgent messages, and archive junk — simulating a task every knowledge worker does daily.
Environment description and motivation
Email triage is one of the most universal professional tasks. It requires:
- Reading comprehension — understanding urgency from natural language
- Prioritization judgment — server outage vs lunch invite
- Professional communication — contextually appropriate replies
- Workflow efficiency — clearing the inbox under a step budget
Observation space
Email fields: id, sender, subject, body, timestamp
Action space
Send JSON to POST /step:
Priority values: urgent | high | normal | low | spam
Task descriptions with expected difficulty
Setup and usage instructions
Quick start (local)
git clone https://github.com/Neerav02/email-triage-openenv
cd email-triage-openenv
pip install flask requests openai PyYAML
python api/server.pyDocker
docker build -t email-triage-openenv .
docker run -p 7860:7860 -e HF_TOKEN=your-token -e API_BASE_URL=https://api.example.com/v1 -e MODEL_NAME=grok-3-mini email-triage-openenvTest all endpoints
curl http://localhost:7860/health
curl -X POST http://localhost:7860/reset -H "Content-Type: application/json" -d '{"task_id":"task1"}'
curl http://localhost:7860/tasks
curl -X POST http://localhost:7860/graderAPI endpoints
Baseline scores (grok-3-mini / xAI Grok)
Running tests
python tests/test_env.pyAll 68 tests pass.
License
MIT
