agentscope-ai / agentscope-ai/agentscope-java

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

Đang mở
#1,271 3 bình luận 2 reaction 0 người được giao Xem trên GitHub
area/build bug
Ngôn ngữ chính
Java
Star
5.6k
Fork
1.3k
Merge trung bình
4 ngày 12 giờ
Pull request đã merge (30 ngày)
77

Mô tả

**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):**

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.