AgentModeProvider.GetMode(AgentSession) Method

Definition

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.

Applies to