feat: LLM agent #12

Merged
2584433 merged 13 commits from feat/llm-agent into dev 2025-10-29 12:58:41 +00:00
4 changed files with 10 additions and 15 deletions
Showing only changes of commit c7a2effa78 - Show all commits

View File

@@ -1,13 +1,14 @@
import logging
import agentspeak
from spade.behaviour import CyclicBehaviour, OneShotBehaviour
from spade.behaviour import OneShotBehaviour
from spade.message import Message
from spade.template import Template
from spade_bdi.bdi import BDIAgent
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

View File

@@ -1,13 +1,10 @@
import asyncio
import json
import logging
from spade.agent import Message
from spade.behaviour import CyclicBehaviour
from spade_bdi.bdi import BDIAgent
from control_backend.core.config import settings
class ReceiveLLMResponseBehaviour(CyclicBehaviour):
"""
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.
"""
import json
import logging
from typing import Any
import asyncio
import httpx
from spade.agent import Agent
from spade.behaviour import CyclicBehaviour
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.core.config import settings
class LLMAgent(Agent):

View File

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