Table of Contents

Class LiveServerToolCallCancellation

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Notification for the client that a previously issued ToolCallMessage with the specified ids 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.

public record LiveServerToolCallCancellation : IEquatable<LiveServerToolCallCancellation>
Inheritance
LiveServerToolCallCancellation
Implements
Inherited Members

Properties

Ids

The ids of the tool calls to be cancelled.

[JsonPropertyName("ids")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<string>? Ids { get; set; }

Property Value

List<string>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a LiveServerToolCallCancellation object.

public static LiveServerToolCallCancellation? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

LiveServerToolCallCancellation

The deserialized LiveServerToolCallCancellation object, or null if deserialization fails.