Team Ai
Apppublic

openenv/repl

sourceHugging Faceupdated 6mo agoView on Hugging Face
1likes
models.py28 linesDownload Raw Back to openenv_env
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 __ENV_TITLE_NAME__ Environment.9 10The __ENV_NAME__ environment is a simple test environment that echoes back messages.11"""12 13from openenv.core.env_server.types import Action, Observation14from pydantic import Field15 16 17class __ENV_CLASS_NAME__Action(Action):18    """Action for the __ENV_TITLE_NAME__ environment - just a message to echo."""19 20    message: str = Field(..., description="Message to echo back")21 22 23class __ENV_CLASS_NAME__Observation(Observation):24    """Observation from the __ENV_TITLE_NAME__ environment - the echoed message."""25 26    echoed_message: str = Field(default="", description="The echoed message")27    message_length: int = Field(default=0, description="Length of the echoed message")28