Package com.google.genai.types
Class LiveServerToolCallCancellation
-
- All Implemented Interfaces:
public abstract class LiveServerToolCallCancellation extends JsonSerializable
Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled.
If there were side-effects to those tool calls, clients may attempt to undo the tool calls. This message occurs only in cases where the clients interrupt server turns.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classLiveServerToolCallCancellation.BuilderBuilder for LiveServerToolCallCancellation.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description LiveServerToolCallCancellation()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<String>>ids()The ids of the tool calls to be cancelled. static LiveServerToolCallCancellation.Builderbuilder()Instantiates a builder for LiveServerToolCallCancellation. abstract LiveServerToolCallCancellation.BuildertoBuilder()Creates a builder with the same values as this instance. static LiveServerToolCallCancellationfromJson(String jsonString)Deserializes a JSON string to a LiveServerToolCallCancellation 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
-
builder
static LiveServerToolCallCancellation.Builder builder()
Instantiates a builder for LiveServerToolCallCancellation.
-
toBuilder
abstract LiveServerToolCallCancellation.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static LiveServerToolCallCancellation fromJson(String jsonString)
Deserializes a JSON string to a LiveServerToolCallCancellation object.
-
-
-
-