 hughhuangandClaude Sonnet 4.5
|
fd09a55614
|
feat: 实现会话管理和 AI 回复保存功能
## 新增功能
- 实现会话持久化存储(JSON 文件)
- 支持会话列表显示、切换、创建、删除
- 自动保存用户消息和 AI 回复
- 优化 Markdown 渲染样式(标题、列表、代码块、表格等)
- 添加过程数据可视化(思考步骤、工具调用、响应)
## 技术改进
- 新增 ConversationMessage、ConversationMetadata 模型
- 新增 ConversationStorageService 服务(JSON 文件存储)
- 在 ChatService 中添加流式响应完成后保存 AI 回复的逻辑
- 优化删除会话逻辑:删除当前会话后切换到现有会话,而非自动创建新会话
- 优化应用初始化:优先使用现有会话,仅在没有会话时才创建新会话
## 依赖更新
- 添加 jackson-datatype-jsr310 支持 Java 8 DateTime
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-31 22:03:28 +08:00 |
|
 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
|
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
|
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
|
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 |
|