Package com.google.genai.types
Class LiveServerToolCall
-
- All Implemented Interfaces:
public abstract class LiveServerToolCall extends JsonSerializable
Request for the client to execute the `function_calls` and return the responses with the matching `id`s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classLiveServerToolCall.BuilderBuilder for LiveServerToolCall.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description LiveServerToolCall()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<FunctionCall>>functionCalls()The function call to be executed. static LiveServerToolCall.Builderbuilder()Instantiates a builder for LiveServerToolCall. abstract LiveServerToolCall.BuildertoBuilder()Creates a builder with the same values as this instance. static LiveServerToolCallfromJson(String jsonString)Deserializes a JSON string to a LiveServerToolCall 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
-
functionCalls
abstract Optional<List<FunctionCall>> functionCalls()
The function call to be executed.
-
builder
static LiveServerToolCall.Builder builder()
Instantiates a builder for LiveServerToolCall.
-
toBuilder
abstract LiveServerToolCall.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static LiveServerToolCall fromJson(String jsonString)
Deserializes a JSON string to a LiveServerToolCall object.
-
-
-
-