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

Function condense_transcript

atomic-agent/src/transcript/condense.rs:81–91  ·  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

79///
80/// Currently supports Claude Code JSONL. Future: Gemini JSON, other formats.
81pub fn condense_transcript(raw: &[u8], format: &str) -> Vec<CondensedEntry> {
82 match format {
83 "jsonl" => condense_claude_transcript(raw),
84 "opencode" => condense_opencode_transcript(raw),
85 // Future: "json" => condense_gemini_transcript(raw),
86 _ => {
87 log::warn!("Unknown transcript format '{}', returning empty", format);
88 Vec::new()
89 }
90 }
91}
92
93/// Parse a synthesized OpenCode JSONL transcript into condensed entries.
94///

Callers 4

get_condensed_textFunction · 0.85
build_unhashed_turn_dataFunction · 0.85
last_assistant_textFunction · 0.85

Calls 2

Tested by 1