Files
nanobot/nanobot/channels/feishu/config.py
T
chengyongru a4d2430140 refactor: remove redundant comments and docstrings (#6527)
* refactor: remove redundant comments and docstrings

* fix(signal): annotate async context manager as a generator
2026-10-30 13:07:03 +08:00

35 lines
940 B
Python

from typing import Literal
from pydantic import Field
from nanobot.config_base import Base
class FeishuConfig(Base):
"""Feishu/Lark channel configuration using WebSocket long connection."""
instance_id: str = "default"
name: str = "nanobot"
identity_key: str = ""
enabled: bool = False
app_id: str = ""
app_secret: str = ""
encrypt_key: str = ""
verification_token: str = ""
allow_from: list[str] = Field(default_factory=list)
react_emoji: str = "THUMBSUP"
done_emoji: str | None = None
tool_hint_prefix: str = "\U0001f527"
group_policy: Literal["open", "mention"] = "mention"
reply_to_message: bool = False
streaming: bool = True
domain: Literal["feishu", "lark"] = "feishu"
topic_isolation: bool = True
def feishu_default_config() -> dict[str, object]:
return FeishuConfig().model_dump(by_alias=True)
__all__ = ["FeishuConfig", "feishu_default_config"]