Class LiveServerToolCallCancellation
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a LiveServerToolCallCancellation object.
public static LiveServerToolCallCancellation? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- LiveServerToolCallCancellation
The deserialized LiveServerToolCallCancellation object, or null if deserialization fails.