Jaa


ActivityExtensions.GetAgenticTenantId(IActivity) Method

Definition

Retrieves the tenant ID associated with the agentic recipient of the activity, if available; otherwise, returns the tenant ID from the conversation.

public static string GetAgenticTenantId(this Microsoft.Agents.Core.Models.IActivity activity);
static member GetAgenticTenantId : Microsoft.Agents.Core.Models.IActivity -> string
<Extension()>
Public Function GetAgenticTenantId (activity As IActivity) As String

Parameters

activity
IActivity

The activity from which to extract the tenant ID.

Returns

The tenant ID of the agentic recipient if present; otherwise, the tenant ID from the conversation. Returns null if neither is available.

Applies to