Skip to main content
Composes UserHistoryApiImpl, ThreadHistoryApiImpl, and ChannelHistoryApiImpl into the HistoryApi facade. Constructor receives a single config object so Chat can pass everything cleanly without positional-argument confusion:

Constructor

Parameters

HistoryApiImplConfig
required

Returns

HistoryApiImpl

Properties

Per-channel history operations. Individual methods throw when the adapter does not implement them.
Per-thread message history. Always available — delegates to the adapter’s fetchMessages.
Cross-platform per-user transcript store. Throws if history.user (or legacy transcripts) is not configured.