pub struct ConfigBuilder { /* private fields */ }Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn new() -> Self
pub fn system_prompt(self, prompt: impl Into<String>) -> Self
pub fn model(self, model: impl Into<String>) -> Self
pub fn mcp_config(self, path: impl Into<PathBuf>) -> Self
pub fn allowed_tools(self, tools: Vec<String>) -> Self
pub fn stream_format(self, format: StreamFormat) -> Self
pub fn non_interactive(self, non_interactive: bool) -> Self
pub fn max_tokens(self, max_tokens: usize) -> Self
pub fn timeout_secs(self, timeout_secs: u64) -> Self
pub fn build(self) -> Config
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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