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

Method next_id

atomic-agent/src/provenance/accumulator/mod.rs:285–288  ·  view source on GitHub ↗

Generate the next unique node ID and increment the counter.

(&mut self)

Source from the content-addressed store, hash-verified

283
284 /// Generate the next unique node ID and increment the counter.
285 pub(crate) fn next_id(&mut self) -> String {
286 self.counter += 1;
287 format!("{}-{}", self.session_prefix, self.counter)
288 }
289
290 /// Push a node onto the graph, updating stats and last_node cursor.
291 pub(crate) fn push_node(&mut self, node: GraphNode) {

Callers 6

append_goalMethod · 0.80
append_tool_callMethod · 0.80
append_reasoningMethod · 0.80
append_human_gateMethod · 0.80
append_patch_proposalMethod · 0.80
append_raw_nodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected