style: linted everything

ref: N25B-207
This commit is contained in:
JobvAlewijk
2025-10-29 13:01:00 +01:00
parent af789bd459
commit c7a2effa78
4 changed files with 10 additions and 15 deletions

View File

@@ -1,13 +1,14 @@
import logging import logging
import agentspeak import agentspeak
from spade.behaviour import CyclicBehaviour, OneShotBehaviour from spade.behaviour import OneShotBehaviour
from spade.message import Message from spade.message import Message
from spade.template import Template
from spade_bdi.bdi import BDIAgent from spade_bdi.bdi import BDIAgent
from control_backend.agents.bdi.behaviours.belief_setter import BeliefSetter from control_backend.agents.bdi.behaviours.belief_setter import BeliefSetter
from control_backend.agents.bdi.behaviours.receive_llm_resp_behaviour import ReceiveLLMResponseBehaviour from control_backend.agents.bdi.behaviours.receive_llm_resp_behaviour import (
ReceiveLLMResponseBehaviour,
)
from control_backend.core.config import settings from control_backend.core.config import settings

View File

@@ -1,13 +1,10 @@
import asyncio
import json
import logging import logging
from spade.agent import Message
from spade.behaviour import CyclicBehaviour from spade.behaviour import CyclicBehaviour
from spade_bdi.bdi import BDIAgent
from control_backend.core.config import settings from control_backend.core.config import settings
class ReceiveLLMResponseBehaviour(CyclicBehaviour): class ReceiveLLMResponseBehaviour(CyclicBehaviour):
""" """
Adds behavior to receive responses from the LLM Agent. Adds behavior to receive responses from the LLM Agent.

View File

@@ -3,19 +3,16 @@ LLM Agent module for routing text queries from the BDI Core Agent to a local LLM
service and returning its responses back to the BDI Core Agent. service and returning its responses back to the BDI Core Agent.
""" """
import json
import logging import logging
from typing import Any from typing import Any
import asyncio
import httpx import httpx
from spade.agent import Agent from spade.agent import Agent
from spade.behaviour import CyclicBehaviour from spade.behaviour import CyclicBehaviour
from spade.message import Message from spade.message import Message
from spade.template import Template
from control_backend.core.config import settings
from control_backend.agents.llm.llm_instructions import LLMInstructions from control_backend.agents.llm.llm_instructions import LLMInstructions
from control_backend.core.config import settings
class LLMAgent(Agent): class LLMAgent(Agent):
@@ -68,8 +65,8 @@ class LLMAgent(Agent):
Sends a response message back to the BDI Core Agent. Sends a response message back to the BDI Core Agent.
""" """
reply = Message( reply = Message(
to= settings.agent_settings.bdi_core_agent_name + '@' + settings.agent_settings.host, to=settings.agent_settings.bdi_core_agent_name + '@' + settings.agent_settings.host,
body= msg body=msg
) )
await self.send(reply) await self.send(reply)
self.agent.logger.info("Reply sent to BDI Core Agent") self.agent.logger.info("Reply sent to BDI Core Agent")

View File

@@ -6,14 +6,14 @@ class LLMInstructions:
@staticmethod @staticmethod
def default_norms() -> str: def default_norms() -> str:
return f""" return """
Be friendly and respectful. Be friendly and respectful.
Make the conversation feel natural and engaging. Make the conversation feel natural and engaging.
""".strip() """.strip()
@staticmethod @staticmethod
def default_goals() -> str: def default_goals() -> str:
return f""" return """
Try to learn the user's name during conversation. Try to learn the user's name during conversation.
""".strip() """.strip()