Skip to content

SessionMetadata

optional audit?: ConversationAuditEntry[];

optional channelHistory?: object[];
Name Type

at

string

channelId

ChannelId


createdAt: Date;

optional csat?: CsatRecord;

handoffHistory: HandoffRecord[];

lastActiveAt: Date;

optional lastEscalation?: object;

Previous escalation outcome, when the escalation gate was triggered.

Name Type

at

string

handlerOutcome

"queued" | "connected" | "failed"

reason

EscalationReason


optional lastRefinementConfidence?: number;

Previous turn’s aggregate refinement confidence, when refinement was configured.


optional lastSafetyOutcome?: object;
Name Type

at

string

decision

"rewrite" | "block"

moderator

string

rationale?

string


optional lastTurnHadToolCalls?: boolean;

Whether the previous turn involved at least one tool call.


optional lastValidationConfidence?: number;

Previous turn’s aggregate validation confidence, when validation was configured.


optional outcome?: ConversationOutcomeRecord;

optional personaExperiment?: PersonaExperimentMetadata;

totalSteps: number;

totalTokens: number;