pub struct AgentBuilder {
pub model: Option<Model>,
pub instructions: Option<String>,
pub tools: Vec<Arc<dyn Tool>>,
pub skills: Vec<Arc<Skill>>,
pub sandbox: Option<Arc<dyn Sandbox>>,
pub thinking: ThinkingLevel,
}Expand description
Incremental builder used inside define_agent.
Fields§
§model: Option<Model>Model.
instructions: Option<String>Instructions.
tools: Vec<Arc<dyn Tool>>Tools.
skills: Vec<Arc<Skill>>Skills.
sandbox: Option<Arc<dyn Sandbox>>Sandbox.
thinking: ThinkingLevelThinking level.
Implementations§
Source§impl AgentBuilder
impl AgentBuilder
Sourcepub fn instructions(&mut self, text: impl Into<String>) -> &mut Self
pub fn instructions(&mut self, text: impl Into<String>) -> &mut Self
Set the instructions.
Trait Implementations§
Source§impl Default for AgentBuilder
impl Default for AgentBuilder
Source§fn default() -> AgentBuilder
fn default() -> AgentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AgentBuilder
impl !UnwindSafe for AgentBuilder
impl Freeze for AgentBuilder
impl Send for AgentBuilder
impl Sync for AgentBuilder
impl Unpin for AgentBuilder
impl UnsafeUnpin for AgentBuilder
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