 hughhuang(黄健铭)andClaude
|
6b602f5cd0
|
feat: 优化系统提示词,强调优先使用 Skill 工具
- 修改 Application.java 中的系统提示词,明确工具优先级
- 强调对于任何用户任务都应优先检查并使用匹配的 Skill
- 移除 AskUserQuestionTool 以解决启动错误
- 添加项目文档 CLAUDE.md
- 更新前端界面和交互逻辑
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-02-04 12:07:53 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
b00ec76638
|
fix: 添加 System Prompt 修复 TodoWriteTool JSON 反序列化错误
问题:
- LLM 返回数组格式 [{...}] 导致反序列化失败
- TodoWriteTool 期望对象格式 {todos: [{...}]}
解决方案:
- 添加 defaultSystem 指导 LLM 使用正确的 JSON 格式
- 明确说明正确和错误的格式示例
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-30 18:05:52 +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
|
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
|
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 |
|