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
 | 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 raised
- function: a callable exception raised in.
Returns:
skip exception if True, otherwise re-raise it
teardown
Tear down the agent.
Returns:
None