Table of Contents

Class LiveSendToolResponseParameters

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

Parameters for sending tool responses to the live API.

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

Properties

FunctionResponses

Tool responses to send to the session.

[JsonPropertyName("functionResponses")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<FunctionResponse>? FunctionResponses { get; set; }

Property Value

List<FunctionResponse>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a LiveSendToolResponseParameters object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

LiveSendToolResponseParameters

The deserialized LiveSendToolResponseParameters object, or null if deserialization fails.