"""Action and observation types for the null-control environment.""" from typing import Any from openenv.core.env_server.types import Action, Observation from pydantic import ConfigDict, Field class NullAction(Action): """Any reply ends the episode. Extra keys are accepted so no reply is a schema error.""" model_config = ConfigDict(extra="allow") answer: Any = Field(default="", description="Ignored, any JSON value. Any action ends the episode.") class NullObservation(Observation): """Short text prompt; reward and done come from the base Observation.""" prompt: str = Field(default="", description="Instruction shown to the policy")