Add history pruning and context-aware tool filtering to reduce token usage per API call. History pruner collapses old tool call/result pairs and drops oldest messages when over budget. Context analyzer suggests relevant tools per iteration based on keyword matching. New files: history_pruner.rs, context_analyzer.rs Modified: AgentConfig (new fields), ToolFilterGroup (filter_builtins), agent loop (pruning integration) |
||
|---|---|---|
| .. | ||
| agent.rs | ||
| classifier.rs | ||
| context_analyzer.rs | ||
| dispatcher.rs | ||
| history_pruner.rs | ||
| loop_.rs | ||
| loop_detector.rs | ||
| memory_loader.rs | ||
| mod.rs | ||
| prompt.rs | ||
| tests.rs | ||
| thinking.rs | ||