Table of Contents

Struct ResponseParseType

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

Defines how to parse sample response.

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

Properties

AllValues

public static IReadOnlyList<ResponseParseType> AllValues { get; }

Property Value

IReadOnlyList<ResponseParseType>

Identity

Use the sample response as is.

public static ResponseParseType Identity { get; }

Property Value

ResponseParseType

RegexExtract

Use regex to extract the important part of sample response.

public static ResponseParseType RegexExtract { get; }

Property Value

ResponseParseType

ResponseParseTypeUnspecified

Default value. This value is unused.

public static ResponseParseType ResponseParseTypeUnspecified { get; }

Property Value

ResponseParseType

Value

public string Value { get; }

Property Value

string

Methods

Equals(ResponseParseType)

public bool Equals(ResponseParseType other)

Parameters

other ResponseParseType

Returns

bool

FromString(string)

public static ResponseParseType FromString(string value)

Parameters

value string

Returns

ResponseParseType

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator ResponseParseType(string)

public static implicit operator ResponseParseType(string value)

Parameters

value string

Returns

ResponseParseType