pub struct DeepResearch { /* private fields */ }Implementations§
Source§impl DeepResearch
impl DeepResearch
Sourcepub async fn start(
&self,
model: impl Into<String>,
input: impl Into<InteractionInput>,
) -> Result<Interaction>
pub async fn start( &self, model: impl Into<String>, input: impl Into<InteractionInput>, ) -> Result<Interaction>
启动 Deep Research(默认配置)。
Sourcepub async fn start_with_config(
&self,
config: CreateInteractionConfig,
) -> Result<Interaction>
pub async fn start_with_config( &self, config: CreateInteractionConfig, ) -> Result<Interaction>
启动 Deep Research(自定义配置)。
Sourcepub async fn stream_with_config(
&self,
config: CreateInteractionConfig,
) -> Result<Pin<Box<dyn Stream<Item = Result<InteractionEvent>> + Send>>>
pub async fn stream_with_config( &self, config: CreateInteractionConfig, ) -> Result<Pin<Box<dyn Stream<Item = Result<InteractionEvent>> + Send>>>
流式启动 Deep Research(自定义配置)。
Trait Implementations§
Source§impl Clone for DeepResearch
impl Clone for DeepResearch
Source§fn clone(&self) -> DeepResearch
fn clone(&self) -> DeepResearch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeepResearch
impl !RefUnwindSafe for DeepResearch
impl Send for DeepResearch
impl Sync for DeepResearch
impl Unpin for DeepResearch
impl !UnwindSafe for DeepResearch
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