Skip to content

[codex] Add DeepSeek session trace exporter#707

Merged
jahooma merged 1 commit into
mainfrom
jahooma/pull-deepseek-traces
May 19, 2026
Merged

[codex] Add DeepSeek session trace exporter#707
jahooma merged 1 commit into
mainfrom
jahooma/pull-deepseek-traces

Conversation

@brandonkachen
Copy link
Copy Markdown
Collaborator

Summary

Adds a BigQuery-backed script for exporting reconstructed multi-turn Freebuff DeepSeek V4 session traces.

The exporter groups full-message provider rows by codebuff_metadata.client_id, selects a representative request for each session, appends the final assistant response when needed, and writes either an aggregate JSON file or one flattened trace JSON file per session. It supports newest, random, and time-even sampling, explicit date windows, client-id targeting, and prod/dev dataset selection.

Cleanup

Removed the earlier individual message sample script from the workspace and kept only the session-level exporter. The exporter was simplified to avoid unused BigQuery fields and redundant target metadata.

Validation

  • bun run --cwd scripts typecheck
  • bun scripts/export-deepseek-session-traces.ts --help

@jahooma jahooma marked this pull request as ready for review May 19, 2026 22:46
@jahooma jahooma merged commit 10c7318 into main May 19, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/pull-deepseek-traces branch May 19, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants