pub struct Exchange {
pub request: Value,
pub status: u16,
pub raw: Vec<u8>,
pub response: Value,
pub stream: Option<StreamInfo>,
pub latency_ms: u64,
pub ttft_ms: Option<u64>,
}Expand description
One request and what came back.
Fields§
§request: Value§status: u16§raw: Vec<u8>The response body exactly as received.
response: ValueThe response in non-streamed shape (choices[0].message), reassembled from deltas
for streamed requests; for errors, the error body.
stream: Option<StreamInfo>§latency_ms: u64§ttft_ms: Option<u64>Time to the first streamed chunk.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Exchange
impl Freeze for Exchange
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnsafeUnpin for Exchange
impl UnwindSafe for Exchange
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