Skip to content

Function: buildSessionContext()

Makaio Framework


Makaio Framework / services-core / buildSessionContext

buildSessionContext(bus, options): Promise<ContextAssemblyResult>

Defined in: ../../../packages/services/core/src/session/context/build-context.ts:22

Build context for a single session by walking session_events.

Respects squash boundaries: if a squash event is encountered, messages before it are replaced with the summary. Paginates through all events until no more cursors or message limit is reached.

IMakaioBus

Bus instance for RPC calls

BuildContextOptions

Build context options

Promise<ContextAssemblyResult>

Assembled context result