spring-ai|spring ai 2.0.0 |工具|tool
Spring AI 2.0.0 GA 最低依赖 Spring Boot 4.x、Spring Framework 7、Java21 不再兼容 Spring Boot3 底层切换厂商官方 SDK,大量 API 重构稳定性提升,面向 Agent、RAG 生产环境
工具
模型调用应用程序定义函数并根据其结果采取行动的能力
主要用途
- 信息检索
通过数据库、网络服务、文件系统或搜索引擎的数据来增强模型的知识
- 采取行动
执行具体业务指令
源码
https://gitee.com/kcnf_open/spring-ai-sample/tree/master/spring-ai/spring-ai-v2/spring-ai-v2-sample05-memory
