Refactoring agent and behaviour naming and structure. #25
@@ -43,7 +43,7 @@ class TranscriptionAgent(BaseAgent):
|
|||||||
async def _share_transcription(self, transcription: str):
|
async def _share_transcription(self, transcription: str):
|
||||||
"""Share a transcription to the other agents that depend on it."""
|
"""Share a transcription to the other agents that depend on it."""
|
||||||
receiver_jids = [
|
receiver_jids = [
|
||||||
settings.agent_settings.texbdi_text_belief_agent_name
|
settings.agent_settings.text_belief_extractor_name
|
||||||
+ "@"
|
+ "@"
|
||||||
+ settings.agent_settings.host,
|
+ settings.agent_settings.host,
|
||||||
] # Set message receivers here
|
] # Set message receivers here
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ async def lifespan(app: FastAPI):
|
|||||||
# --- Initialize Agents ---
|
# --- Initialize Agents ---
|
||||||
logger.info("Initializing and starting agents.")
|
logger.info("Initializing and starting agents.")
|
||||||
agents_to_start = {
|
agents_to_start = {
|
||||||
"ComRIAgent": (
|
"RICommunicationAgent": (
|
||||||
RICommunicationAgent,
|
RICommunicationAgent,
|
||||||
{
|
{
|
||||||
"name": settings.agent_settings.ri_communication_name,
|
"name": settings.agent_settings.ri_communication_name,
|
||||||
@@ -104,7 +104,7 @@ async def lifespan(app: FastAPI):
|
|||||||
"asl": "src/control_backend/agents/bdi/bdi_core_agent/rules.asl",
|
"asl": "src/control_backend/agents/bdi/bdi_core_agent/rules.asl",
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
"BDIBeliefCollectorAgent": (
|
"BeliefCollectorAgent": (
|
||||||
BDIBeliefCollectorAgent,
|
BDIBeliefCollectorAgent,
|
||||||
{
|
{
|
||||||
"name": settings.agent_settings.bdi_belief_collector_name,
|
"name": settings.agent_settings.bdi_belief_collector_name,
|
||||||
@@ -113,7 +113,7 @@ async def lifespan(app: FastAPI):
|
|||||||
"password": settings.agent_settings.bdi_belief_collector_name,
|
"password": settings.agent_settings.bdi_belief_collector_name,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
"BDITextBeliefAgent": (
|
"TextBeliefExtractorAgent": (
|
||||||
TextBeliefExtractorAgent,
|
TextBeliefExtractorAgent,
|
||||||
{
|
{
|
||||||
"name": settings.agent_settings.text_belief_extractor_name,
|
"name": settings.agent_settings.text_belief_extractor_name,
|
||||||
@@ -122,7 +122,7 @@ async def lifespan(app: FastAPI):
|
|||||||
"password": settings.agent_settings.text_belief_extractor_name,
|
"password": settings.agent_settings.text_belief_extractor_name,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
"PerVADAgent": (
|
"VADAgent": (
|
||||||
VADAgent,
|
VADAgent,
|
||||||
{"audio_in_address": "tcp://localhost:5558", "audio_in_bind": False},
|
{"audio_in_address": "tcp://localhost:5558", "audio_in_bind": False},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user