spring-ai
spring-ai copied to clipboard
The function definition for function calls does not support generics.
trafficstars
Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create. If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description The function definition for function calls does not support generics.
Environment Spring ai 1.0.0-SNAPSHOT
Steps to reproduce
step1:
public class TrainSearchScheduleService implements Function<RequestBean<TrainSearchScheduleReq>, ResponseBean<TrainSearchScheduleResp>> { .... }
step2:
Runtime-based generic type erasure leads to the loss of generic information.
Expected behavior Support for defining generic classes