MCPcopy Create free account
hub / github.com/agenticsorg/lean-agentic / mark

Method mark

lean-agentic/src/context.rs:130–132  ·  view source on GitHub ↗

Save the current context length (for later restoration)

(&self)

Source from the content-addressed store, hash-verified

128
129 /// Save the current context length (for later restoration)
130 pub fn mark(&self) -> usize {
131 self.len()
132 }
133
134 /// Restore context to a previous mark
135 pub fn restore(&mut self, mark: usize) {

Callers 1

newMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected