1 Star 5 Fork 1

OpenSolon/solon-ai-mcp-embedded-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
西东 demo 67bb36d 2天前
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

solon-ai-mcp-embedded-examples

提醒

  • Solon.start 默认会扫描 “源类” 包下面的所有类(这个示例用根类,作为扫描“源”)

    • 放在 webapp 下面,会被自动扫描
    • 如果没有这种 “包括关系”,要使用 @Import 导入注解。具体从 solon 官网了解
  • 可以直接运行 test/java/client/McpClientTest 单测(会自动启动服务端)

  • 运运行 Llm 单测,需要先修改本地的模型配置(不然,会出错)

说明

示例内容包括:

  • llm
    • chatModel 基本使用,及单测
    • tool call 基本使用,及单测
    • rag 基本使用,及单测
      • embeddingModel
      • repository
      • splitter
  • mcp
    • server 基本使用
    • client 基本使用,及单测

示例

示例 说明
solon-ai-embedded-jfinal
solon-ai-embedded-jfinal-newstyle 使用了 solon mvc 体系(支持异步响应)
solon-ai-embedded-solon
solon-ai-embedded-springboot2
solon-ai-embedded-springboot2-newstyle 更适合 sb2 集成
solon-ai-embedded-springboot3
solon-ai-embedded-springboot3-newstyle 更适合 sb3 集成
solon-ai-embedded-vertx
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/opensolon/solon-ai-mcp-embedded-examples.git
git@gitee.com:opensolon/solon-ai-mcp-embedded-examples.git
opensolon
solon-ai-mcp-embedded-examples
solon-ai-mcp-embedded-examples
main

搜索帮助