pub struct ResponseCodeInterpreterCallCodeDoneEvent {
pub output_index: i64,
pub item_id: String,
pub code: String,
pub sequence_number: i64,
}
Expand description
Emitted when the code snippet is finalized by the code interpreter.
Fields§
§output_index: i64
The index of the output item in the response for which the code is finalized.
item_id: String
The unique identifier of the code interpreter tool call item.
code: String
The final code snippet output by the code interpreter.
sequence_number: i64
The sequence number of this event, used to order streaming events.
Implementations§
Source§impl ResponseCodeInterpreterCallCodeDoneEvent
impl ResponseCodeInterpreterCallCodeDoneEvent
Sourcepub fn builder() -> ResponseCodeInterpreterCallCodeDoneEventBuilder<((), (), (), ())>
pub fn builder() -> ResponseCodeInterpreterCallCodeDoneEventBuilder<((), (), (), ())>
Create a builder for building ResponseCodeInterpreterCallCodeDoneEvent
.
On the builder, call .output_index(...)
, .item_id(...)
, .code(...)
, .sequence_number(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ResponseCodeInterpreterCallCodeDoneEvent
.
Trait Implementations§
Source§impl Clone for ResponseCodeInterpreterCallCodeDoneEvent
impl Clone for ResponseCodeInterpreterCallCodeDoneEvent
Source§fn clone(&self) -> ResponseCodeInterpreterCallCodeDoneEvent
fn clone(&self) -> ResponseCodeInterpreterCallCodeDoneEvent
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<'de> Deserialize<'de> for ResponseCodeInterpreterCallCodeDoneEvent
impl<'de> Deserialize<'de> for ResponseCodeInterpreterCallCodeDoneEvent
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 ResponseCodeInterpreterCallCodeDoneEvent
impl PartialEq for ResponseCodeInterpreterCallCodeDoneEvent
Source§fn eq(&self, other: &ResponseCodeInterpreterCallCodeDoneEvent) -> bool
fn eq(&self, other: &ResponseCodeInterpreterCallCodeDoneEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ResponseCodeInterpreterCallCodeDoneEvent
Auto Trait Implementations§
impl Freeze for ResponseCodeInterpreterCallCodeDoneEvent
impl RefUnwindSafe for ResponseCodeInterpreterCallCodeDoneEvent
impl Send for ResponseCodeInterpreterCallCodeDoneEvent
impl Sync for ResponseCodeInterpreterCallCodeDoneEvent
impl Unpin for ResponseCodeInterpreterCallCodeDoneEvent
impl UnwindSafe for ResponseCodeInterpreterCallCodeDoneEvent
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