Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
merge origin/main into pr-1704
Re-bin4784eb4128a3
diff --cc nanobot/agent/loop.pyindex 4f6a0511d,fcbc88021..ba35a23a5--- a/nanobot/agent/loop.py+++ b/nanobot/agent/loop.py@@@ -585,11 -191,9 +585,11 @@@ class AgentLoopwhile iteration < self.max_iterations:iteration += 1+ tool_defs = self.tools.get_definitions()+- response = await self.provider.chat(+ response = await self.provider.chat_with_retry(messages=messages,- tools=self.tools.get_definitions(),+ tools=tool_defs,model=self.model,temperature=self.temperature,max_tokens=self.max_tokens,diff --cc nanobot/agent/memory.pyindex c8896c89b,66efec2f2..e29788a81--- a/nanobot/agent/memory.py+++ b/nanobot/agent/memory.py@@@ -100,21 -111,9 +100,21 @@@ class MemoryStore{chr(10).join(lines)}"""try:- response = await provider.chat(+ response = await provider.chat_with_retry(messages=[- {"role": "system", "content": "You are a memory consolidation agent. Call the save_memory tool with your consolidation of the conversation."},+ {+ "role": "system",+ "content": (+ "You are a memory consolidation agent.\n"+ "Your job is to:\n"+ "1) Append a concise but grep-friendly entry to HISTORY.md summarizing key events, decisions and topics.\n"+ " - Write 1 paragraph of 2–5 sentences that starts with [YYYY-MM-DD HH:MM].\n"+ " - Include concrete names, IDs and numbers so it is easy to search with grep.\n"+ "2) Update long-term MEMORY.md with stable facts and user preferences as markdown, including all existing facts plus new ones.\n"+ "3) Optionally return a short context_summary (1–3 sentences) that will replace the raw messages in future dialogue history.\n\n"+ "Always call the save_memory tool with history_entry, memory_update and (optionally) context_summary."+ ),+ },{"role": "user", "content": prompt},],tools=_SAVE_MEMORY_TOOL,