openenv-testing/echo_env
0
1# Copyright (c) Meta Platforms, Inc. and affiliates.2# All rights reserved.3#4# This source code is licensed under the BSD-style license found in the5# LICENSE file in the root directory of this source tree.6 7"""8Data models for the Echo Environment.9 10The Echo environment is a simple test environment that echoes back messages.11"""12 13from dataclasses import dataclass14 15from core.env_server.types import Action, Observation16 17 18@dataclass(kw_only=True)19class EchoAction(Action):20 """Action for the Echo environment - just a message to echo."""21 22 message: str23 24 25@dataclass(kw_only=True)26class EchoObservation(Observation):27 """Observation from the Echo environment - the echoed message."""28 29 echoed_message: str30 message_length: int = 0