state.appendToList(),
which is safe without holding a thread lock.
Distinct from the cross-platform per-user TranscriptsApi (see
transcripts.ts) — this cache is keyed by thread, not user.
Constructor
Parameters
required
Returns
ThreadHistoryCache
Methods
append()
Parameters
string
required
Returns
Promise<void>
getMessages()
Parameters
string
required
The thread ID
number
Optional limit on number of messages to return (returns newest N)
Returns
Message