Package com.google.genai.types
Class LiveClientContextUpdateTools
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveClientContextUpdateTools
A wrapper around the list of tools.
This wrapper exists because a bare `repeated Tool` field cannot tell apart "not sending a tools update" from "clearing all tools": an unset repeated field and an empty repeated field look identical on the wire. Wrapping the list in a message adds a presence bit, so the two cases become: - `tools` field unset: no update; keep the previously provided tools. - `tools` field set (even with an empty list): replace the current tools with the provided list, which may be empty to clear all tools.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for LiveClientContextUpdateTools. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for LiveClientContextUpdateTools.static LiveClientContextUpdateToolsDeserializes a JSON string to a LiveClientContextUpdateTools object.abstract LiveClientContextUpdateTools.BuilderCreates a builder with the same values as this instance.tools()The list of tools the model may use to generate the next response.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
LiveClientContextUpdateTools
public LiveClientContextUpdateTools()
-
-
Method Details
-
tools
The list of tools the model may use to generate the next response. -
builder
Instantiates a builder for LiveClientContextUpdateTools. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LiveClientContextUpdateTools object.
-