Skip to content

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

Interface: AgentEventPayloadMap

Payload map for agent events

Table of contents

Properties

Properties

connected

connected: Record<string, never>

Defined in

core/AiAgent.ts:238


message

message: Object

Type declaration

NameType
dataany

Defined in

core/AiAgent.ts:239


agentMessage

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

Defined in

core/AiAgent.ts:240


errorMessage

errorMessage: Object

Type declaration

NameType
messageMessage
errorError

Defined in

core/AiAgent.ts:241


error

error: Object

Type declaration

NameType
errorError

Defined in

core/AiAgent.ts:242


closed

closed: Object

Type declaration

NameType
code?number
reason?string

Defined in

core/AiAgent.ts:243


stateChanged

stateChanged: Object

Type declaration

NameType
stateConnectionState
previousStateConnectionState

Defined in

core/AiAgent.ts:244


queueFlushed

queueFlushed: Object

Type declaration

NameType
countnumber

Defined in

core/AiAgent.ts:245


heartbeat

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

Defined in

core/AiAgent.ts:246


tokenExpiring

tokenExpiring: Object

Type declaration

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

Defined in

core/AiAgent.ts:247


transcriptUpdate

transcriptUpdate: Object

Type declaration

NameType
entryTranscriptEntry

Defined in

core/AiAgent.ts:248


callTranscriptUpdate

callTranscriptUpdate: Object

Type declaration

NameType
entryCallTranscriptEntry

Defined in

core/AiAgent.ts:249


callerInfoUpdate

callerInfoUpdate: Object

Type declaration

NameType
callerInfoCallerInfo

Defined in

core/AiAgent.ts:250


conversationIdUpdate

conversationIdUpdate: Object

Type declaration

NameType
conversationIdstring

Defined in

core/AiAgent.ts:251


userContextUpdate

userContextUpdate: Object

Type declaration

NameType
userContextRecord<string, unknown>

Defined in

core/AiAgent.ts:252


filterTagsUpdate

filterTagsUpdate: Object

Type declaration

NameType
filterTagsRecord<string, string[]>

Defined in

core/AiAgent.ts:253


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?Record<string, unknown> | AgentListItem
profile?UserProfile
availableProfiles?UserProfile[]
availablePortals?Portal[]

Defined in

core/AiAgent.ts:255


portalsAvailable

portalsAvailable: Object

Type declaration

NameType
portalsPortal[]

Defined in

core/AiAgent.ts:263


agentsAvailable

agentsAvailable: Object

Type declaration

NameType
agentsAgentListItem[]

Defined in

core/AiAgent.ts:264


profilesAvailable

profilesAvailable: Object

Type declaration

NameType
profilesUserProfile[]
selectedPortalPortal

Defined in

core/AiAgent.ts:265

Released under the MIT License.