Skip to content

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

Interface: TranscriptEntry

Transcript entry containing a message with metadata.

Each entry represents a single message in the conversation with direction and timing information.

Example

typescript
const entry: TranscriptEntry = {
  message: message,
  direction: 'received',
  timestamp: Date.now(),
  sessionId: 'session-123',
  agentId: 'agent-456'
};

Table of contents

Properties

Properties

message

message: Message

The message object

Defined in

core/message/Transcript.ts:114


direction

direction: "sent" | "received"

Whether the message was sent or received

Defined in

core/message/Transcript.ts:116


timestamp

timestamp: number

Timestamp when the message was recorded

Defined in

core/message/Transcript.ts:118


sessionId

Optional sessionId: string | number

Session ID associated with this message

Defined in

core/message/Transcript.ts:120


agentId

Optional agentId: string | number

Agent ID associated with this message

Defined in

core/message/Transcript.ts:122

Released under the MIT License.