File size: 667 Bytes
9de6be7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | """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")
|