Skip to main content

dynamo_data_gen/
lib.rs

1// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4//! Shared schemas and primitives for Dynamo data generation.
5//!
6//! Today the crate hosts the Mooncake replay JSONL row schema, the rolling
7//! block-hash-to-id mapper, and the JSONL writer used by trace producers
8//! (e.g. the Claude exporter in `dynamo-bench`) and trace consumers
9//! (e.g. `dynamo-mocker`). A single `MooncakeRow` type with both `Serialize`
10//! and `Deserialize` derives keeps the producer and consumer in lockstep and
11//! eliminates the schema drift that previously existed between two private
12//! copies of the schema.
13
14pub mod mooncake;
15
16pub use mooncake::{
17    AgenticMooncakeRow, AgenticToolEvent, MooncakeJsonlWriter, MooncakeRow, RollingHashIdMapper,
18    WriterStats, hash_token_blocks, ids_for_sequence_hashes, require_positive, write_empty_files,
19};