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

Method new

atomic-agent/src/provenance/types.rs:282–302  ·  view source on GitHub ↗

Create a new node with the minimum required fields.

(
        id: impl Into<String>,
        kind: NodeKind,
        timestamp: i64,
        summary: impl Into<String>,
    )

Source from the content-addressed store, hash-verified

280impl GraphNode {
281 /// Create a new node with the minimum required fields.
282 pub fn new(
283 id: impl Into<String>,
284 kind: NodeKind,
285 timestamp: i64,
286 summary: impl Into<String>,
287 ) -> Self {
288 Self {
289 id: id.into(),
290 kind,
291 timestamp,
292 summary: summary.into(),
293 detail: None,
294 change_hash: None,
295 tool_name: None,
296 tool_call_id: None,
297 duration_ms: None,
298 classified: false,
299 confidence: None,
300 consolidated_from: Vec::new(),
301 }
302 }
303
304 /// Set the detail field.
305 pub fn with_detail(mut self, detail: serde_json::Value) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected