Table of Contents

Enum Behavior

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Defines the function behavior. Defaults to BLOCKING.

[JsonConverter(typeof(JsonStringEnumConverter<Behavior>))]
public enum Behavior
Extension Methods

Fields

UNSPECIFIED = 0

This value is unused.

BLOCKING = 1

If set, the system will wait to receive the function response before continuing the conversation.

NON_BLOCKING = 2

If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model.