Interface: ImportSegment
Makaio Framework / ai-adapters-core / ImportSegment
Interface: ImportSegment
Section titled “Interface: ImportSegment”Defined in: ../../../adapters/core/src/log-importer/types.ts:230
Canonical import segment — the structural tree of imported session data.
This is the single source of truth for compaction structure and lineage during import. The importer is the canonical owner of this contract.
Remarks
Section titled “Remarks”- Every segment carries explicit ImportSegmentLineage
- Children represent compaction boundaries or nested segments
- Use toImportSegment to convert a ProcessLogFileResult
Properties
Section titled “Properties”adapterSessionId
Section titled “adapterSessionId”adapterSessionId:
string
Defined in: ../../../adapters/core/src/log-importer/types.ts:232
Adapter’s native session identifier for this segment.
children?
Section titled “children?”
optionalchildren?:ImportSegment[]
Defined in: ../../../adapters/core/src/log-importer/types.ts:240
Child segments (compress children, nested compactions).
compaction?
Section titled “compaction?”
optionalcompaction?:CompactionMetadata
Defined in: ../../../adapters/core/src/log-importer/types.ts:238
Compaction metadata from the boundary record (absent if not a compress child).
lineage
Section titled “lineage”lineage:
ImportSegmentLineage
Defined in: ../../../adapters/core/src/log-importer/types.ts:234
Explicit lineage metadata — always present, never inferred post-import.
messages
Section titled “messages”messages:
StorageMessagePayload[]
Defined in: ../../../adapters/core/src/log-importer/types.ts:236
Storage-ready message payloads for this segment.