Spaces:
Build error
Build error
File size: 520 Bytes
01523b5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from __future__ import annotations
from typing import TYPE_CHECKING, Any, List
from . import describer_registry as DescriberRegistry
from .base import BaseDescriber
if TYPE_CHECKING:
from agentverse.environments import BaseEnvironment
@DescriberRegistry.register("basic")
class BasicDescriber(BaseDescriber):
def get_env_description(self, environment: BaseEnvironment) -> List[str]:
"""Return the environment description for each agent"""
return ["" for _ in range(len(environment.agents))]
|