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(context): Fix 'Missing `reasoning_content` field' error for deepseek provider.
nanobot-bot01c835aac2bf
diff --git a/nanobot/agent/context.py b/nanobot/agent/context.pyindex 876d43d97..b3de8da08 100644--- a/nanobot/agent/context.py+++ b/nanobot/agent/context.py@@ -235,7 +235,7 @@ To recall past events, grep {workspace_path}/memory/HISTORY.md"""msg["tool_calls"] = tool_calls# Include reasoning content when provided (required by some thinking models)- if reasoning_content:+ if reasoning_content is not None:msg["reasoning_content"] = reasoning_contentmessages.append(msg)