Interface FunctionCallback.MethodInvokingSpec
- All Superinterfaces:
FunctionCallback.CommonCallbackInvokingSpec<FunctionCallback.MethodInvokingSpec>
- Enclosing interface:
- FunctionCallback
public static interface FunctionCallback.MethodInvokingSpec
extends FunctionCallback.CommonCallbackInvokingSpec<FunctionCallback.MethodInvokingSpec>
Method invoking builder interface.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theFunctionCallback
instance.Optional function name.targetClass
(Class<?> targetClass) Target class where the method is defined.targetObject
(Object methodObject) For non-static objects the target object is used to invoke the method.Methods inherited from interface org.springframework.ai.model.function.FunctionCallback.CommonCallbackInvokingSpec
description, inputTypeSchema, objectMapper, responseConverter, schemaType
-
Method Details
-
name
Optional function name. If not provided the method name is used as the function.- Parameters:
name
- Function name. Unique within the model.
-
targetObject
For non-static objects the target object is used to invoke the method.- Parameters:
methodObject
- target object where the method is defined.
-
targetClass
Target class where the method is defined. Used for static methods. For non-static methods the target object is used.- Parameters:
targetClass
- method target class.
-
build
FunctionCallback build()Builds theFunctionCallback
instance.
-