agentscope.environment.event module
The events which can be bound to envs.
- class Event(name: str, args: dict | None = None, returns: Any | None = None)[source]
Bases:
object
A class representing the information of an event.
It contains the name of the event, the arguments of the event, and the returns of the event.
- property args: dict
Return the arguments of the event.
- property name: str
Return the name of the event.
- property returns: Any
Return the returns of the event.
- class Holdable[source]
Bases:
ABC
A class representing an env can be held,and during the holding period, all access behaviors except the owner are prohibited.
- class Movable2D[source]
Bases:
ABC
A class representing an env can be moved in 2D.
- abstract get_position() Tuple[float, float] [source]
Get the position of the env.
- Returns:
The position of the env.
- Return type:
Tuple[float, float]