chore: apply suggestions
This commit is contained in:
@@ -116,7 +116,7 @@ class RICommunicationAgent(BaseAgent):
|
||||
except Exception as e:
|
||||
self.logger.warning("Error unpacking negotiation data: %s", e)
|
||||
retries += 1
|
||||
await asyncio.sleep(1)
|
||||
await asyncio.sleep(settings.behaviour_settings.sleep_s)
|
||||
continue
|
||||
|
||||
return False
|
||||
|
||||
@@ -102,7 +102,7 @@ class BaseAgent(ABC):
|
||||
async def add_behavior(self, coro: Coroutine):
|
||||
"""
|
||||
Helper to add a behavior to the agent. To add asynchronous behavior to an agent, define
|
||||
an `async` function and add it to the task list by calling :func:`add_background_task`
|
||||
an `async` function and add it to the task list by calling :func:`add_behavior`
|
||||
with it. This should happen in the :func:`setup` method of the agent. For an example, see:
|
||||
:func:`~control_backend.agents.bdi.BDICoreAgent`.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user