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 件 担当者 0 名 GitHub で見る
area/build bug
主要言語
Java
スター
5.6k
フォーク
1.3k
平均マージ
4日 12時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。