CoolFace
Apppublic

hashmath2005/Email-Triage

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

Email Triage & Intelligent Workplace Assistant: An OpenEnv Benchmark

Abstract

Modern Language Models excel at isolated reasoning, yet deploying them as autonomous workplace agents exposes a devastating fragility: they fail to navigate the messy, asynchronous, and socially nuanced realities of corporate environments. We present the Email Triage & Intelligent Workplace Assistant, an open-source OpenEnv simulation tailored for evaluating autonomous agents in high-stakes office scenarios. This environment exposes the agent to realistic noise, complex dependency chains, and competing urgencies via a multidimensional reward function, proving that genuine autonomy requires more than just Next Token Prediction—it requires organizational intuition.

Action and Observation Spaces

The environment strictly adheres to Pydantic v2 schemas defined in env/models.py.

Observation Space

The agent receives a full view of the simulated corporate system along with textual feedback from the last action.

FeatureDescriptionType
inbox.emailsArray of emails with metadata (thread history, deadlines).List[Email]
inbox.calendarThe user's active calendar with conflicting events.List[CalendarEvent]
inbox.team_membersAvailable workforce for delegation mapping.List[str]
current_timeIn-simulation global tick time.str
feedbackImmediate textual consequence of the previous action.Optional[str]

Action Space

Agents interact via a continuous loop of defined operational capabilities.

Action TypeRequired MetadataDescription
classifyemail_id, classificationstrict taxonomy mapping (spam, low, medium, urgent)
replyemail_id, reply_textdrafts communication balancing brevity, accuracy & tone
delegateemail_id, delegate_tohands off asynchronous dependencies to team members
scheduleschedule_time, schedule_durationhandles calendar routing preventing critical overlaps

Difficulty Breakdown

The OpenEnv environment offers three incrementally scoped benchmarks.

  • Easy: Strict static classification evaluating pure information extraction. High success rate expectation.
  • Medium: Tone and instruction following. Evaluates text generation within bounds governed by rubrics.
  • Hard (Inbox Zero): 10 emails. Competing dependencies. Requires the agent to anticipate constraints, schedule around blockers, and avoid cyclical loops. Evaluates multi-step decision horizons.

Setup & Running the Baseline

Get started in under 3 commands:

bash
# 1. Build the Docker environment
docker build -t openenv-email-triage .

# 2. Supply your API Key to the environment
export OPENAI_API_KEY="sk-..."

# 3. Run the evaluation baseline
docker run --rm -e OPENAI_API_KEY=$OPENAI_API_KEY openenv-email-triage

Baseline Evaluation Results (gpt-4o-mini)

Using the native scripts/baseline_inference.py, we benchmarked a standard zero-shot LLM reasoning loop.

Task LevelScore Achieved / MaxNotes & Failure Modes
Easy0.75 / 1.00Agent reliably finds 'spam', but sometimes misattributes context lacking deep history.
Medium0.66 / 1.00Generated replies are accurate and polite, but often fail strict brevity thresholds.
Hard1.00 / 10.00Critical Failure. The agent enters redundant loops attempting to reply linearly and inherently fails to delegate before scheduling. It lacks global temporal awareness.

Ready for Hugging Face Spaces `openenv` deployment out of the box.