Skip to main content

DeepResearchEngine

Trait DeepResearchEngine 

Source
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§

Source

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,

执行研究

§参数
  • provider - LLM Provider
  • topic - 研究主题
§返回

研究报告

Source

fn progress(&self) -> ResearchProgress

获取研究进度

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§