pub const SEARCH_RESULTS_CAP: usize = 30;Expand description
Maximum number of ToolSummary entries returned by a single
ToolIndex::search call.
This cap exists to prevent “blank conditioning” — a failure mode observed when an LLM receives more candidate tools than it can effectively discriminate between. Searches that match more than this number of tools should be refined with a more specific query.