Spaces:
Sleeping
Sleeping
File size: 483 Bytes
fc58aef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from openenv.core.client import HTTPEnvClient
from models import EchoAction, EchoObservation
class EchoClient(HTTPEnvClient):
"""HTTP client for the ECHO calibration environment."""
action_class = EchoAction
observation_class = EchoObservation
def step_with_response(self, response_text: str) -> EchoObservation:
"""Helper: submit a raw response string as an action."""
action = EchoAction(response=response_text)
return self.step(action)
|