pub struct ThreadStartParams {
pub instructions: Option<String>,
pub tools: Option<Vec<Value>>,
}Expand description
Parameters for thread/start.
Use ThreadStartParams::default() for a basic thread with no custom instructions.
Fields§
§instructions: Option<String>Optional system instructions for the agent.
tools: Option<Vec<Value>>Optional tool definitions to make available to the agent.
Trait Implementations§
Source§impl Clone for ThreadStartParams
impl Clone for ThreadStartParams
Source§fn clone(&self) -> ThreadStartParams
fn clone(&self) -> ThreadStartParams
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 ThreadStartParams
impl Debug for ThreadStartParams
Source§impl Default for ThreadStartParams
impl Default for ThreadStartParams
Source§fn default() -> ThreadStartParams
fn default() -> ThreadStartParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThreadStartParams
impl<'de> Deserialize<'de> for ThreadStartParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ThreadStartParams
impl RefUnwindSafe for ThreadStartParams
impl Send for ThreadStartParams
impl Sync for ThreadStartParams
impl Unpin for ThreadStartParams
impl UnsafeUnpin for ThreadStartParams
impl UnwindSafe for ThreadStartParams
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