ActivityLike interface

Minimal activity shape required by hosting observability utilities.

Properties

channelData

Channel-specific payload data.

channelId

Identifier of the channel the activity arrived on.

channelIdSubChannel

Identifier of the channel sub-channel, when applicable.

conversation

The conversation the activity belongs to.

from

The sender of the activity.

getAgenticInstanceId

Returns the agentic instance identifier, if any.

getAgenticTenantId

Returns the agentic tenant identifier.

getAgenticUser

Returns the agentic user identifier.

isAgenticRequest

Returns whether this activity represents an agentic request.

name

The activity name (used for event activities).

recipient

The recipient of the activity.

serviceUrl

Service URL used to send replies back to the channel.

text

The text content of the activity.

type

The activity type (e.g. message, event).

Property Details

channelData

Channel-specific payload data.

channelData?: unknown

Property Value

unknown

channelId

Identifier of the channel the activity arrived on.

channelId?: string

Property Value

string

channelIdSubChannel

Identifier of the channel sub-channel, when applicable.

channelIdSubChannel?: unknown

Property Value

unknown

conversation

The conversation the activity belongs to.

conversation?: { id?: string }

Property Value

{ id?: string }

from

The sender of the activity.

from?: { aadObjectId?: string, agenticAppBlueprintId?: string, agenticAppId?: string, agenticUserId?: string, name?: string, role?: string, tenantId?: string }

Property Value

{ aadObjectId?: string, agenticAppBlueprintId?: string, agenticAppId?: string, agenticUserId?: string, name?: string, role?: string, tenantId?: string }

getAgenticInstanceId

Returns the agentic instance identifier, if any.

getAgenticInstanceId?: () => string | undefined

Property Value

() => string | undefined

getAgenticTenantId

Returns the agentic tenant identifier.

getAgenticTenantId?: () => string

Property Value

() => string

getAgenticUser

Returns the agentic user identifier.

getAgenticUser?: () => string

Property Value

() => string

isAgenticRequest

Returns whether this activity represents an agentic request.

isAgenticRequest?: () => boolean

Property Value

() => boolean

name

The activity name (used for event activities).

name?: string

Property Value

string

recipient

The recipient of the activity.

recipient?: { aadObjectId?: string, name?: string, role?: string }

Property Value

{ aadObjectId?: string, name?: string, role?: string }

serviceUrl

Service URL used to send replies back to the channel.

serviceUrl?: string

Property Value

string

text

The text content of the activity.

text?: string

Property Value

string

type

The activity type (e.g. message, event).

type?: string

Property Value

string