MemoryFork Class

Definition

Forks an existing memory. A memory fork is a memory that is a copy of another memory, but can be modified without affecting the original memory.

public class MemoryFork : Microsoft.Agents.Builder.State.TurnState
type MemoryFork = class
    inherit TurnState
Public Class MemoryFork
Inherits TurnState
Inheritance
MemoryFork

Constructors

MemoryFork(TurnState)

Creates a new MemoryFork instance.

Properties

Conversation (Inherited from TurnState)
Private (Inherited from TurnState)
Temp (Inherited from TurnState)
User (Inherited from TurnState)

Methods

Add(IAgentState) (Inherited from TurnState)
ClearState(String) (Inherited from TurnState)
DeleteValue(String)

Deletes a value from the memory. Only forked values will be deleted.

GetScope(String) (Inherited from TurnState)
GetScope<T>() (Inherited from TurnState)
GetValue(String)

Retrieves a value from the memory. The forked memory is checked first, then the original memory.

GetValue<T>(String, Func<T>) (Inherited from TurnState)
HasValue(String)

Checks if a value exists in the memory. The forked memory is checked first, then the original memory.

LoadStateAsync(ITurnContext, Boolean, CancellationToken)

Load all AgentState records in parallel.

(Inherited from TurnState)
SaveStateAsync(ITurnContext, Boolean, CancellationToken)

Save All AgentState changes in parallel.

(Inherited from TurnState)
SetValue(String, Object)

Assigns a value to the memory. The value is assigned to the forked memory.

TryGetScope<T>(T) (Inherited from TurnState)

Applies to