Table of Contents

Class Condition

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Filter condition applicable to a single key.

public class Condition
Inheritance
Condition
Inherited Members
Extension Methods

Properties

NumericValue

The numeric value to filter the metadata on.

[JsonPropertyName("numericValue")]
public double? NumericValue { get; set; }

Property Value

double?

Operation

Required. Operator applied to the given key-value pair to trigger the condition.

[JsonPropertyName("operation")]
public Operator Operation { get; set; }

Property Value

Operator

StringValue

The string value to filter the metadata on.

[JsonPropertyName("stringValue")]
public string? StringValue { get; set; }

Property Value

string

See Also