 hughhuangandClaude Sonnet 4.5
|
9d64bd2fff
|
docs: 添加项目文档和更新 .gitignore
新增文档:
- AGENTS.md: AI 代理开发指南,包含项目概述、技术栈、构建运行命令等
- PROJECT_COMPLETION.md: 项目完成总结,包含功能清单、代码统计、技术亮点等
更新配置:
- .gitignore: 添加 .claude/ 目录忽略规则
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:58:00 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
5270f2a55e
|
feat: 主界面支持伪流式接口,实时展示工具调用步骤
- 添加 streamMessageWithTools 函数支持伪流式接口
- 实时展示工具调用、工具响应、AI 思考过程
- 更新欢迎消息,说明新功能特性
- 保留原有 sendMessageWithTools 函数用于兼容
功能特性:
- 🔧 工具调用实时可见
- ✅ 工具响应实时展示
- 💬 AI 中间思考过程可见
- 📊 完整执行流程可视化
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:56:42 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
efc330ae3d
|
修复 StreamingStepAdvisor 类型转换错误
- 将 message 显式声明为 Message 类型
- 使用 instanceof 分别处理 AssistantMessage 和 ToolResponseMessage
- 修复 getToolCalls() 方法调用问题
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:53:19 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
85a3231574
|
docs: 更新 README.md 整合完整项目说明
- 整合所有核心功能说明(定价、MCP、TodoWrite、伪流式)
- 添加完整的技术架构图和系统架构说明
- 提供详细的快速开始指南和使用示例
- 包含三个核心场景的完整演示
- 添加工具和 Skills 的详细说明
- 提供完整的文档导航和学习资源
- 包含项目统计、性能指标和常见问题
fix: 修复 StreamingStepAdvisor 类型转换错误
- 添加 instanceof 检查避免类型转换异常
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:40:44 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
55c9f8edf9
|
docs: 添加完整成果总结文档
- 汇总本次开发的所有功能和改进
- 详细的代码统计和提交历史
- 完整的技术栈和工具集成说明
- 三个核心场景的完整演示
- 性能指标和用户体验对比
- 未来规划和版本历史
包含内容:
- MCP 标准化改造
- TodoWrite 任务管理
- 伪流式接口实现
- 完善的文档体系
- 技术亮点和学习价值
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:18:59 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
45c3ab606e
|
docs: 添加伪流式接口使用指南
- 详细说明伪流式接口的技术架构和工作原理
- 提供完整的 API 使用示例和前端集成代码
- 包含多个实际使用场景的步骤展示
- 说明性能优化和故障排查方法
- 对比三种接口类型的优缺点
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:17:02 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
0c5655af5b
|
feat: 实现伪流式接口,实时展示 LLM 执行步骤
- 新增 StreamingStepAdvisor 捕获每个执行步骤(工具调用、响应等)
- 在 ChatService 中实现 chatStreamWithTools 方法
- 使用 SSE 实时推送执行步骤到前端
- 新增 /api/chat/stream-with-tools 接口
- 创建测试页面 stream-test.html 展示实时步骤
功能特性:
- 实时显示用户消息
- 实时显示工具调用(工具名称、参数)
- 实时显示工具响应
- 实时显示 AI 文本响应
- 支持错误处理和显示
访问地址:http://localhost:8080/stream-test.html
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:15:37 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
85b3130514
|
docs: 添加快速开始指南
- 提供 5 分钟快速启动步骤
- 包含常见问题解答和故障排查
- 提供实战场景示例
- 说明进阶使用和开发模式
- 添加完整的检查清单
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:12:00 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
1edf9c5504
|
docs: 添加完整的项目总结文档
- 详细记录 MCP 标准化改造和 TodoWrite 集成的完整过程
- 说明项目当前状态和技术架构
- 提供核心功能演示和使用建议
- 包含代码统计和提交历史
- 规划未来发展方向
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:10:59 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
a170f2fadd
|
docs: 更新定价 Skill 说明,要求使用 TODO 跟进流程
- 在定价流程中明确要求使用 TODO 工具跟进各个步骤
- 确保定价过程的可追踪性和透明度
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 16:08:39 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
43e3a9b106
|
docs: 添加 TodoWrite 工具使用指南
- 详细说明 TodoWrite 的功能特性和使用场景
- 提供多个实际业务场景的使用示例
- 说明任务状态转换和事件驱动架构
- 包含最佳实践和常见问题解答
- 指导如何与其他工具(Skill、MCP、FileSystem)配合使用
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 15:36:51 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
02364ac6a7
|
chore: 更新 .gitignore 忽略示例项目目录
- 添加 spring-ai-agent-util-examples/ 到 .gitignore
- 避免将示例代码提交到主项目
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 15:35:57 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
1a9f8d047a
|
feat: 集成 TodoWrite 工具实现任务管理和进度追踪
- 添加 TodoWriteTool 用于 Agent 任务分解和进度管理
- 实现 TodoUpdateEvent 事件发布机制
- 添加 TodoProgressListener 监听器实时显示任务进度
- 支持任务状态转换:pending → in_progress → completed
- 在控制台显示任务进度百分比和状态图标
参考示例: spring-ai-agent-util-examples/todo-demo
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 15:35:34 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
7141a3f72c
|
refactor: 将 MCP 配置和代码改为符合 Spring AI 标准规范
- 修改 application.properties 使用标准属性路径 spring.ai.mcp.client.stdio.connections
- 将 args 参数格式从字符串改为数组格式 args[0]
- 移除手动的 MCP 进程启动和 JSON-RPC 实现(60+ 行代码)
- 使用 Spring AI 自动配置的 SyncMcpToolCallbackProvider 注入 MCP 工具
- 修复风险成本数值范围(1.2 ~ 2.5)与文档描述一致
- 优化 SKILL.md 描述,明确必须先使用主定价 Agent
参考文档: https://docs.spring.io/spring-ai/reference/api/mcp/mcp-client-boot-starter-docs.html
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 15:15:46 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
0260bc35cf
|
docs: 添加项目文档和更新 .gitignore
- 添加 WEB_DEMO_README.md 项目说明文档
- 更新 .gitignore 忽略 Python、Maven 产物
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-29 20:58:37 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
581f731de3
|
feat: 集成 MCP 工具支持
- 添加 spring-ai-starter-mcp-client 依赖
- 创建 Node.js MCP 服务器(risk-cost-server)
- 在 Application.java 中配置 MCP 工具回调
- 添加 get_customer_risk_cost 工具(返回 1.2%-2.5% 的风险成本率)
- 支持通过 FunctionToolCallback 调用 MCP 工具
- 更新系统提示,指导 AI 使用 MCP 工具
- 降级 Spring AI 到 1.1.2 版本
技术实现:
- 使用 FunctionToolCallback 包装 MCP 工具
- 通过 Stdio 方式与 MCP 服务器通信
- JSON-RPC 协议调用工具
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-29 20:58:16 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
c6f3eef29b
|
feat: 添加工具调用可视化和 LLM 日志记录
- 添加 ToolCallCaptureAdvisor 捕获工具调用信息
- 添加 LLMLoggingAdvisor 记录 LLM 请求响应到日志文件
- 修改 MyLoggingAdvisor 支持与 ToolCallCaptureAdvisor 协作
- 前端显示工具调用过程(名称、参数、结果)
- 日志文件按日期归档到 logs/llm/
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-29 20:57:39 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
13181ef406
|
feat: 将控制台应用改造为 Web 聊天界面
- 添加 ChatController 提供 REST API(流式/非流式聊天)
- 添加 ChatService 封装 ChatClient 调用逻辑
- 添加前端聊天界面(index.html、style.css、chat.js)
- 支持 SSE 流式响应和多轮对话记忆
- 集成 Markdown 渲染和代码高亮
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-29 20:57:28 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
6b4a347688
|
初始化 Spring AI Skills Demo 项目
- 配置使用智谱 AI (GLM-4.7) 替代 Google GenAI
- 添加 Spring Web 依赖支持 RestClient
- 创建 Java/Maven 项目的 .gitignore
- 集成 SkillsTool、ShellTools、FileSystemTools 等工具
- 包含多个定价策略相关的 AI Skills
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-29 11:44:29 +08:00 |
|