EventFactory class

Contains utility methods for creating various event types.

Methods

createHandoffInitiation(TurnContext, any, Transcript)

Create handoff initiation event.

createHandoffStatus(ConversationAccount, string, string)

Create handoff status event.

Method Details

createHandoffInitiation(TurnContext, any, Transcript)

Create handoff initiation event.

static function createHandoffInitiation(context: TurnContext, handoffContext: any, transcript?: Transcript)

Parameters

context
TurnContext

The context object for the turn.

handoffContext
any

Agent hub-specific context.

transcript
Transcript

Transcript of the conversation.

Returns

Activity

createHandoffStatus(ConversationAccount, string, string)

Create handoff status event.

static function createHandoffStatus(conversation: ConversationAccount, state: string, message?: string)

Parameters

conversation
ConversationAccount

Conversation being handed over.

state
string

State, possible values are: "accepted", "failed", "completed".

message
string

Additional message for failed handoff.

Returns

Activity