agentscope-ai / agentscope-ai/agentscope-java

[Bug]: Dependency conflict with org.springframework.ai 2.0.0-M4 due to com.github.victools version mismatch

未關閉
#1,271 3 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
area/build bug
主要語言
Java
星號
5.6k
分支
1.3k
平均合併
4 天 12 小時
30 天內合併 PR
77

描述

**AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.**

**Describe the bug**
There is a dependency conflict when using AgentScope 1.0.11 together with Spring AI 2.0.0-M4 (org.springframework.ai).

The conflict arises because org.springframework.ai:2.0.0-M4 depends on com.github.victools:jsonschema-generator (or related modules) at version 5.0.0, while AgentScope 1.0.11 appears to depend on a different/incompatible version of the same library. This leads to ClassNotFoundException, NoSuchMethodError, or runtime serialization issues when both libraries are present in the classpath.

**To Reproduce**
Steps to reproduce the behavior:

1. Create a new Spring Boot project.
2. Add the following dependencies to your pom.xml (Maven) or build.gradle (Gradle):
- io.agentscope:agentscope:1.0.11
- org.springframework.ai:spring-ai-core:2.0.0-M4 (or relevant Spring AI starter)
3. Attempt to build and run the application.
4. Observe the dependency resolution error or runtime exception related to com.github.victools.

**Error messages**
java.lang.NoSuchMethodError: 'com.fasterxml.jackson.databind.node.ObjectNode com.github.victools.jsonschema.generator.SchemaGenerator.generateSchema(java.lang.reflect.Type, java.lang.reflect.Type[])'
at io.agentscope.core.util.JsonSchemaUtils.generateSchemaFromType(JsonSchemaUtils.java:133)
at io.agentscope.core.tool.ToolSchemaGenerator.extractParameterInfo(ToolSchemaGenerator.java:118)
**Environment (please complete the following information):**

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。