pub struct ThreadOptionsBuilder { /* private fields */ }Implementations§
Source§impl ThreadOptionsBuilder
impl ThreadOptionsBuilder
pub fn new() -> Self
pub fn build(self) -> ThreadOptions
pub fn model(self, model: impl Into<String>) -> Self
pub fn model_provider(self, model_provider: impl Into<String>) -> Self
pub fn sandbox_mode(self, sandbox_mode: SandboxMode) -> Self
pub fn sandbox_policy(self, sandbox_policy: Value) -> Self
pub fn working_directory(self, working_directory: impl Into<String>) -> Self
pub fn skip_git_repo_check(self, enabled: bool) -> Self
pub fn model_reasoning_effort( self, model_reasoning_effort: ModelReasoningEffort, ) -> Self
pub fn model_reasoning_summary( self, model_reasoning_summary: ModelReasoningSummary, ) -> Self
pub fn network_access_enabled(self, enabled: bool) -> Self
pub fn web_search_mode(self, web_search_mode: WebSearchMode) -> Self
pub fn web_search_enabled(self, enabled: bool) -> Self
pub fn approval_policy(self, approval_policy: ApprovalMode) -> Self
pub fn additional_directories(self, additional_directories: Vec<String>) -> Self
pub fn add_directory(self, directory: impl Into<String>) -> Self
pub fn personality(self, personality: Personality) -> Self
pub fn base_instructions(self, base_instructions: impl Into<String>) -> Self
pub fn developer_instructions( self, developer_instructions: impl Into<String>, ) -> Self
pub fn ephemeral(self, ephemeral: bool) -> Self
pub fn collaboration_mode(self, collaboration_mode: CollaborationMode) -> Self
pub fn config(self, config: Map<String, Value>) -> Self
pub fn insert_config(self, key: impl Into<String>, value: Value) -> Self
pub fn dynamic_tools(self, dynamic_tools: Vec<DynamicToolSpec>) -> Self
pub fn experimental_raw_events(self, enabled: bool) -> Self
pub fn persist_extended_history(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for ThreadOptionsBuilder
impl Clone for ThreadOptionsBuilder
Source§fn clone(&self) -> ThreadOptionsBuilder
fn clone(&self) -> ThreadOptionsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadOptionsBuilder
impl Debug for ThreadOptionsBuilder
Source§impl Default for ThreadOptionsBuilder
impl Default for ThreadOptionsBuilder
Source§fn default() -> ThreadOptionsBuilder
fn default() -> ThreadOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThreadOptionsBuilder
impl RefUnwindSafe for ThreadOptionsBuilder
impl Send for ThreadOptionsBuilder
impl Sync for ThreadOptionsBuilder
impl Unpin for ThreadOptionsBuilder
impl UnsafeUnpin for ThreadOptionsBuilder
impl UnwindSafe for ThreadOptionsBuilder
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