Skip to main content

DirectSearchShallow

Struct DirectSearchShallow 

Source
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: u32

Floor on max_results per search. Defaults to 3.

§source_label: String

Provider label recorded against each RawSearchHit and used as the shallow strategy source tag in the transcript.

Implementations§

Source§

impl DirectSearchShallow

Source

pub fn new(search: Arc<dyn WebSearch>) -> Self

Wire a shallow researcher around an existing WebSearch implementation.

Source

pub fn with_min_results(self, n: u32) -> Self

Override the min_results floor (the actual request uses req.breadth.max(min_results)).

Source

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

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,

Produce a ResearchResult without engaging the deep harness. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.