pub struct CodeInterpreterToolArgs { /* private fields */ }Expand description
Builder for CodeInterpreterTool.
Implementations§
Source§impl CodeInterpreterToolArgs
impl CodeInterpreterToolArgs
Sourcepub fn container<VALUE: Into<CodeInterpreterToolContainer>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn container<VALUE: Into<CodeInterpreterToolContainer>>( &mut self, value: VALUE, ) -> &mut Self
The code interpreter container. Can be a container ID or an object that specifies uploaded file IDs to make available to your code.
Sourcepub fn build(&self) -> Result<CodeInterpreterTool, OpenAIError>
pub fn build(&self) -> Result<CodeInterpreterTool, OpenAIError>
Trait Implementations§
Source§impl Clone for CodeInterpreterToolArgs
impl Clone for CodeInterpreterToolArgs
Source§fn clone(&self) -> CodeInterpreterToolArgs
fn clone(&self) -> CodeInterpreterToolArgs
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 moreAuto Trait Implementations§
impl Freeze for CodeInterpreterToolArgs
impl RefUnwindSafe for CodeInterpreterToolArgs
impl Send for CodeInterpreterToolArgs
impl Sync for CodeInterpreterToolArgs
impl Unpin for CodeInterpreterToolArgs
impl UnwindSafe for CodeInterpreterToolArgs
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