From 8607f9b615d331f752ae810d9f3b4d60565750d0 Mon Sep 17 00:00:00 2001 From: Kasper Date: Sat, 22 Nov 2025 19:59:30 +0100 Subject: [PATCH] chore: apply suggestions --- .../agents/communication/ri_communication_agent.py | 2 +- src/control_backend/core/agent_system.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/control_backend/agents/communication/ri_communication_agent.py b/src/control_backend/agents/communication/ri_communication_agent.py index 02a457d..8dfe368 100644 --- a/src/control_backend/agents/communication/ri_communication_agent.py +++ b/src/control_backend/agents/communication/ri_communication_agent.py @@ -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 diff --git a/src/control_backend/core/agent_system.py b/src/control_backend/core/agent_system.py index 4828553..b7130ba 100644 --- a/src/control_backend/core/agent_system.py +++ b/src/control_backend/core/agent_system.py @@ -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`. """