agentscope-ai / agentscope-ai/agentscope-java

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

Aberta
#1,271 3 comentários 2 reações 0 responsáveis Ver no GitHub
area/build bug
Linguagem predominante
Java
Estrelas
5.6k
Forks
1.3k
Merge médio
4d 12h
PRs com merge (30d)
77

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.