Spaces:
Build error
Build error
File size: 556 Bytes
01523b5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from __future__ import annotations
from typing import TYPE_CHECKING, Any, List
from pydantic import BaseModel
from . import describer_registry as DescriberRegistry
from abc import abstractmethod
if TYPE_CHECKING:
from agentverse.environments import BaseEnvironment
class BaseDescriber(BaseModel):
@abstractmethod
def get_env_description(
self, environment: BaseEnvironment, *args, **kwargs
) -> List[str]:
"""Return the environment description for each agent"""
pass
def reset(self) -> None:
pass
|