Share via


Utility class

Utility class providing helper methods for agent runtime operations.

Methods

GetAppIdFromToken(string)

Decodes the current token and retrieves the App ID (appid or azp claim).

ResolveAgentIdentity(TurnContext, string)

Resolves the agent identity from the turn context or auth token.

Method Details

GetAppIdFromToken(string)

Decodes the current token and retrieves the App ID (appid or azp claim).

static function GetAppIdFromToken(token: string): string

Parameters

token

string

Token to Decode

Returns

string

AppId

ResolveAgentIdentity(TurnContext, string)

Resolves the agent identity from the turn context or auth token.

static function ResolveAgentIdentity(context: TurnContext, authToken: string): string

Parameters

context
TurnContext

Turn Context of the turn.

authToken

string

Auth token if available.

Returns

string

Agent identity (App ID)