MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / condense_transcript

Function condense_transcript

atomic-agent/src/transcript/condense.rs:79–88  ·  view source on GitHub ↗

Condense a transcript from raw bytes, auto-detecting format. Currently supports Claude Code JSONL. Future: Gemini JSON, other formats.

(raw: &[u8], format: &str)

Source from the content-addressed store, hash-verified

77///
78/// Currently supports Claude Code JSONL. Future: Gemini JSON, other formats.
79pub fn condense_transcript(raw: &[u8], format: &str) -> Vec<CondensedEntry> {
80 match format {
81 "jsonl" => condense_claude_transcript(raw),
82 // Future: "json" => condense_gemini_transcript(raw),
83 _ => {
84 log::warn!("Unknown transcript format '{}', returning empty", format);
85 Vec::new()
86 }
87 }
88}
89
90/// Format condensed entries as human-readable text.
91///

Callers 3

get_condensed_textFunction · 0.85
build_unhashed_turn_dataFunction · 0.85

Calls 1

Tested by 1