xXArjunXx/MetaHackathon
0
Email Triage OpenEnv
A real-world environment for training and evaluating AI agents on email triage tasks. Implements the full OpenEnv specification for agent learning.
Overview
This environment simulates the task of triaging and organizing emails into appropriate categories and actions. An AI agent must learn to:
- Classify emails by priority and type
- Identify spam and suspicious emails
- Execute appropriate actions (archive, delete, reply, forward)
- Handle complex, contextual decision-making
Perfect for training agents on realistic email management workflows.
Environment Specification
Tasks
- Easy - Basic Email Management
- Sort 5 emails into appropriate categories
- Actions: Read, Archive, Delete
- Expected difficulty: Straightforward classification
- Medium - Smart Email Organization
- Triage 8 emails with attachment handling
- Actions: Read, Archive, Mark Important, Flag
- Expected difficulty: Requires contextual understanding
- Hard - Expert Email Management
- Manage 10 complex emails requiring nuanced decisions
- Actions: All above + Reply, Forward, Report Spam
- Expected difficulty: Requires deep contextual understanding
Observation Space
{
"task": str,
"step_count": int,
"cumulative_reward": float,
"normalized_score": float,
"actions_taken": dict,
"progress": str,
"done": bool
}Action Space
Valid actions: read, archive, delete, flag, mark_spam, reply, forward
Reward Function
- Correct action: +0.1 to +0.3
- Incorrect action: -0.1 to -0.2
- Episode bonus: +0.5 for 100% accuracy
Setup & Usage
Installation
pip install -r server/requirements.txt
pip install openenv-coreRunning Locally
cd server
python main.pyDocker
docker build -t email-triage-openenv .
docker run -p 8000:8000 email-triage-openenvBaseline Performance
API Endpoints
POST /reset- Start new episodePOST /step- Execute actionGET /state- Get current stateGET /grade- Get scores
OpenEnv Compliance
✅ Full OpenEnv spec ✅ Typed Pydantic models ✅ Deterministic graders ✅ Meaningful rewards
openenv validateLicense
MIT
