Spaces:
Sleeping
Sleeping
File size: 1,176 Bytes
9fe417b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | """Pydantic models for the Engineer Manager environment."""
from __future__ import annotations
from typing import Any
from openenv.core.env_server.types import Action, Observation
from pydantic import Field
class EngineerManagerAction(Action):
"""Scheduling action applied to the focus-planning environment."""
target_slot: int = Field(..., ge=0, description="Target half-hour slot index.")
operation: int = Field(
...,
ge=0,
le=3,
description="Operation id: 0 idle, 1 schedule work, 2 reschedule meeting, 3 mute comms.",
)
class EngineerManagerObservation(Observation):
"""Serializable observation returned by the environment server."""
timeline: list[int] = Field(default_factory=list)
task_buffer: list[dict[str, Any]] = Field(default_factory=list)
distraction_risk: float = Field(default=0.15)
current_slot: int = Field(default=0)
current_time: str = Field(default="09:00")
recovery_state: int = Field(default=0)
mute_comms: bool = Field(default=False)
social_debt: float = Field(default=0.0)
calendar_churn: int = Field(default=0)
flow_score: float = Field(default=0.0)
|