Skip to content

Commit ebdc380

Browse files
authored
feat: add traces in conversations exports (#859)
1 parent fa7bf85 commit ebdc380

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/backend/src/api/v1/runs/export.ts

+5
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ export async function fileExport(
129129
line = parser.parse(getTraceChildren(formatRun(row), related));
130130
} else if (exportType === "thread") {
131131
const formattedRun = formatRun(row);
132+
const related = await getRelatedRuns(sql, row.id, projectId);
133+
formattedRun.children = getTraceChildren(
134+
formattedRun,
135+
related,
136+
).children;
132137
formattedRun.messages = await getMessages(
133138
formattedRun.id,
134139
projectId,

0 commit comments

Comments
 (0)