root
1d7946d98a
feat(backend): B3 Task 3.2 - SSE 流式响应实现
...
- 添加 stream_chat 生成器函数处理 SSE 事件流
- 实现 message_start / token / message_end 事件格式
- 添加 messages/stream SSE 端点
- 构建 LLM 消息列表(system prompt + 历史 + 用户消息)
- 持久化用户和 assistant 消息到数据库
- 添加 SSE 测试用 mock Provider
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-07 02:33:12 +08:00
root
a0c2586487
feat(backend): B3 Task 3.1 - 对话与消息基础 API
...
- 添加 Conversation CRUD 端点(创建/列表/获取/删除)
- 添加 Message 操作端点(发送/列表)
- 注册 conversations 路由到 API v1
- 修复测试 fixture 的 API 路径前缀
- 添加 async_client fixture alias
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-07 02:24:06 +08:00
root
c62156af53
feat(backend): 数字员工平台 B1+B2 批次实现
...
B1: 项目脚手架 + 数据模型 + 租户管理
- Task 1.1: FastAPI 项目脚手架、SQLite + async SQLAlchemy
- Task 1.2: 7 个数据模型 (Tenant, TenantConfig, DigitalEmployee, Conversation, Message, KnowledgeBase, Document)
- Task 1.3: 租户 CRUD API + LLM 配置(含 API Key AES 加密)
B2: 数字员工配置 + LLM Provider 抽象层
- Task 2.1: 数字员工 CRUD API(关联知识库)
- Task 2.2: BaseLLMProvider 抽象接口 + OpenAI/Qwen Provider
- Task 2.3: Provider 动态实例化 + test-provider 端点
验证: 26 个测试全部通过
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-06 11:29:48 +08:00
root
44c37420af
test: fix test_models to use test engine and import models
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-05 22:53:40 +08:00
root
a8e3ad8e16
docs: add implementation plan for digital employee platform
...
5 batches, 15 tasks: scaffold→models→tenants→employees→providers→
conversation SSE→RAG pipeline→integration tests+security hardening.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-05 09:50:50 +08:00
root
5c13f08c03
docs: add digital employee platform design document
...
Multi-tenant platform design with unified LLM provider abstraction,
RAG knowledge base, and tenant-isolated data storage. MVP uses SQLite +
ChromaDB, with planned migration to PostgreSQL + pgvector.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-05 05:54:05 +08:00
SPB Agent
147104819b
Initial commit
2026-05-05 05:30:59 +08:00