pub struct CodeInterpreterToolCall {
pub id: String,
pub status: CodeInterpreterToolCallStatus,
pub container_id: String,
pub code: Option<String>,
pub outputs: Option<Vec<CodeInterpreterToolCallOutputs>>,
}
Expand description
A tool call to run code.
Fields§
§id: String
The unique ID of the code interpreter tool call.
status: CodeInterpreterToolCallStatus
The status of the code interpreter tool call.
container_id: String
The ID of the container used to run the code.
code: Option<String>
The code to run, or null if not available.
outputs: Option<Vec<CodeInterpreterToolCallOutputs>>
The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available.
Implementations§
Source§impl CodeInterpreterToolCall
impl CodeInterpreterToolCall
Sourcepub fn builder() -> CodeInterpreterToolCallBuilder<((), (), (), (), ())>
pub fn builder() -> CodeInterpreterToolCallBuilder<((), (), (), (), ())>
Create a builder for building CodeInterpreterToolCall
.
On the builder, call .id(...)
, .status(...)
, .container_id(...)
, .code(...)
(optional), .outputs(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CodeInterpreterToolCall
.
Trait Implementations§
Source§impl Clone for CodeInterpreterToolCall
impl Clone for CodeInterpreterToolCall
Source§fn clone(&self) -> CodeInterpreterToolCall
fn clone(&self) -> CodeInterpreterToolCall
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CodeInterpreterToolCall
impl Debug for CodeInterpreterToolCall
Source§impl<'de> Deserialize<'de> for CodeInterpreterToolCall
impl<'de> Deserialize<'de> for CodeInterpreterToolCall
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
Source§impl PartialEq for CodeInterpreterToolCall
impl PartialEq for CodeInterpreterToolCall
Source§fn eq(&self, other: &CodeInterpreterToolCall) -> bool
fn eq(&self, other: &CodeInterpreterToolCall) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for CodeInterpreterToolCall
impl Serialize for CodeInterpreterToolCall
impl StructuralPartialEq for CodeInterpreterToolCall
Auto Trait Implementations§
impl Freeze for CodeInterpreterToolCall
impl RefUnwindSafe for CodeInterpreterToolCall
impl Send for CodeInterpreterToolCall
impl Sync for CodeInterpreterToolCall
impl Unpin for CodeInterpreterToolCall
impl UnwindSafe for CodeInterpreterToolCall
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