Interface: ContextAssemblyResult
Makaio Framework / services-core / ContextAssemblyResult
Interface: ContextAssemblyResult
Section titled “Interface: ContextAssemblyResult”Defined in: ../../../packages/services/core/src/session/context/types.ts:16
Result of context assembly.
Properties
Section titled “Properties”hasSquashBoundary
Section titled “hasSquashBoundary”hasSquashBoundary:
boolean
Defined in: ../../../packages/services/core/src/session/context/types.ts:20
Whether a squash boundary was encountered
incomplete
Section titled “incomplete”incomplete:
boolean
Defined in: ../../../packages/services/core/src/session/context/types.ts:26
Whether parent chain is incomplete (missing session in ancestry)
messages
Section titled “messages”messages:
object[]
Defined in: ../../../packages/services/core/src/session/context/types.ts:18
Assembled messages in chronological order
adapterMessageId?
Section titled “adapterMessageId?”
optionaladapterMessageId?:string
Adapter’s stable message identifier for fork detection
adapterSessionId?
Section titled “adapterSessionId?”
optionaladapterSessionId?:string
Provider’s session ID for context continuity
agentId?
Section titled “agentId?”
optionalagentId?:string
Agent ID (required for assistant, null for user)
blocks
Section titled “blocks”blocks: ({
content:string;type:"text"; } | {source: {data:string;mimeType:string;type:"base64"; } | {mimeType?:string;type:"url";url:string; };type:"image"; } | {source: {data:string;mimeType:string;type:"base64"; } | {mimeType?:string;type:"url";url:string; };type:"document"; } | {attachmentType:"file"|"directory";displayName?:string;fileName:string;filePath:string;source: {data:string;mimeType:string;type:"base64"; } | {mimeType?:string;type:"url";url:string; };type:"attachment"; } | {content:string;metadata?:Record<string,unknown>;type:"reasoning"; } | {args:Record<string,unknown>;name:string;toolCallId:string;type:"tool_call"; } | {isError?:boolean;output:string;toolCallId:string;type:"tool_output"; })[]
Structured blocks (text, reasoning, tool_call, tool_output)
contentText
Section titled “contentText”contentText:
string
Plain text content for FTS5 search
editOf?
Section titled “editOf?”
optionaleditOf?:string
If this is an edit, references the original message
messageId
Section titled “messageId”messageId:
string
Unique message identifier
origin?
Section titled “origin?”
optionalorigin?:"text"|"voice"|"compact"
Origin of the message (e.g. ‘voice’, ‘text’). NULL for messages predating this field.
role:
"user"|"assistant"=SessionMessageRoleSchema
Message role: ‘user’ or ‘assistant’
sessionId
Section titled “sessionId”sessionId:
string
Session this message belongs to
timestamp
Section titled “timestamp”timestamp:
number
Message timestamp (Unix ms)
turnId
Section titled “turnId”turnId:
string|null
Turn this message belongs to. NULL for native imports (no turn tracking).
sessionChain
Section titled “sessionChain”sessionChain:
string[]
Defined in: ../../../packages/services/core/src/session/context/types.ts:22
Sessions traversed (for debugging)
truncated
Section titled “truncated”truncated:
boolean
Defined in: ../../../packages/services/core/src/session/context/types.ts:24
Whether results were truncated due to limit or pagination