echo-ultimate / client.py
Vikaspandey582003's picture
fix: pure FastAPI on port 7860 — all OpenEnv endpoints live + Gradio at /ui
fc58aef verified
raw
history blame contribute delete
483 Bytes
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)