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

Method increment

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

Increment the counter for the given node kind.

(&mut self, kind: NodeKind)

Source from the content-addressed store, hash-verified

432
433 /// Increment the counter for the given node kind.
434 pub fn increment(&mut self, kind: NodeKind) {
435 match kind {
436 NodeKind::Goal => self.goal_count += 1,
437 NodeKind::Exploration => self.exploration_count += 1,
438 NodeKind::Decision => self.decision_count += 1,
439 NodeKind::Commitment => self.commitment_count += 1,
440 NodeKind::Verification => self.verification_count += 1,
441 NodeKind::Execution => self.execution_count += 1,
442 NodeKind::HumanGate => self.human_gate_count += 1,
443 NodeKind::PatchProposal => self.patch_proposal_count += 1,
444 NodeKind::Error => self.error_count += 1,
445 NodeKind::Todo => self.todo_count += 1,
446 NodeKind::TodoStatusChange => self.todo_status_change_count += 1,
447 NodeKind::PhaseTransition => self.phase_transition_count += 1,
448 NodeKind::Lesson => self.lesson_count += 1,
449 NodeKind::LlmResponse => self.llm_response_count += 1,
450 NodeKind::HumanGateResolution => self.human_gate_resolution_count += 1,
451 }
452 }
453
454 /// Returns `true` if there are no nodes.
455 pub fn is_empty(&self) -> bool {

Callers 4

consolidateFunction · 0.45
push_nodeMethod · 0.45

Calls

no outgoing calls

Tested by 2