pub struct CodeInterpreterToolArgs { /* private fields */ }Expand description
Builder for CodeInterpreterTool.
Implementations§
Source§impl CodeInterpreterToolArgs
impl CodeInterpreterToolArgs
Sourcepub fn container<VALUE>(&mut self, value: VALUE) -> &mut CodeInterpreterToolArgswhere
VALUE: Into<CodeInterpreterToolContainer>,
pub fn container<VALUE>(&mut self, value: VALUE) -> &mut CodeInterpreterToolArgswhere
VALUE: Into<CodeInterpreterToolContainer>,
The code interpreter container. Can be a container ID or an object that
specifies uploaded file IDs to make available to your code, along with an
optional memory_limit setting.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CodeInterpreterToolArgs
impl Default for CodeInterpreterToolArgs
Source§fn default() -> CodeInterpreterToolArgs
fn default() -> CodeInterpreterToolArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodeInterpreterToolArgs
impl RefUnwindSafe for CodeInterpreterToolArgs
impl Send for CodeInterpreterToolArgs
impl Sync for CodeInterpreterToolArgs
impl Unpin for CodeInterpreterToolArgs
impl UnsafeUnpin 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