Class LiveClientToolResponse
Client generated response to a ToolCall received from the server. Individual
FunctionResponse objects are matched to the respective FunctionCall objects by the id
field. Note that in the unary and server-streaming GenerateContent APIs function calling
happens by exchanging the Content parts, while in the bidi GenerateContent APIs function
calling happens over this dedicated set of messages.
public record LiveClientToolResponse : IEquatable<LiveClientToolResponse>
- Inheritance
-
LiveClientToolResponse
- Implements
- Inherited Members
Properties
FunctionResponses
The response to the function calls.
[JsonPropertyName("functionResponses")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<FunctionResponse>? FunctionResponses { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a LiveClientToolResponse object.
public static LiveClientToolResponse? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- LiveClientToolResponse
The deserialized LiveClientToolResponse object, or null if deserialization fails.