MCPcopy Create free account
hub / github.com/AI45Lab/Code / add_item

Method add_item

core/src/context/mod.rs:339–342  ·  view source on GitHub ↗

Add an item to the result

(&mut self, item: ContextItem)

Source from the content-addressed store, hash-verified

337
338 /// Add an item to the result
339 pub fn add_item(&mut self, item: ContextItem) {
340 self.total_tokens += item.token_count;
341 self.items.push(item);
342 }
343
344 /// Check if the result is empty
345 pub fn is_empty(&self) -> bool {

Callers 13

queryMethod · 0.80
resultFunction · 0.80
queryMethod · 0.80
queryMethod · 0.80
queryMethod · 0.80

Calls

no outgoing calls