pub struct ResponseCodeInterpreterCallCodeDoneEvent {
pub code: String,
pub item_id: String,
pub output_index: i64,
pub sequence_number: i64,
pub type_: String,
}Expand description
Emitted when the code snippet is finalized by the code interpreter.
Fields§
§code: StringThe final code snippet output by the code interpreter.
item_id: StringThe unique identifier of the code interpreter tool call item.
output_index: i64The index of the output item in the response for which the code is finalized.
sequence_number: i64The sequence number of this event, used to order streaming events.
type_: StringThe type of the event. Always response.code_interpreter_call_code.done.
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 (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 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
Auto Trait Implementations§
impl Freeze for ResponseCodeInterpreterCallCodeDoneEvent
impl RefUnwindSafe for ResponseCodeInterpreterCallCodeDoneEvent
impl Send for ResponseCodeInterpreterCallCodeDoneEvent
impl Sync for ResponseCodeInterpreterCallCodeDoneEvent
impl Unpin for ResponseCodeInterpreterCallCodeDoneEvent
impl UnsafeUnpin 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