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
style: restore single-line formatting for readability
Re-bin941c3d982643
diff --git a/nanobot/config/schema.py b/nanobot/config/schema.pyindex 078608044..76ec74dc1 100644--- a/nanobot/config/schema.py+++ b/nanobot/config/schema.py@@ -27,9 +27,7 @@ class TelegramConfig(Base):enabled: bool = Falsetoken: str = "" # Bot token from @BotFatherallow_from: list[str] = Field(default_factory=list) # Allowed user IDs or usernames- proxy: str | None = (- None # HTTP/SOCKS5 proxy URL, e.g. "http://127.0.0.1:7890" or "socks5://127.0.0.1:1080"- )+ proxy: str | None = None # HTTP/SOCKS5 proxy URL, e.g. "http://127.0.0.1:7890" or "socks5://127.0.0.1:1080"class FeishuConfig(Base):@@ -86,9 +84,7 @@ class EmailConfig(Base):from_address: str = ""# Behavior- auto_reply_enabled: bool = (- True # If false, inbound email is read but no automatic reply is sent- )+ auto_reply_enabled: bool = True # If false, inbound email is read but no automatic reply is sentpoll_interval_seconds: int = 30mark_seen: bool = Truemax_body_chars: int = 12000@@ -163,9 +159,7 @@ class QQConfig(Base):enabled: bool = Falseapp_id: str = "" # 机器人 ID (AppID) from q.qq.comsecret: str = "" # 机器人密钥 (AppSecret) from q.qq.com- allow_from: list[str] = Field(- default_factory=list- ) # Allowed user openids (empty = public access)+ allow_from: list[str] = Field(default_factory=list) # Allowed user openids (empty = public access)class ChannelsConfig(Base):@@ -285,9 +279,7 @@ class Config(BaseSettings):"""Get expanded workspace path."""return Path(self.agents.defaults.workspace).expanduser()- def _match_provider(- self, model: str | None = None- ) -> tuple["ProviderConfig | None", str | None]:+ def _match_provider(self, model: str | None = None) -> tuple["ProviderConfig | None", str | None]:"""Match provider config and its registry name. Returns (config, spec_name)."""from nanobot.providers.registry import PROVIDERS