Share via


ITurnState Interface

Definition

TurnState represents the state for an Agent. State is composed of 1+ state scopes.

public interface ITurnState
type ITurnState = interface
Public Interface ITurnState
Derived

Properties

Conversation
Private
Temp
User

Methods

ClearState(String)

Clears the state.

DeleteValue(String)

Delete a property.

GetScope(String)
GetScope<T>()
GetValue<T>(String, Func<T>)

Get a property value.

HasValue(String)

Checks for the existence of a property.

LoadStateAsync(ITurnContext, Boolean, CancellationToken)

Populates all states from the storage layer.

SaveStateAsync(ITurnContext, Boolean, CancellationToken)

Writes all states to the storage layer.

SetValue(String, Object)

Set a property value.

Applies to