Repository navigation
feat(agent): 实现 Agent 系统并接入 TUI 聊天页面 - #123
Open
fusheng357 wants to merge 1 commit into
Open
fusheng357 wants to merge 1 commit into
fusheng357 wants to merge 1 commit into
Conversation
fusheng357
commented
Oct 12, 2026
Collaborator
- 新增 Agent 核心模块,支持流式对话与基于提示词的 ReAct 工具调用循环
- 实现 SessionStore 会话持久化,将对话消息写入 SQLite 数据库
- 新增 AppConfig 模块,从环境变量读取供应商、模型、工作目录等配置
- 新增 Runtime 模块,提供工作目录上下文与路径越界校验
- 新增 ToolRegistry 工具系统,内置文件读写与目录列表工具
- 为 HttpTransport 添加 execute_sse 方法,支持原始 SSE 事件流
- 为 AIClient 添加 post_sse 便捷方法,供供应商自定义解析
- 重写聊天页面,将 Agent 接入 TUI 实现实时流式渲染与交互
- 新增 Agent 核心模块,支持流式对话与基于提示词的 ReAct 工具调用循环 - 实现 SessionStore 会话持久化,将对话消息写入 SQLite 数据库 - 新增 AppConfig 模块,从环境变量读取供应商、模型、工作目录等配置 - 新增 Runtime 模块,提供工作目录上下文与路径越界校验 - 新增 ToolRegistry 工具系统,内置文件读写与目录列表工具 - 为 HttpTransport 添加 execute_sse 方法,支持原始 SSE 事件流 - 为 AIClient 添加 post_sse 便捷方法,供供应商自定义解析 - 重写聊天页面,将 Agent 接入 TUI 实现实时流式渲染与交互
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.