Skip to content

bodhi-realtime-agent / SessionRecord

Interface: SessionRecord ​

Defined in: src/types/history.ts:5

Metadata for a single voice session, stored by ConversationHistoryStore.

Extended by ​

Properties ​

analytics? ​

optional analytics?: SessionAnalytics

Defined in: src/types/history.ts:24

Aggregated session statistics.


disconnectReason? ​

optional disconnectReason?: "transfer" | "error" | "user_hangup" | "timeout" | "go_away"

Defined in: src/types/history.ts:20


durationMs? ​

optional durationMs?: number

Defined in: src/types/history.ts:19

Total session duration in milliseconds.


endedAt? ​

optional endedAt?: number

Defined in: src/types/history.ts:17

Unix timestamp (ms) when the session ended.


finalAgentName? ​

optional finalAgentName?: string

Defined in: src/types/history.ts:12

Agent that was active when the session ended.


id ​

id: string

Defined in: src/types/history.ts:7

Unique session identifier.


initialAgentName ​

initialAgentName: string

Defined in: src/types/history.ts:10

Agent that was active when the session started.


metadata? ​

optional metadata?: Record<string, unknown>

Defined in: src/types/history.ts:26

Application-specific metadata.


startedAt ​

startedAt: number

Defined in: src/types/history.ts:15

Unix timestamp (ms) when the session started.


status ​

status: "error" | "active" | "ended"

Defined in: src/types/history.ts:13


transcript? ​

optional transcript?: string

Defined in: src/types/history.ts:22

Full text transcript of the session (optional).


userId ​

userId: string

Defined in: src/types/history.ts:8

Built with VitePress