Skip to main content

ThreadOptionsBuilder

Struct ThreadOptionsBuilder 

Source
pub struct ThreadOptionsBuilder { /* private fields */ }

Implementations§

Source§

impl ThreadOptionsBuilder

Source

pub fn new() -> Self

Source

pub fn build(self) -> ThreadOptions

Source

pub fn model(self, model: impl Into<String>) -> Self

Source

pub fn model_provider(self, model_provider: impl Into<String>) -> Self

Source

pub fn sandbox_mode(self, sandbox_mode: SandboxMode) -> Self

Source

pub fn sandbox_policy(self, sandbox_policy: Value) -> Self

Source

pub fn working_directory(self, working_directory: impl Into<String>) -> Self

Source

pub fn skip_git_repo_check(self, enabled: bool) -> Self

Source

pub fn model_reasoning_effort( self, model_reasoning_effort: ModelReasoningEffort, ) -> Self

Source

pub fn model_reasoning_summary( self, model_reasoning_summary: ModelReasoningSummary, ) -> Self

Source

pub fn network_access_enabled(self, enabled: bool) -> Self

Source

pub fn web_search_mode(self, web_search_mode: WebSearchMode) -> Self

Source

pub fn web_search_enabled(self, enabled: bool) -> Self

Source

pub fn approval_policy(self, approval_policy: ApprovalMode) -> Self

Source

pub fn additional_directories(self, additional_directories: Vec<String>) -> Self

Source

pub fn add_directory(self, directory: impl Into<String>) -> Self

Source

pub fn personality(self, personality: Personality) -> Self

Source

pub fn base_instructions(self, base_instructions: impl Into<String>) -> Self

Source

pub fn developer_instructions( self, developer_instructions: impl Into<String>, ) -> Self

Source

pub fn ephemeral(self, ephemeral: bool) -> Self

Source

pub fn collaboration_mode(self, collaboration_mode: CollaborationMode) -> Self

Source

pub fn config(self, config: Map<String, Value>) -> Self

Source

pub fn insert_config(self, key: impl Into<String>, value: Value) -> Self

Source

pub fn dynamic_tools(self, dynamic_tools: Vec<DynamicToolSpec>) -> Self

Source

pub fn experimental_raw_events(self, enabled: bool) -> Self

Source

pub fn persist_extended_history(self, enabled: bool) -> Self

Trait Implementations§

Source§

impl Clone for ThreadOptionsBuilder

Source§

fn clone(&self) -> ThreadOptionsBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ThreadOptionsBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ThreadOptionsBuilder

Source§

fn default() -> ThreadOptionsBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V