Table of Contents

Struct EmbeddingApiType

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

Enum representing the Gemini Enterprise Agent Platform embedding API to use.

[JsonConverter(typeof(EmbeddingApiTypeConverter))]
public readonly record struct EmbeddingApiType : IEquatable<EmbeddingApiType>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<EmbeddingApiType> AllValues { get; }

Property Value

IReadOnlyList<EmbeddingApiType>

EmbedContent

embedContent API Endpoint

public static EmbeddingApiType EmbedContent { get; }

Property Value

EmbeddingApiType

Predict

predict API endpoint (default)

public static EmbeddingApiType Predict { get; }

Property Value

EmbeddingApiType

Value

public string Value { get; }

Property Value

string

Methods

Equals(EmbeddingApiType)

public bool Equals(EmbeddingApiType other)

Parameters

other EmbeddingApiType

Returns

bool

FromString(string)

public static EmbeddingApiType FromString(string value)

Parameters

value string

Returns

EmbeddingApiType

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator EmbeddingApiType(string)

public static implicit operator EmbeddingApiType(string value)

Parameters

value string

Returns

EmbeddingApiType