Partilhar via


TurnState Constructors

Definition

Overloads

TurnState(IAgentState[])

Initializes a new instance of the TurnState class.

TurnState(IStorage, IAgentState[])

Creates AgentStateSet with default ConversationState and UserState

TurnState(IAgentState[])

Initializes a new instance of the TurnState class.

public TurnState(params Microsoft.Agents.Builder.State.IAgentState[] agentStates);
new Microsoft.Agents.Builder.State.TurnState : Microsoft.Agents.Builder.State.IAgentState[] -> Microsoft.Agents.Builder.State.TurnState
Public Sub New (ParamArray agentStates As IAgentState())

Parameters

agentStates
IAgentState[]

initial list of AgentState objects to manage.

Applies to

TurnState(IStorage, IAgentState[])

Creates AgentStateSet with default ConversationState and UserState

public TurnState(Microsoft.Agents.Storage.IStorage storage, params Microsoft.Agents.Builder.State.IAgentState[] agentStates);
new Microsoft.Agents.Builder.State.TurnState : Microsoft.Agents.Storage.IStorage * Microsoft.Agents.Builder.State.IAgentState[] -> Microsoft.Agents.Builder.State.TurnState
Public Sub New (storage As IStorage, ParamArray agentStates As IAgentState())

Parameters

storage
IStorage
agentStates
IAgentState[]

Additional list of AgentState objects to manage.

Applies to