Vansh04092003 commited on
Commit
7b709d5
·
verified ·
1 Parent(s): 6bca694

Upload folder using huggingface_hub

Browse files
.pytest_cache/.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # Created by pytest automatically.
2
+ *
.pytest_cache/CACHEDIR.TAG ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ Signature: 8a477f597d28d172789f06886806bc55
2
+ # This file is a cache directory tag created by pytest.
3
+ # For information about cache directory tags, see:
4
+ # https://bford.info/cachedir/spec.html
.pytest_cache/README.md ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # pytest cache directory #
2
+
3
+ This directory contains data from the pytest's cache plugin,
4
+ which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
5
+
6
+ **Do not** commit this to version control.
7
+
8
+ See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
.pytest_cache/v/cache/lastfailed ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
.pytest_cache/v/cache/nodeids ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ "tests/test_environment.py::test_action_summary_max_length",
3
+ "tests/test_environment.py::test_action_valid",
4
+ "tests/test_environment.py::test_adjacent_priority_partial_credit",
5
+ "tests/test_environment.py::test_budget_exhaustion_penalty",
6
+ "tests/test_environment.py::test_cascade_fires_only_once",
7
+ "tests/test_environment.py::test_cascade_triggers_after_two_urgent_sla_breaches",
8
+ "tests/test_environment.py::test_done_raises_on_further_step",
9
+ "tests/test_environment.py::test_episode_info_contains_summary_on_done",
10
+ "tests/test_environment.py::test_grade_episode_aggregation",
11
+ "tests/test_environment.py::test_invalid_email_id_penalised",
12
+ "tests/test_environment.py::test_invalid_task_raises",
13
+ "tests/test_environment.py::test_missed_escalation_zero_score",
14
+ "tests/test_environment.py::test_observation_has_sequential_fields",
15
+ "tests/test_environment.py::test_oracle_episode_completes[easy]",
16
+ "tests/test_environment.py::test_oracle_episode_completes[hard]",
17
+ "tests/test_environment.py::test_oracle_episode_completes[medium]",
18
+ "tests/test_environment.py::test_oracle_label_scores_above_floor[easy]",
19
+ "tests/test_environment.py::test_oracle_label_scores_above_floor[hard]",
20
+ "tests/test_environment.py::test_oracle_label_scores_above_floor[medium]",
21
+ "tests/test_environment.py::test_over_escalation_half_score",
22
+ "tests/test_environment.py::test_perfect_action_high_score",
23
+ "tests/test_environment.py::test_queue_saturation_penalty",
24
+ "tests/test_environment.py::test_reset_initialises_sequential_state",
25
+ "tests/test_environment.py::test_reset_returns_observation",
26
+ "tests/test_environment.py::test_reward_has_sequential_breakdown_fields",
27
+ "tests/test_environment.py::test_sla_breach_fires_for_delayed_urgent",
28
+ "tests/test_environment.py::test_sla_penalty_magnitude",
29
+ "tests/test_environment.py::test_spam_correctly_identified",
30
+ "tests/test_environment.py::test_spam_misrouted_penalised",
31
+ "tests/test_environment.py::test_state_constraints_exposed",
32
+ "tests/test_environment.py::test_state_returns_correct_type",
33
+ "tests/test_environment.py::test_step_decrements_escalation_budget",
34
+ "tests/test_environment.py::test_step_decrements_queue",
35
+ "tests/test_environment.py::test_step_removes_email_from_inbox",
36
+ "tests/test_environment.py::test_step_types",
37
+ "tests/test_environment.py::test_task_email_count[easy-5]",
38
+ "tests/test_environment.py::test_task_email_count[hard-10]",
39
+ "tests/test_environment.py::test_task_email_count[medium-8]",
40
+ "tests/test_environment.py::test_task_escalation_budget[easy]",
41
+ "tests/test_environment.py::test_task_escalation_budget[hard]",
42
+ "tests/test_environment.py::test_task_escalation_budget[medium]",
43
+ "tests/test_environment.py::test_urgent_as_spam_heavy_penalty",
44
+ "tests/test_environment.py::test_wrong_priority_lowers_score"
45
+ ]
__pycache__/environment.cpython-312.pyc CHANGED
Binary files a/__pycache__/environment.cpython-312.pyc and b/__pycache__/environment.cpython-312.pyc differ
 
environment.py CHANGED
@@ -441,8 +441,8 @@ class EmailTriageEnv:
441
  "action_space": {
442
  "email_id": "string — ID of email being actioned",
443
  "priority": ["urgent", "high", "medium", "low", "spam"],
444
- "category": [c2.value for c2 in __import__('openenv_email_triage.models', fromlist=['Category']).Category],
445
- "route_to": [r.value for r in __import__('openenv_email_triage.models', fromlist=['RouteTo']).RouteTo],
446
  "summary": "string ≤280 chars",
447
  "flag_review": "bool — uses escalation budget",
448
  "reasoning": "string, not scored",
 
441
  "action_space": {
442
  "email_id": "string — ID of email being actioned",
443
  "priority": ["urgent", "high", "medium", "low", "spam"],
444
+ "category": [c2.value for c2 in __import__('.models', fromlist=['Category']).Category],
445
+ "route_to": [r.value for r in __import__('.models', fromlist=['RouteTo']).RouteTo],
446
  "summary": "string ≤280 chars",
447
  "flag_review": "bool — uses escalation budget",
448
  "reasoning": "string, not scored",
tests/__pycache__/test_environment.cpython-312-pytest-9.0.2.pyc CHANGED
Binary files a/tests/__pycache__/test_environment.cpython-312-pytest-9.0.2.pyc and b/tests/__pycache__/test_environment.cpython-312-pytest-9.0.2.pyc differ
 
tests/test_environment.py CHANGED
@@ -9,7 +9,7 @@ Run: pytest tests/ -v
9
  import pytest
10
 
11
  import sys,os
12
- sys.path.append(os.path.abspath("."))
13
  from environment import EmailTriageEnv
14
 
15
  from grader import score_action, grade_episode
 
9
  import pytest
10
 
11
  import sys,os
12
+ sys.path.append(os.path.abspath(".."))
13
  from environment import EmailTriageEnv
14
 
15
  from grader import score_action, grade_episode