feat: 集成飞书通知和机器人对话系统
- 新增通知系统 (notifications 表、服务、API) - 新增飞书定时任务结果推送 (webhook + 应用消息) - 新增飞书应用消息发送服务 (feishu_app_service) - 新增飞书 WebSocket 长连接事件监听 (苹果应用) - 新增飞书账号绑定/解绑 API - 新增橙子飞书机器人 (独立 WS 连接,固定路由到橙子助手 Agent) - 执行记录添加 schedule_id,用户添加飞书绑定字段 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -82,6 +82,19 @@ class Settings(BaseSettings):
|
||||
# 单执行工具实际执行次数上限(LLM function calling 每执行一个工具计 1)
|
||||
WORKFLOW_MAX_TOOL_CALLS_PER_RUN: int = 500
|
||||
|
||||
# 外部访问地址(用于飞书通知中的详情链接等)
|
||||
EXTERNAL_URL: str = ""
|
||||
|
||||
# 飞书应用配置(用于发送消息通知到用户飞书)
|
||||
FEISHU_APP_ID: str = ""
|
||||
FEISHU_APP_SECRET: str = ""
|
||||
FEISHU_VERIFICATION_TOKEN: str = "6BtaWwXqQZh29syLvdxstcS8tIGMmI8U"
|
||||
|
||||
# 橙子飞书应用配置(独立 WS 连接,直接路由到橙子助手 Agent)
|
||||
ORANGE_APP_ID: str = ""
|
||||
ORANGE_APP_SECRET: str = ""
|
||||
ORANGE_AGENT_ID: str = "" # 创建橙子助手后写入
|
||||
|
||||
class Config:
|
||||
env_file = str(_ENV_PATH)
|
||||
case_sensitive = True
|
||||
|
||||
@@ -51,4 +51,5 @@ def init_db():
|
||||
import app.models.agent_learning_pattern
|
||||
import app.models.agent_schedule
|
||||
import app.models.knowledge_base
|
||||
import app.models.notification
|
||||
Base.metadata.create_all(bind=engine)
|
||||
|
||||
Reference in New Issue
Block a user