feat: norms and goals to llm
base goals and norms can be defined in llm_instructions.py cleaned the code ref: N25B-215
This commit is contained in:
@@ -30,7 +30,7 @@ class BDICoreAgent(BDIAgent):
|
||||
self.add_behaviour(BeliefSetter())
|
||||
self.add_behaviour(ReceiveLLMResponseBehaviour())
|
||||
|
||||
await self._send_to_llm("Hello we are the Pepper plus team")
|
||||
await self._send_to_llm("Hi pepper, how are you?")
|
||||
# This is the example message currently sent to the llm at the start of the Program
|
||||
|
||||
self.logger.info("BDICoreAgent setup complete")
|
||||
@@ -52,7 +52,7 @@ class BDICoreAgent(BDIAgent):
|
||||
self._send_to_llm(message_text)
|
||||
yield
|
||||
|
||||
async def _send_to_llm(self, text: str) -> str:
|
||||
async def _send_to_llm(self, text: str):
|
||||
"""
|
||||
Sends a text query to the LLM Agent asynchronously.
|
||||
"""
|
||||
@@ -61,12 +61,10 @@ class BDICoreAgent(BDIAgent):
|
||||
async def run(self) -> None:
|
||||
msg = Message(
|
||||
to= settings.agent_settings.llm_agent_name + '@' + settings.agent_settings.host,
|
||||
body= text,
|
||||
thread= "llm_request",
|
||||
body= text
|
||||
)
|
||||
|
||||
await self.send(msg)
|
||||
self.agent.logger.debug("Message sent to LLM: %s", text)
|
||||
|
||||
self.add_behaviour(SendBehaviour())
|
||||
return "LLM message dispatch scheduled"
|
||||
self.add_behaviour(SendBehaviour())
|
||||
Reference in New Issue
Block a user