Skip to main content

is_codesearch_no_match_output

Function is_codesearch_no_match_output 

Source
pub fn is_codesearch_no_match_output(
    tool_name: &str,
    success: bool,
    output: &str,
) -> bool
Expand description

Return whether a successful codesearch result represents a no-match response.

ยงExamples

use codetether_agent::session::helper::runtime::is_codesearch_no_match_output;

assert!(is_codesearch_no_match_output(
    "codesearch",
    true,
    "No matches found for pattern: example",
));
assert!(!is_codesearch_no_match_output("read", true, "No matches found"));