AgentModeProvider.SetMode(AgentSession, String) Method

Definition

Sets the operating mode in the session state.

public void SetMode(Microsoft.Agents.AI.AgentSession? session, string mode);
member this.SetMode : Microsoft.Agents.AI.AgentSession * string -> unit
Public Sub SetMode (session As AgentSession, mode As String)

Parameters

session
AgentSession

The agent session to update the mode in.

mode
String

The new mode to set.

Exceptions

mode is not a configured mode.

Applies to