AgentModeProvider.SetMode(AgentSession, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.