diff --git a/agent.py b/agent.py index fb88c09..11e6748 100644 --- a/agent.py +++ b/agent.py @@ -8,26 +8,27 @@ import asyncio class Agent: def __init__(self): self.logger = get_logger("NORA") - + self.llm = BedrockClient() self.mcp = MCPClient(MCP_URL) - + self.tools = [] + + # System-Prompt als erste User-Nachricht (Nova 2 Lite kompatibel) self.messages = [ { - "role": "system", + "role": "user", "content": [ { "text": ( - "Du bist N.O.R.A, ein Smart-Home Assistent. " - "Du steuerst Geräte über Tools. " - "Nutze Tools wenn sinnvoll. Sei präzise und hilfreich." + "Du bist N.O.R.A, ein freundlicher und kompetenter Smart-Home Assistent " + "für OpenHAB. Du steuerst Geräte und beantwortest Fragen über das Zuhause. " + "Nutze Tools, wenn sinnvoll. Antworte auf Deutsch und sei hilfreich." ) } ] } ] - # ------------------------- # TOOL LOADING # -------------------------