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
fix(tools): strip <think> blocks from message tool content (#2621)
Flo8b4d6b651206
diff --git a/nanobot/agent/tools/message.py b/nanobot/agent/tools/message.pyindex 3ac813248..520020735 100644--- a/nanobot/agent/tools/message.py+++ b/nanobot/agent/tools/message.py@@ -84,6 +84,9 @@ class MessageTool(Tool):media: list[str] | None = None,**kwargs: Any) -> str:+ from nanobot.utils.helpers import strip_think+ content = strip_think(content)+channel = channel or self._default_channelchat_id = chat_id or self._default_chat_id# Only inherit default message_id when targeting the same channel+chat.