pub struct ResponseCodeInterpreterToolCall {
pub id: String,
pub code: Option<String>,
pub container_id: String,
pub outputs: Option<Vec<FunctionShellOutput>>,
pub status: ResponseCodeInterpreterToolCallStatus,
pub type_: String,
}Expand description
A tool call to run code.
Fields§
§id: StringThe unique ID of the code interpreter tool call.
code: Option<String>The code to run, or null if not available.
container_id: StringThe ID of the container used to run the code.
outputs: Option<Vec<FunctionShellOutput>>The outputs generated by the code interpreter, such as logs or images. Can be
status: ResponseCodeInterpreterToolCallStatusThe status of the code interpreter tool call.
type_: StringThe type of the code interpreter tool call. Always code_interpreter_call.
Trait Implementations§
Source§impl Clone for ResponseCodeInterpreterToolCall
impl Clone for ResponseCodeInterpreterToolCall
Source§fn clone(&self) -> ResponseCodeInterpreterToolCall
fn clone(&self) -> ResponseCodeInterpreterToolCall
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<'de> Deserialize<'de> for ResponseCodeInterpreterToolCall
impl<'de> Deserialize<'de> for ResponseCodeInterpreterToolCall
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 ResponseCodeInterpreterToolCall
impl RefUnwindSafe for ResponseCodeInterpreterToolCall
impl Send for ResponseCodeInterpreterToolCall
impl Sync for ResponseCodeInterpreterToolCall
impl Unpin for ResponseCodeInterpreterToolCall
impl UnsafeUnpin for ResponseCodeInterpreterToolCall
impl UnwindSafe for ResponseCodeInterpreterToolCall
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