pub trait DeepResearchEngine: Send + Sync {
// Required methods
fn research<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider: &'life1 Arc<dyn LlmProvider>,
topic: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ResearchReport, ResearchError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn progress(&self) -> ResearchProgress;
}Expand description
深度研究引擎 trait
负责执行完整的深度研究流程。
Required Methods§
Sourcefn research<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider: &'life1 Arc<dyn LlmProvider>,
topic: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ResearchReport, ResearchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn research<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider: &'life1 Arc<dyn LlmProvider>,
topic: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ResearchReport, ResearchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Sourcefn progress(&self) -> ResearchProgress
fn progress(&self) -> ResearchProgress
获取研究进度
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".