Table of Contents

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

key string

The key of the metadata to store.

Properties

Key

The key of the metadata to store.

[JsonPropertyName("key")]
public string Key { get; set; }

Property Value

string

NumericValue

The numeric value of the metadata to store.

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

Property Value

double?

StringListValue

The StringList value of the metadata to store.

[JsonPropertyName("stringListValue")]
public StringList? StringListValue { get; set; }

Property Value

StringList

StringValue

The string value of the metadata to store.

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

Property Value

string

See Also