Skip to main content

DeepResearchAgentBuilder

Defined in the agents module.
Rust AI Agent SDK Builder for DeepResearchAgent.

Fields

NameTypeDescription
nameOption<String>-
modelOption<String>-
instructionsOption<String>-
configDeepResearchConfig-
verbosebool-

Methods

name

fn name(mut self, name: impl Into<String>) -> Self
Set the agent name Parameters:
NameType
nameimpl Into&lt;String&gt;

model

fn model(mut self, model: impl Into<String>) -> Self
Set the model Parameters:
NameType
modelimpl Into&lt;String&gt;

instructions

fn instructions(mut self, instructions: impl Into<String>) -> Self
Set instructions Parameters:
NameType
instructionsimpl Into&lt;String&gt;

config

fn config(mut self, config: DeepResearchConfig) -> Self
Set config Parameters:
NameType
configDeepResearchConfig

build

fn build(self) -> Result<DeepResearchAgent>
Build the agent

Source

View on GitHub

praisonai/src/agents/mod.rs at line 1174