aea.abstract_
agent¶
This module contains the interface definition of the abstract agent.
AbstractAgent Objects¶
This class provides an abstract base interface for an agent.
name¶
Get agent's name.
storage_
uri¶
Return storage uri.
start¶
Start the agent.
Returns:
None
stop¶
Stop the agent.
Returns:
None
setup¶
Set up the agent.
Returns:
None
act¶
Perform actions on period.
Returns:
None
handle_
envelope¶
Handle an envelope.
Arguments:
envelope
: the envelope to handle.
Returns:
None
get_
periodic_
tasks¶
@abstractmethod
def get_periodic_tasks(
) -> Dict[Callable, Tuple[float, Optional[datetime.datetime]]]
Get all periodic tasks for agent.
Returns:
dict of callable with period specified
get_
message_
handlers¶
Get handlers with message getters.
Returns:
List of tuples of callables: handler and coroutine to get a message
exception_
handler¶
Handle exception raised during agent main loop execution.
Arguments:
exception
: exception raisedfunction
: a callable exception raised in.
Returns:
skip exception if True, otherwise re-raise it
teardown¶
Tear down the agent.
Returns:
None