Class FunctionCall.Builder

java.lang.Object
com.google.genai.types.FunctionCall.Builder
Enclosing class:
FunctionCall

public abstract static class FunctionCall.Builder extends Object
Builder for FunctionCall.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • id

      public abstract FunctionCall.Builder id(String id)
      Setter for id.

      id: The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.

    • args

      public abstract FunctionCall.Builder args(Map<String,Object> args)
      Setter for args.

      args: Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.

    • name

      public abstract FunctionCall.Builder name(String name)
      Setter for name.

      name: Required. The name of the function to call. Matches [FunctionDeclaration.name].

    • build

      public abstract FunctionCall build()