Skip to content

The function definition for function calls does not support generics. #1118

Closed
@lvchzh

Description

@lvchzh

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions