Class CustomMetadata
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
User provided metadata stored as key-value pairs.
public class CustomMetadata
- Inheritance
-
CustomMetadata
- Inherited Members
- Extension Methods
Constructors
CustomMetadata()
Initializes a new instance of the CustomMetadata class for JSON deserialization.
public CustomMetadata()
CustomMetadata(string)
Initializes a new instance of the CustomMetadata class with the specified key.
public CustomMetadata(string key)
Parameters
keystringThe key of the metadata to store.
Properties
Key
The key of the metadata to store.
[JsonPropertyName("key")]
public string Key { get; set; }
Property Value
NumericValue
The numeric value of the metadata to store.
[JsonPropertyName("numericValue")]
public double? NumericValue { get; set; }
Property Value
StringListValue
The StringList value of the metadata to store.
[JsonPropertyName("stringListValue")]
public StringList? StringListValue { get; set; }
Property Value
StringValue
The string value of the metadata to store.
[JsonPropertyName("stringValue")]
public string? StringValue { get; set; }