pub struct StreamHandlingOutput {
pub response_id: Option<String>,
pub content: String,
pub reasoning_content: String,
pub token_count: usize,
pub tool_calls: Vec<ToolCall>,
pub output_tokens: u64,
pub thinking_tokens: u64,
pub cache_creation_input_tokens: u64,
pub cache_read_input_tokens: u64,
}Fields§
§response_id: Option<String>§content: String§reasoning_content: String§token_count: usize§tool_calls: Vec<ToolCall>§output_tokens: u64§thinking_tokens: u64§cache_creation_input_tokens: u64§cache_read_input_tokens: u64Auto Trait Implementations§
impl Freeze for StreamHandlingOutput
impl RefUnwindSafe for StreamHandlingOutput
impl Send for StreamHandlingOutput
impl Sync for StreamHandlingOutput
impl Unpin for StreamHandlingOutput
impl UnsafeUnpin for StreamHandlingOutput
impl UnwindSafe for StreamHandlingOutput
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