AgentModeProvider.GetMode(AgentSession) 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.
Gets the current operating mode from the session state.
public string GetMode(Microsoft.Agents.AI.AgentSession? session);
member this.GetMode : Microsoft.Agents.AI.AgentSession -> string
Public Function GetMode (session As AgentSession) As String
Parameters
- session
- AgentSession
The agent session to read the mode from.
Returns
The current mode string.