pub struct CodeInterpreterToolCall {
pub id: String,
pub container_id: Option<String>,
pub code: String,
pub status: CodeInterpreterToolCallStatus,
pub results: Vec<CodeInterpreterToolOutput>,
}
Expand description
A tool call to run code.
Fields§
§id: String
The unique ID of the code interpreter tool call.
container_id: Option<String>
The ID of the container used to run the code.
code: String
The code to run.
status: CodeInterpreterToolCallStatus
The status of the code interpreter tool call.
results: Vec<CodeInterpreterToolOutput>
The results of the code interpreter tool call.
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(...)
, .container_id(...)
(optional), .code(...)
, .status(...)
, .results(...)
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§fn clone_from(&mut self, source: &Self)
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§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