chore: apply suggestions

This commit is contained in:
2025-11-22 19:59:30 +01:00
parent 4d076eac48
commit 8607f9b615
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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`.
"""