Skip to content

@egain/ai-agent-sdk API Reference - v0.3.2 / AgentEventPayloadMap

Interface: AgentEventPayloadMap ​

Payload map for agent events

Table of contents ​

Properties ​

Properties ​

connected ​

• connected: Record<string, never>

Defined in ​

core/AiAgent.ts:250


message ​

• message: Object

Type declaration ​

NameType
dataany

Defined in ​

core/AiAgent.ts:251


agentMessage ​

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

Defined in ​

core/AiAgent.ts:252


contextValidation ​

• contextValidation: Object

Type declaration ​

NameType
messageMessage
issuesContextValidationIssue[]

Defined in ​

core/AiAgent.ts:253


errorMessage ​

• errorMessage: Object

Type declaration ​

NameType
messageMessage
errorError

Defined in ​

core/AiAgent.ts:257


error ​

• error: Object

Type declaration ​

NameType
errorError

Defined in ​

core/AiAgent.ts:258


closed ​

• closed: Object

Type declaration ​

NameType
code?number
reason?string

Defined in ​

core/AiAgent.ts:259


stateChanged ​

• stateChanged: Object

Type declaration ​

NameType
stateConnectionState
previousStateConnectionState

Defined in ​

core/AiAgent.ts:260


queueFlushed ​

• queueFlushed: Object

Type declaration ​

NameType
countnumber

Defined in ​

core/AiAgent.ts:261


heartbeat ​

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

Defined in ​

core/AiAgent.ts:262


tokenExpiring ​

• tokenExpiring: Object

Type declaration ​

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

Defined in ​

core/AiAgent.ts:263


transcriptUpdate ​

• transcriptUpdate: Object

Type declaration ​

NameType
entryTranscriptEntry

Defined in ​

core/AiAgent.ts:264


callTranscriptUpdate ​

• callTranscriptUpdate: Object

Type declaration ​

NameType
entryCallTranscriptEntry

Defined in ​

core/AiAgent.ts:265


callerInfoUpdate ​

• callerInfoUpdate: Object

Type declaration ​

NameType
callerInfoCallerInfo

Defined in ​

core/AiAgent.ts:266


conversationIdUpdate ​

• conversationIdUpdate: Object

Type declaration ​

NameType
conversationIdstring

Defined in ​

core/AiAgent.ts:267


userContextUpdate ​

• userContextUpdate: Object

Type declaration ​

NameType
userContextRecord<string, unknown>

Defined in ​

core/AiAgent.ts:268


filterTagsUpdate ​

• filterTagsUpdate: Object

Type declaration ​

NameType
filterTagsRecord<string, string[]>

Defined in ​

core/AiAgent.ts:269


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:271


portalsAvailable ​

• portalsAvailable: Object

Type declaration ​

NameType
portalsPortal[]

Defined in ​

core/AiAgent.ts:279


agentsAvailable ​

• agentsAvailable: Object

Type declaration ​

NameType
agentsAgentListItem[]

Defined in ​

core/AiAgent.ts:280


profilesAvailable ​

• profilesAvailable: Object

Type declaration ​

NameType
profilesUserProfile[]
selectedPortalPortal

Defined in ​

core/AiAgent.ts:281

Released under the MIT License.