1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Two-tier outer shell for [`atomr-agents-deep-research-harness`].
//!
//! An [`IntentClassifier`] routes incoming [`ResearchRequest`]s to
//! either a fast shallow path (one web-search call, no role loop) or
//! the full deep harness. The shell implements
//! [`atomr_agents_callable::Callable`] so it composes into agents,
//! workflows, and tool registries exactly like the underlying harness.
//!
//! The crate is intentionally minimal: it depends on
//! `atomr-agents-deep-research-core` for the contract types,
//! `atomr-agents-deep-research-harness` for the
//! [`DeepResearchHarnessRef`] handle, and
//! `atomr-agents-web-search-core` for the shallow path's `WebSearch`
//! provider. It does **not** depend on any web-search-provider crate;
//! callers wire in their own provider (or [`MockWebSearch`] for tests).
//!
//! ```ignore
//! use std::sync::Arc;
//! use atomr_agents_deep_research_shell::{
//! DeepResearchShell, DirectSearchShallow, HeuristicIntentClassifier,
//! };
//!
//! let shell = DeepResearchShell::new(
//! Arc::new(HeuristicIntentClassifier::new()),
//! Arc::new(DirectSearchShallow::new(web_search.clone())),
//! deep_ref,
//! );
//! let v = shell.call(serde_json::json!({"query": "rust"}), ctx).await?;
//! ```
//!
//! [`ResearchRequest`]: atomr_agents_deep_research_core::ResearchRequest
//! [`DeepResearchHarnessRef`]: atomr_agents_deep_research_harness::DeepResearchHarnessRef
//! [`MockWebSearch`]: atomr_agents_web_search_core::MockWebSearch
pub use ;
pub use ;
pub use ;
pub use DeepResearchShell;
/// The shell exposes [`Callable`] from `atomr-agents-callable`.
pub use Callable;