pub struct LlmAgentBuilder { /* private fields */ }Implementations§
Source§impl LlmAgentBuilder
impl LlmAgentBuilder
pub fn new(name: impl Into<String>) -> Self
pub fn model(self, value: String) -> Self
pub fn instruction(self, value: String) -> Self
pub fn global_instruction(self, value: String) -> Self
pub fn tools(self, value: Vec<Arc<dyn ToolFunction>>) -> Self
pub fn generate_content_config(self, value: Value) -> Self
pub fn disallow_transfer_to_parent(self, value: bool) -> Self
pub fn disallow_transfer_to_peers(self, value: bool) -> Self
pub fn include_contents(self, value: String) -> Self
pub fn input_schema(self, value: Value) -> Self
pub fn output_schema(self, value: Value) -> Self
pub fn output_key(self, value: String) -> Self
pub fn request_processors(self, value: Vec<Value>) -> Self
pub fn response_processors(self, value: Vec<Value>) -> Self
pub fn code_executor(self, value: Value) -> Self
pub fn description(self, value: String) -> Self
pub fn parent_agent(self, value: Arc<dyn Agent>) -> Self
pub fn sub_agents(self, value: Vec<Arc<dyn Agent>>) -> Self
pub fn build(self) -> LlmAgent
Auto Trait Implementations§
impl Freeze for LlmAgentBuilder
impl !RefUnwindSafe for LlmAgentBuilder
impl Send for LlmAgentBuilder
impl Sync for LlmAgentBuilder
impl Unpin for LlmAgentBuilder
impl !UnwindSafe for LlmAgentBuilder
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