Class DefaultCommonCallbackInvokingSpec<B extends FunctionCallback.CommonCallbackInvokingSpec<B>>
java.lang.Object
org.springframework.ai.model.function.DefaultCommonCallbackInvokingSpec<B>
- All Implemented Interfaces:
FunctionCallback.CommonCallbackInvokingSpec<B>
@Deprecated
public class DefaultCommonCallbackInvokingSpec<B extends FunctionCallback.CommonCallbackInvokingSpec<B>>
extends Object
implements FunctionCallback.CommonCallbackInvokingSpec<B>
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.The description of the function callback.protected StringDeprecated.(Optional) Instead of generating the input type schema from the input type or method argument types, you can provide the schema directly.protected com.fasterxml.jackson.databind.ObjectMapperDeprecated.Deprecated.The function to convert the response object to a string.protected FunctionCallback.SchemaTypeDeprecated.The schema type to use for the input type schema generation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Deprecated.Function description.Deprecated.Deprecated.com.fasterxml.jackson.databind.ObjectMapperDeprecated.Deprecated.Deprecated.inputTypeSchema(String inputTypeSchema) Deprecated.You can provide the Input Type Schema directly.objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated.Custom object mapper for JSON operations.responseConverter(Function<Object, String> responseConverter) Deprecated.Function response converter.schemaType(FunctionCallback.SchemaType schemaType) Deprecated.Specifies whatFunctionCallback.SchemaTypeis used by the AI model to validate the function input arguments.
-
Field Details
-
description
Deprecated.The description of the function callback. Used to hint the LLM model about the tool's purpose and when to use it. -
schemaType
Deprecated.The schema type to use for the input type schema generation. The default is JSON Schema. Note: Vertex AI requires the input type schema to be in Open API schema -
responseConverter
Deprecated.The function to convert the response object to a string. The default is to convert the response to a JSON string. -
inputTypeSchema
Deprecated.(Optional) Instead of generating the input type schema from the input type or method argument types, you can provide the schema directly. This will override the generated schema. -
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapperDeprecated.
-
-
Constructor Details
-
DefaultCommonCallbackInvokingSpec
public DefaultCommonCallbackInvokingSpec()Deprecated.
-
-
Method Details
-
description
Deprecated.Description copied from interface:FunctionCallback.CommonCallbackInvokingSpecFunction description. This description is used by the model to decide if the function should be called or not.- Specified by:
descriptionin interfaceFunctionCallback.CommonCallbackInvokingSpec<B extends FunctionCallback.CommonCallbackInvokingSpec<B>>
-
schemaType
Deprecated.Description copied from interface:FunctionCallback.CommonCallbackInvokingSpecSpecifies whatFunctionCallback.SchemaTypeis used by the AI model to validate the function input arguments. Most models use JSON Schema, except Vertex AI that uses OpenAPI types.- Specified by:
schemaTypein interfaceFunctionCallback.CommonCallbackInvokingSpec<B extends FunctionCallback.CommonCallbackInvokingSpec<B>>
-
responseConverter
Deprecated.Description copied from interface:FunctionCallback.CommonCallbackInvokingSpecFunction response converter. The default implementation converts the output into String before sending it to the Model. Provide a custom function responseConverter implementation to override this.- Specified by:
responseConverterin interfaceFunctionCallback.CommonCallbackInvokingSpec<B extends FunctionCallback.CommonCallbackInvokingSpec<B>>
-
inputTypeSchema
Deprecated.Description copied from interface:FunctionCallback.CommonCallbackInvokingSpecYou can provide the Input Type Schema directly. In this case it won't be generated from the inputType.- Specified by:
inputTypeSchemain interfaceFunctionCallback.CommonCallbackInvokingSpec<B extends FunctionCallback.CommonCallbackInvokingSpec<B>>
-
objectMapper
Deprecated.Description copied from interface:FunctionCallback.CommonCallbackInvokingSpecCustom object mapper for JSON operations.- Specified by:
objectMapperin interfaceFunctionCallback.CommonCallbackInvokingSpec<B extends FunctionCallback.CommonCallbackInvokingSpec<B>>
-
getDescription
Deprecated. -
getSchemaType
Deprecated. -
getResponseConverter
Deprecated. -
getInputTypeSchema
Deprecated. -
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()Deprecated.
-
FunctionToolCallback.BuilderandMethodToolCallback.Builder.