Skip to content

Function: toImportSegment()

Makaio Framework


Makaio Framework / ai-adapters-core / toImportSegment

toImportSegment(result): ImportSegment

Defined in: ../../../adapters/core/src/log-importer/types.ts:275

Converts a ProcessLogFileResult to a canonical ImportSegment.

Strips bus-emission fields (sessionEvent, messageEvents) and recursively converts children, producing the clean structural tree.

ProcessLogFileResult

The full import result from an adapter

ImportSegment

A canonical import segment tree