pub struct MicroagentConfigBuilder { /* private fields */ }Expand description
Builder for microagent configuration
Implementations§
Source§impl MicroagentConfigBuilder
impl MicroagentConfigBuilder
Sourcepub fn max_output_tokens(self, tokens: u32) -> Self
pub fn max_output_tokens(self, tokens: u32) -> Self
Set the maximum output tokens.
Sourcepub fn temperature(self, temp: f32) -> Self
pub fn temperature(self, temp: f32) -> Self
Set the temperature for sampling (clamped to 0.0-2.0).
Sourcepub fn system_prompt(self, prompt: impl Into<String>) -> Self
pub fn system_prompt(self, prompt: impl Into<String>) -> Self
Set the system prompt template.
Sourcepub fn red_flag_config(self, config: RedFlagConfig) -> Self
pub fn red_flag_config(self, config: RedFlagConfig) -> Self
Set the red-flag validation configuration.
Sourcepub fn timeout_ms(self, timeout: u64) -> Self
pub fn timeout_ms(self, timeout: u64) -> Self
Set the execution timeout in milliseconds.
Sourcepub fn build(self) -> MicroagentConfig
pub fn build(self) -> MicroagentConfig
Build the microagent configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MicroagentConfigBuilder
impl RefUnwindSafe for MicroagentConfigBuilder
impl Send for MicroagentConfigBuilder
impl Sync for MicroagentConfigBuilder
impl Unpin for MicroagentConfigBuilder
impl UnsafeUnpin for MicroagentConfigBuilder
impl UnwindSafe for MicroagentConfigBuilder
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