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 fix/structured-retry-classification-main
Xubin Renb575aed20ef6
diff --cc nanobot/providers/base.pyindex 0eb93cc5e,118eb80ca..da229dcc3--- a/nanobot/providers/base.py+++ b/nanobot/providers/base.py@@@ -54,14 -54,7 +54,14 @@@ class LLMResponseretry_after: float | None = None # Provider supplied retry wait in seconds.reasoning_content: str | None = None # Kimi, DeepSeek-R1, MiMo etc.thinking_blocks: list[dict] | None = None # Anthropic extended thinking+ # Structured error metadata used by retry policy when finish_reason == "error".+ error_status_code: int | None = None+ error_kind: str | None = None # e.g. "timeout", "connection"+ error_type: str | None = None # Provider/type semantic, e.g. insufficient_quota.+ error_code: str | None = None # Provider/code semantic, e.g. rate_limit_exceeded.+ error_retry_after_s: float | None = None+ error_should_retry: bool | None = None-+@propertydef has_tool_calls(self) -> bool:"""Check if response contains tool calls."""diff --cc nanobot/providers/openai_compat_provider.pyindex cb25e6f8c,950907212..cb662556a--- a/nanobot/providers/openai_compat_provider.py+++ b/nanobot/providers/openai_compat_provider.py@@@ -3,8 -3,8 +3,9 @@@from __future__ import annotationsimport asyncio+import email.utilsimport hashlib+ import importlib.utilimport osimport secretsimport string