Skip to content

BaseEnv

Bases: _BaseEnv

Source code in utu/env/base_env.py
39
40
41
42
43
44
45
46
47
48
49
50
51
52
class BaseEnv(_BaseEnv):
    def get_extra_sp(self) -> str:
        return ""

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

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

    # ------------------------------------------------------------------------
    @staticmethod
    def get_time() -> str:
        return datetime.datetime.now().strftime(r"%Y-%m-%d %H:%M:%S")

build async

build()

Build the environment.

Source code in utu/env/base_env.py
25
26
async def build(self):
    """Build the environment."""

cleanup async

cleanup()

Cleanup the environment.

Source code in utu/env/base_env.py
28
29
async def cleanup(self):
    """Cleanup the environment."""