Table of Contents

Class CustomCodeExecutionResult

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

Result for custom code execution metric. This data type is not supported in Gemini API.

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

Properties

Score

Output only. Custom code execution score.

[JsonPropertyName("score")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Score { get; set; }

Property Value

double?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a CustomCodeExecutionResult object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

CustomCodeExecutionResult

The deserialized CustomCodeExecutionResult object, or null if deserialization fails.