Trait SufficiencyChecker
Source pub trait SufficiencyChecker: Send + Sync {
// Required methods
fn check(
&self,
query: &str,
content: &str,
token_count: usize,
) -> SufficiencyLevel;
fn name(&self) -> &str;
}
Expand description
Trait for sufficiency checking strategies.
Check if the collected content is sufficient to answer the query.
§Arguments
query - The original query
content - The collected content so far
token_count - Approximate token count of content
§Returns
A SufficiencyLevel indicating whether to continue retrieving.
Get the name of this checker.