pub struct CodeInterpreter {
pub container: CodeInterpreterContainer,
pub type_: String,
}Expand description
A tool that runs Python code to help generate a response to a prompt.
Fields§
§container: CodeInterpreterContainerThe code interpreter container.
type_: StringThe type of the code interpreter tool. Always code_interpreter.
Trait Implementations§
Source§impl Clone for CodeInterpreter
impl Clone for CodeInterpreter
Source§fn clone(&self) -> CodeInterpreter
fn clone(&self) -> CodeInterpreter
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 Debug for CodeInterpreter
impl Debug for CodeInterpreter
Source§impl<'de> Deserialize<'de> for CodeInterpreter
impl<'de> Deserialize<'de> for CodeInterpreter
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 CodeInterpreter
impl RefUnwindSafe for CodeInterpreter
impl Send for CodeInterpreter
impl Sync for CodeInterpreter
impl Unpin for CodeInterpreter
impl UnsafeUnpin for CodeInterpreter
impl UnwindSafe for CodeInterpreter
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