Commit Graph

3 Commits

Author SHA1 Message Date
1a4a8dce98 feat: 移植6个缺失工具定义和handler到AIAgentService
- memory_introspect — 查看记忆状态统计
- memory_archive — 归档旧记忆
- memory_cleanup — 清理已删除数据
- memory_query_archived — 查询已归档记忆
- context_rewrite — 压缩工具调用上下文
- persona_remove — 删除单条人设属性

同时在GraphMemoryService添加:
- queryArchived() 方法
- personaRemove() 方法

更新系统提示词,加入工具调用规则和context_rewrite使用说明
2026-04-30 16:44:27 +08:00
ba44d50d7a fix: AIAgentService getContext(this) 改为外部传入,Index 添加 aboutToDisappear 释放 display 监听
- AIAgentService: 添加 appContext 字段,构造函数接收 Context 参数
- ChatPage: 创建 AIAgentService 时传入 getContext(this)
- Index: 添加 displayCallback 字段和 aboutToDisappear 释放监听
2026-04-30 15:02:00 +08:00
45c098d10b chore: update harmonyos source files 2026-04-29 23:30:02 +08:00