pub struct RunRequestBuilder { /* private fields */ }Expand description
Builder for RunRequest
Implementations§
Source§impl RunRequestBuilder
impl RunRequestBuilder
Sourcepub fn assistant_id<S: Into<String>>(self, assistant_id: S) -> Self
pub fn assistant_id<S: Into<String>>(self, assistant_id: S) -> Self
Set the assistant ID
Sourcepub fn instructions<S: Into<String>>(self, instructions: S) -> Self
pub fn instructions<S: Into<String>>(self, instructions: S) -> Self
Set the instructions
Sourcepub fn tool(self, tool: AssistantTool) -> Self
pub fn tool(self, tool: AssistantTool) -> Self
Add a tool
Sourcepub fn tools(self, tools: Vec<AssistantTool>) -> Self
pub fn tools(self, tools: Vec<AssistantTool>) -> Self
Set tools
Source§impl RunRequestBuilder
impl RunRequestBuilder
Sourcepub fn build(self) -> Result<RunRequest, String>
pub fn build(self) -> Result<RunRequest, String>
Build the request
Trait Implementations§
Source§impl Debug for RunRequestBuilder
impl Debug for RunRequestBuilder
Source§impl Default for RunRequestBuilder
impl Default for RunRequestBuilder
Source§fn default() -> RunRequestBuilder
fn default() -> RunRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RunRequestBuilder
impl RefUnwindSafe for RunRequestBuilder
impl Send for RunRequestBuilder
impl Sync for RunRequestBuilder
impl Unpin for RunRequestBuilder
impl UnwindSafe for RunRequestBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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