Package com.google.genai.types
Class LiveClientToolResponse
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveClientToolResponse
Client generated response to a `ToolCall` received from the server.
Individual `FunctionResponse` objects are matched to the respective `FunctionCall` objects by the `id` field.
Note that in the unary and server-streaming GenerateContent APIs function calling happens by exchanging the `Content` parts, while in the bidi GenerateContent APIs function calling happens over this dedicated set of messages.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for LiveClientToolResponse. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for LiveClientToolResponse.static LiveClientToolResponse
Deserializes a JSON string to a LiveClientToolResponse object.abstract Optional<List<FunctionResponse>>
The response to the function calls.abstract LiveClientToolResponse.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
toJson
-
Constructor Details
-
LiveClientToolResponse
public LiveClientToolResponse()
-
-
Method Details
-
functionResponses
The response to the function calls. -
builder
Instantiates a builder for LiveClientToolResponse. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LiveClientToolResponse object.
-