Commit graph hololake-system-architecture/product-source/guanghu-knowledge-base/server/persona-agent.ts
Author SHA1 Message Date
a106b23f9b feat: add HoloLake personal channel module runtime 2026-08-09 14:14:07 +08:00
787ba2ad3f fix(hololake): ship dynamic persona routes and coherent workspace 2026-08-09 10:43:56 +08:00
5105ec5e32 feat(hololake): ship language platform 0.7.0 2026-08-09 03:37:41 +08:00
a360982a9b feat: add HoloLake folder import and official assistant 2026-08-08 11:15:34 +08:00
46bdd0ca73 fix: complete HoloLake Agent and Forgejo desktop runtime 2026-08-08 10:39:18 +08:00
dcf8f7d7e9 feat(persona-agent): 光湖人格 Agent v0.1.0 — Grok Build 架构拆解+Git驱动人格体
核心架构(拆解自 xAI Grok Build 开源 Rust crate):
- PersonaAgent: Agent = Definition + ToolBridge + PromptContext(映射自 xai-grok-agent)
- 7个内置工具: read/create/update/delete/search/list/history(直接操作 Git 引擎)
- LLM 调用层: 可插拔 OpenAI-compatible API(支持 tool calling)
- 离线模式: 无 API Key 时降级为本地响应

API 端点:
- POST /api/agent/chat — Agent 对话(支持工具调用链)
- GET  /api/agent/status — Agent 状态
- GET  /api/agent/conversation — 对话历史
- POST /api/agent/clear — 清空对话

前端:
- AgentChat 组件: 对话气泡+工具调用展示+欢迎建议
- 三栏布局: 文档树 | 编辑器 | Agent 面板(可收起)

设计原则:
- Agent 是活的人格体,不是孤立的功能模块
- Agent 直接操作 Git(知识库引擎 = 人格体记忆空间)
- 所有 Git 依赖模块由人格体驱动
- 不搬 Rust 代码,拆设计模式用 TypeScript 重新实现
2026-08-08 07:38:09 +08:00