Interface FunctionCallback.CommonCallbackInvokingSpec<B extends FunctionCallback.CommonCallbackInvokingSpec<B>>

All Known Subinterfaces:
FunctionCallback.FunctionInvokingSpec<I,O>, FunctionCallback.MethodInvokingSpec
All Known Implementing Classes:
DefaultCommonCallbackInvokingSpec
Enclosing interface:
FunctionCallback

public static interface FunctionCallback.CommonCallbackInvokingSpec<B extends FunctionCallback.CommonCallbackInvokingSpec<B>>
  • Method Details

    • description

      B description(String description)
      Function description. This description is used by the model to decide if the function should be called or not.
    • schemaType

      B schemaType(FunctionCallback.SchemaType schemaType)
      Specifies what FunctionCallback.SchemaType is used by the AI model to validate the function input arguments. Most models use JSON Schema, except Vertex AI that uses OpenAPI types.
    • responseConverter

      B responseConverter(Function<Object,String> responseConverter)
      Function 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.
    • inputTypeSchema

      B inputTypeSchema(String inputTypeSchema)
      You can provide the Input Type Schema directly. In this case it won't be generated from the inputType.
    • objectMapper

      B objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Custom object mapper for JSON operations.