Ανάγνωση στα Αγγλικά

Κοινή χρήση μέσω


AssistantsState Class

Definition

The default implementation of IAssistantsState.

C#
public class AssistantsState : Microsoft.Teams.AI.State.TurnState, Microsoft.Teams.AI.AI.Planners.Experimental.IAssistantsState
Inheritance
AssistantsState
Implements

Constructors

Fields

CONVERSATION_SCOPE

Name of the conversation scope.

(Inherited from TurnState)
ScopeDefaults

The default values to initial for each scope.

(Inherited from TurnState)
TEMP_SCOPE

Name of the temp scope.

(Inherited from TurnState)
USER_SCOPE

Name of the user scope.

(Inherited from TurnState)

Properties

Conversation

Stores all the conversation-related state.

(Inherited from TurnState)
LastMessageId

Get or set the last message ID. Stored in ConversationState with key "assistants_state_last_message_id".

RunId

Get or set the run ID. Stored in ConversationState with key "assistants_state_run_id".

SubmitToolMap

Get or set the submit tool map. Stored in TempState with key "assistants_state_submit_tool_map".

SubmitToolOutputs

Get or set whether need to submit tool outputs. Stored in TempState with key "assistants_state_submit_tool_outputs".

Temp

Stores all the temporary state for the current turn.

(Inherited from TurnState)
ThreadId

Get or set the thread ID. Stored in ConversationState with key "assistants_state_thread_id".

User

Stores all the user related state.

(Inherited from TurnState)

Methods

DeleteConversationState()

Deletes the conversation state.

(Inherited from TurnState)
DeleteTempState()

Deletes the temporary state.

(Inherited from TurnState)
DeleteUserState()

Deletes the user state

(Inherited from TurnState)
DeleteValue(String)

Deletes a value from the memory.

(Inherited from TurnState)
GetScope(String)

Returns the TurnStateEntry associated with the specified scope.

(Inherited from TurnState)
GetValue(String)

Retrieves a value from the memory.

(Inherited from TurnState)
HasValue(String)

Checks if a value exists in the memory.

(Inherited from TurnState)
IsLoaded()

Provides the current status of the load.

(Inherited from TurnState)
LoadStateAsync(IStorage, ITurnContext, CancellationToken)

Loads all of the state scopes for the current turn.

(Inherited from TurnState)
OnComputeStorageKeys(ITurnContext)

Computes the state keys

(Inherited from TurnState)
SaveStateAsync(ITurnContext, IStorage)

Saves all of the state scopes for the current turn.

(Inherited from TurnState)
SetValue(String, Object)

Assigns a value to the memory.

(Inherited from TurnState)

Applies to

Προϊόν Εκδόσεις
Microsoft Teams Framework .NET SDK Latest