Package com.google.genai.types
Class LiveClientToolResponse
-
- All Implemented Interfaces:
public abstract class LiveClientToolResponse extends JsonSerializable
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 Classes Modifier and Type Class Description public abstract classLiveClientToolResponse.BuilderBuilder for LiveClientToolResponse.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description LiveClientToolResponse()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<FunctionResponse>>functionResponses()The response to the function calls. static LiveClientToolResponse.Builderbuilder()Instantiates a builder for LiveClientToolResponse. abstract LiveClientToolResponse.BuildertoBuilder()Creates a builder with the same values as this instance. static LiveClientToolResponsefromJson(String jsonString)Deserializes a JSON string to a LiveClientToolResponse object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
functionResponses
abstract Optional<List<FunctionResponse>> functionResponses()
The response to the function calls.
-
builder
static LiveClientToolResponse.Builder builder()
Instantiates a builder for LiveClientToolResponse.
-
toBuilder
abstract LiveClientToolResponse.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static LiveClientToolResponse fromJson(String jsonString)
Deserializes a JSON string to a LiveClientToolResponse object.
-
-
-
-