chore: run linter and formatter
This commit is contained in:
@@ -1,17 +1,7 @@
|
||||
from .base import BaseAgent
|
||||
from .belief_collector.belief_collector import BeliefCollectorAgent
|
||||
from .llm.llm import LLMAgent
|
||||
from .ri_command_agent import RICommandAgent
|
||||
from .ri_communication_agent import RICommunicationAgent
|
||||
from .transcription.transcription_agent import TranscriptionAgent
|
||||
from .vad_agent import VADAgent
|
||||
|
||||
__all__ = [
|
||||
"BaseAgent",
|
||||
"BeliefCollectorAgent",
|
||||
"LLMAgent",
|
||||
"RICommandAgent",
|
||||
"RICommunicationAgent",
|
||||
"TranscriptionAgent",
|
||||
"VADAgent",
|
||||
]
|
||||
from .base import BaseAgent as BaseAgent
|
||||
from .belief_collector.belief_collector import BeliefCollectorAgent as BeliefCollectorAgent
|
||||
from .llm.llm import LLMAgent as LLMAgent
|
||||
from .ri_command_agent import RICommandAgent as RICommandAgent
|
||||
from .ri_communication_agent import RICommunicationAgent as RICommunicationAgent
|
||||
from .transcription.transcription_agent import TranscriptionAgent as TranscriptionAgent
|
||||
from .vad_agent import VADAgent as VADAgent
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
from .bdi_core import BDICoreAgent
|
||||
from .text_extractor import TBeliefExtractorAgent
|
||||
from .bdi_core import BDICoreAgent as BDICoreAgent
|
||||
from .text_extractor import TBeliefExtractorAgent as TBeliefExtractorAgent
|
||||
|
||||
@@ -7,7 +7,6 @@ from spade.behaviour import CyclicBehaviour
|
||||
from control_backend.core.config import settings
|
||||
|
||||
|
||||
|
||||
class ContinuousBeliefCollector(CyclicBehaviour):
|
||||
"""
|
||||
Continuously collects beliefs/emotions from extractor agents:
|
||||
@@ -24,8 +23,8 @@ class ContinuousBeliefCollector(CyclicBehaviour):
|
||||
# Parse JSON payload
|
||||
try:
|
||||
payload = json.loads(msg.body)
|
||||
except Exception as e:
|
||||
logger.warning(
|
||||
except JSONDecodeError as e:
|
||||
self.agent.logger.warning(
|
||||
"BeliefCollector: failed to parse JSON from %s. Body=%r Error=%s",
|
||||
sender_node,
|
||||
msg.body,
|
||||
|
||||
Reference in New Issue
Block a user