Skip to content

BaseEnv

Bases: Env

Source code in utu/env/base_env.py
36
37
38
39
40
41
42
43
44
45
class BaseEnv(Env):
    @staticmethod
    def get_time() -> str:
        return datetime.datetime.now().strftime(r"%Y-%m-%d %H:%M:%S")

    def get_state(self) -> str:
        return ""

    async def get_tools(self) -> list[Tool]:
        return []

build async

build()

Build the environment.

Source code in utu/env/base_env.py
20
21
22
async def build(self):
    """Build the environment."""
    pass

cleanup async

cleanup()

Cleanup the environment.

Source code in utu/env/base_env.py
24
25
26
async def cleanup(self):
    """Cleanup the environment."""
    pass