import{_p as e,bp as t,dt as n,ft as r,mp as i,pt as a,ut as o,vp as s,xp as c,yp as l}from"./index-DDwwBb9e.js";var u=s({runId:t().optional(),versionId:t().optional(),targetOutputs:l(i(c())),targetMetadata:l(i(a.nullish())),evaluatorResults:l(l(i(c()))),errors:l(i(t().nullish()))});s({experimentId:t().optional(),experimentSlug:t().optional(),name:t(),datasets:i(o),activeDatasetId:t(),evaluators:i(n),targets:i(r),results:u.optional(),hiddenColumns:i(t()).optional(),concurrency:e().min(1).max(24).optional()});var d=e=>{if(Object.keys(e.targetOutputs).length>0||Object.keys(e.targetMetadata).length>0||Object.keys(e.evaluatorResults).length>0||Object.keys(e.errors).length>0)return{runId:e.runId,versionId:e.versionId,targetOutputs:e.targetOutputs,targetMetadata:e.targetMetadata,evaluatorResults:e.evaluatorResults,errors:e.errors}},f=e=>{let{ui:t,results:n,datasets:r,...i}=e,a=d(n),o=r.map(e=>{if(e.type===`saved`){let{savedRecords:t,...n}=e;return n}return e});return{...i,datasets:o,results:a,hiddenColumns:Array.from(t.hiddenColumns),concurrency:t.concurrency}};export{f as t};
//# sourceMappingURL=persistence-C_-y6wzH.js.map