pub struct AgentBuilder { /* private fields */ }Expand description
Builder for creating agents
Implementations§
Source§impl AgentBuilder
impl AgentBuilder
Sourcepub fn instructions(self, instructions: impl Into<Instructions>) -> Self
pub fn instructions(self, instructions: impl Into<Instructions>) -> Self
Set the agent instructions
Sourcepub fn model_settings(self, settings: ModelSettings) -> Self
pub fn model_settings(self, settings: ModelSettings) -> Self
Set model settings
Sourcepub fn handoff_description(self, desc: impl Into<String>) -> Self
pub fn handoff_description(self, desc: impl Into<String>) -> Self
Set handoff description
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