pub struct DirectSearchShallow {
pub min_results: u32,
pub source_label: String,
/* private fields */
}Expand description
Default shallow researcher: one web-search call, results rendered as a numbered markdown report.
This is intentionally non-LLM-driven so the shell can serve fast
queries without provider credentials. It mirrors the
DeepResearchRoles::defaults() philosophy: deterministic baseline,
callers swap in something smarter when they need it.
Fields§
§min_results: u32Floor on max_results per search. Defaults to 3.
source_label: StringProvider label recorded against each RawSearchHit and used as
the shallow strategy source tag in the transcript.
Implementations§
Source§impl DirectSearchShallow
impl DirectSearchShallow
Sourcepub fn new(search: Arc<dyn WebSearch>) -> Self
pub fn new(search: Arc<dyn WebSearch>) -> Self
Wire a shallow researcher around an existing WebSearch
implementation.
Sourcepub fn with_min_results(self, n: u32) -> Self
pub fn with_min_results(self, n: u32) -> Self
Override the min_results floor (the actual request uses
req.breadth.max(min_results)).
Sourcepub fn with_source_label(self, label: impl Into<String>) -> Self
pub fn with_source_label(self, label: impl Into<String>) -> Self
Override the provider label stamped onto raw hits.
Trait Implementations§
Source§impl ShallowResearcher for DirectSearchShallow
impl ShallowResearcher for DirectSearchShallow
Source§fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 ResearchRequest,
) -> Pin<Box<dyn Future<Output = Result<ResearchResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 ResearchRequest,
) -> Pin<Box<dyn Future<Output = Result<ResearchResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Produce a
ResearchResult without engaging the deep harness. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DirectSearchShallow
impl !UnwindSafe for DirectSearchShallow
impl Freeze for DirectSearchShallow
impl Send for DirectSearchShallow
impl Sync for DirectSearchShallow
impl Unpin for DirectSearchShallow
impl UnsafeUnpin for DirectSearchShallow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more