Table of Contents

Struct FunctionResponseScheduling

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

Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.

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

Properties

AllValues

public static IReadOnlyList<FunctionResponseScheduling> AllValues { get; }

Property Value

IReadOnlyList<FunctionResponseScheduling>

Interrupt

Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.

public static FunctionResponseScheduling Interrupt { get; }

Property Value

FunctionResponseScheduling

SchedulingUnspecified

This value is unused.

public static FunctionResponseScheduling SchedulingUnspecified { get; }

Property Value

FunctionResponseScheduling

Silent

Only add the result to the conversation context, do not interrupt or trigger generation.

public static FunctionResponseScheduling Silent { get; }

Property Value

FunctionResponseScheduling

Value

public string Value { get; }

Property Value

string

WhenIdle

Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.

public static FunctionResponseScheduling WhenIdle { get; }

Property Value

FunctionResponseScheduling

Methods

Equals(FunctionResponseScheduling)

public bool Equals(FunctionResponseScheduling other)

Parameters

other FunctionResponseScheduling

Returns

bool

FromString(string)

public static FunctionResponseScheduling FromString(string value)

Parameters

value string

Returns

FunctionResponseScheduling

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator FunctionResponseScheduling(string)

public static implicit operator FunctionResponseScheduling(string value)

Parameters

value string

Returns

FunctionResponseScheduling