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