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

Method new

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

Create a minimal unhashed data struct (no reasoning).

(
        session_id: impl Into<String>,
        turn_number: u32,
        format: impl Into<String>,
        entries: Vec<CondensedEntry>,
        files: &[String],
    )

Source from the content-addressed store, hash-verified

64impl UnhashedTurnData {
65 /// Create a minimal unhashed data struct (no reasoning).
66 pub fn new(
67 session_id: impl Into<String>,
68 turn_number: u32,
69 format: impl Into<String>,
70 entries: Vec<CondensedEntry>,
71 files: &[String],
72 ) -> Self {
73 let condensed_text = format_condensed(&entries, files);
74 let prompts = extract_prompts(&entries);
75 let tools_used = aggregate_tool_usage(&entries);
76
77 Self {
78 session_id: session_id.into(),
79 turn_number,
80 transcript_format: format.into(),
81 condensed_transcript: entries,
82 condensed_text,
83 prompts,
84 tools_used,
85 reasoning: None,
86 redacted: false,
87 }
88 }
89
90 /// Set the reasoning summary.
91 pub fn with_reasoning(mut self, reasoning: TurnReasoning) -> Self {

Callers

nothing calls this directly

Calls 3

format_condensedFunction · 0.85
extract_promptsFunction · 0.85
aggregate_tool_usageFunction · 0.85

Tested by

no test coverage detected