Language

TurnStateOptions Class

Definition

Configuration options for turn state management.

public class TurnStateOptions
type TurnStateOptions = class
Public Class TurnStateOptions
Inheritance
TurnStateOptions

Constructors

Name Description
TurnStateOptions()

Properties

Name Description
CacheEntryOptions

Gets or sets the cache entry options applied when saving state. Defaults to no expiration.

KeyPrefix

Gets or sets the prefix for cache keys. Defaults to "ts". Change this to isolate state when multiple bots share the same cache. Keys are formatted as {KeyPrefix}:conv:{conversationId} and {KeyPrefix}:user:{conversationId}:{userId}.

Applies to