Bug description A clear and concise description of what the bug is about. Within the MethodToolCallback class, in the buildMethodArguments method, specifically the following implementation:
The current implementation in buildTypedArgument uses Class<?> to determine the target type for deserialization. This approach can lead to deserialization failures for generic types like List
Environment JDK21 Spring-AI 1.0.0-M6
Steps to reproduce Define tool method like this,items is actually of the type List\<LinkedHashMap>.
Expected behavior
items should be List