Class TypeResolverHelper
java.lang.Object
org.springframework.ai.model.function.TypeResolverHelper
- Author:
- Christian Tzolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class
<?> getFunctionArgumentClass
(Class<? extends Function<?, ?>> functionClass, int argumentIndex) static Type
getFunctionArgumentType
(Class<? extends Function<?, ?>> functionClass, int argumentIndex) static Type
getFunctionArgumentType
(Type functionType, int argumentIndex) static Class
<?> getFunctionInputClass
(Class<? extends Function<?, ?>> functionClass) static Type
getFunctionInputType
(Class<? extends Function<?, ?>> functionClass) static Class
<?> getFunctionOutputClass
(Class<? extends Function<?, ?>> functionClass) static Type
getFunctionOutputType
(Class<? extends Function<?, ?>> functionClass) static Class
<?> toRawClass
(Type type) Effectively convertsType
which could beParameterizedType
to raw Class (no generics).
-
Constructor Details
-
TypeResolverHelper
public TypeResolverHelper()
-
-
Method Details
-
getFunctionInputClass
-
getFunctionOutputClass
-
getFunctionArgumentClass
-
getFunctionInputType
-
getFunctionOutputType
-
getFunctionArgumentType
-
getFunctionArgumentType
-
toRawClass
Effectively convertsType
which could beParameterizedType
to raw Class (no generics).
-