Skip to content

@egain/ai-agent-sdk API Reference - v0.2.3-beta.2 / AgentEventPayloadMap

Interface: AgentEventPayloadMap

Payload map for agent events

Table of contents

Properties

Properties

connected

connected: Record<string, never>

Defined in

core/AiAgent.ts:255


message

message: Object

Type declaration

NameType
dataany

Defined in

core/AiAgent.ts:256


agentMessage

agentMessage: Omit<MessageHandlerResult, "sessionId" | "timestamp" | "agentId">

Defined in

core/AiAgent.ts:257


contextValidation

contextValidation: Object

Type declaration

NameType
messageMessage
issuesContextValidationIssue[]

Defined in

core/AiAgent.ts:258


errorMessage

errorMessage: Object

Type declaration

NameType
messageMessage
errorError

Defined in

core/AiAgent.ts:262


error

error: Object

Type declaration

NameType
errorError

Defined in

core/AiAgent.ts:263


closed

closed: Object

Type declaration

NameType
code?number
reason?string

Defined in

core/AiAgent.ts:264


stateChanged

stateChanged: Object

Type declaration

NameType
stateConnectionState
previousStateConnectionState

Defined in

core/AiAgent.ts:265


queueFlushed

queueFlushed: Object

Type declaration

NameType
countnumber

Defined in

core/AiAgent.ts:266


heartbeat

heartbeat: Omit<MessageHandlerResult, "sessionId" | "timestamp" | "agentId">

Defined in

core/AiAgent.ts:267


tokenExpiring

tokenExpiring: Object

Type declaration

NameType
reason"expiring" | "transport_request"
expiresAt?number

Defined in

core/AiAgent.ts:268


transcriptUpdate

transcriptUpdate: Object

Type declaration

NameType
entryTranscriptEntry

Defined in

core/AiAgent.ts:269


callTranscriptUpdate

callTranscriptUpdate: Object

Type declaration

NameType
entryCallTranscriptEntry

Defined in

core/AiAgent.ts:270


callerInfoUpdate

callerInfoUpdate: Object

Type declaration

NameType
callerInfoCallerInfo

Defined in

core/AiAgent.ts:271


conversationIdUpdate

conversationIdUpdate: Object

Type declaration

NameType
conversationIdstring

Defined in

core/AiAgent.ts:272


userContextUpdate

userContextUpdate: Object

Type declaration

NameType
userContextRecord<string, unknown>

Defined in

core/AiAgent.ts:273


filterTagsUpdate

filterTagsUpdate: Object

Type declaration

NameType
filterTagsRecord<string, string[]>

Defined in

core/AiAgent.ts:274


initialized

initialized: Object

Always includes at least agent (agentId, name). When CC pipeline completes: portal, portalDetails?, agent?, profile, availableProfiles, availablePortals.

Type declaration

NameType
portal?Portal
portalDetails?any
agent?AgentListItem | Record<string, unknown>
profile?UserProfile
availableProfiles?UserProfile[]
availablePortals?Portal[]

Defined in

core/AiAgent.ts:276


portalsAvailable

portalsAvailable: Object

Type declaration

NameType
portalsPortal[]

Defined in

core/AiAgent.ts:284


agentsAvailable

agentsAvailable: Object

Type declaration

NameType
agentsAgentListItem[]

Defined in

core/AiAgent.ts:285


profilesAvailable

profilesAvailable: Object

Type declaration

NameType
profilesUserProfile[]
selectedPortalPortal

Defined in

core/AiAgent.ts:286

Released under the MIT License.