@salesforce/agents
    Preparing search index...

    Function recordTraceForTurn

    • Record a trace for a turn using buffer (fast, minimal I/O)

      Parameters

      • historyDir: string

        path to the session directory

      • turnNumber: number

        the turn number that generated this trace

      • planId: string

        the plan ID for this trace

      • trace: PlannerResponse | undefined

        the trace data to write

      • buffer: SessionHistoryBuffer

        buffer for batched updates

      Returns Promise<void>