Type Alias: ThreadSession
ThreadSession =
object
Session-scoped transcript + stream state for one conversation thread.
Properties
Section titled “Properties”abortController
Section titled “abortController”abortController:
AbortController|null
assistantId
Section titled “assistantId”assistantId:
string|null
error:
Error|null
feedbackByMessage
Section titled “feedbackByMessage”feedbackByMessage:
Record<string,MessageFeedback>
hasMoreHistory
Section titled “hasMoreHistory”hasMoreHistory:
boolean
historyLoaded
Section titled “historyLoaded”historyLoaded:
boolean
historyPage
Section titled “historyPage”historyPage:
number
lastRequestContext?
Section titled “lastRequestContext?”
optionallastRequestContext?:MastraRequestContextSnapshot
Context snapshot reused when regenerating the last turn.
messages
Section titled “messages”messages:
UIMessage[]
pendingApprovalsByMessage
Section titled “pendingApprovalsByMessage”pendingApprovalsByMessage:
Record<string,PendingApproval[]>
queuedSteers
Section titled “queuedSteers”queuedSteers:
SessionQueuedSteer[]
Steers submitted mid-turn, waiting to run (oldest first).
runId:
string|null
runRequestContext?
Section titled “runRequestContext?”
optionalrunRequestContext?:MastraRequestContextSnapshot
Context snapshot for the active run and approval continuation.
runs:
Record<string,SessionRun>
Live runs retained by id so older approval cards resume their own context.
runToken
Section titled “runToken”runToken:
number
status
Section titled “status”status:
ChatStatus