Package com.google.genai.types
Class FunctionCall
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FunctionCall
A function call.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()
Optional.static FunctionCall.Builder
builder()
Instantiates a builder for FunctionCall.static FunctionCall
Deserializes a JSON string to a FunctionCall object.id()
The unique id of the function call.name()
Required.abstract FunctionCall.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
FunctionCall
public FunctionCall()
-
-
Method Details
-
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
Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details. -
name
Required. The name of the function to call. Matches [FunctionDeclaration.name]. -
builder
Instantiates a builder for FunctionCall. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a FunctionCall object.
-