Class Function.Builder

java.lang.Object
com.google.genai.gaos.models.interactions.Function.Builder
Enclosing class:
Function

public static final class Function.Builder extends Object
  • Method Details

    • deferLoading

      public Function.Builder deferLoading(@Nullable Boolean deferLoading)
      If true, the function's loading is deferred.
    • description

      public Function.Builder description(@Nullable String description)
      A description of the function.
    • name

      public Function.Builder name(@Nullable String name)
      The name of the function.
    • parameters

      public Function.Builder parameters(@Nullable Object parameters)
      The JSON Schema for the function's parameters.

      Supports a subset of JSON Schema. `minLength`, `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and `maxContains` are ignored and not enforced.

    • shortDescription

      public Function.Builder shortDescription(@Nullable String shortDescription)
      A brief description of the function, shown to the model as a short summary of functions with `defer_loading` set to true.
    • build

      public Function build()