Add an item to the result
(&mut self, item: ContextItem)
| 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 { |
no outgoing calls