Spaces:
Running
Running
| """DispatchPulse β emergency-dispatch OpenEnv environment. | |
| A real-world OpenEnv environment where an AI agent acts as a 911 emergency | |
| dispatch coordinator. The agent triages incoming calls, dispatches limited | |
| units (ALS / BLS ambulances, fire engines, police), and selects destination | |
| hospitals. Patient outcomes are scored against real clinical survival | |
| curves. | |
| Public API: | |
| DispatchPulseEnv β async client (subclass of openenv EnvClient) | |
| DispatchPulseAction β typed action | |
| DispatchPulseObservation β typed observation | |
| DispatchPulseState β typed state snapshot | |
| TASKS β registry of 3 graded tasks (easy, medium, hard) | |
| TaskDefinition β frozen dataclass describing one task | |
| grade_submission(...) β canonical grader function, returns (score, details) | |
| list_tasks() β list all TaskDefinitions | |
| get_task(task_id) β single task lookup | |
| """ | |
| from client import DispatchPulseEnv | |
| from models import ( | |
| DispatchPulseAction, | |
| DispatchPulseObservation, | |
| DispatchPulseState, | |
| ) | |
| from task_definitions import ( | |
| TASKS, | |
| TaskDefinition, | |
| grade_submission, | |
| get_task, | |
| list_tasks, | |
| ) | |
| __all__ = [ | |
| "DispatchPulseEnv", | |
| "DispatchPulseAction", | |
| "DispatchPulseObservation", | |
| "DispatchPulseState", | |
| "TASKS", | |
| "TaskDefinition", | |
| "grade_submission", | |
| "list_tasks", | |
| "get_task", | |
| ] | |
| __version__ = "1.0.0" | |