pub struct PostResponseEvent {
pub session_id: String,
pub response_text: String,
pub tool_calls_count: usize,
pub usage: TokenUsageInfo,
pub duration_ms: u64,
}Expand description
Post-response event payload (fired after LLM response is processed)
Fields§
§session_id: StringSession ID
response_text: StringFinal response text
tool_calls_count: usizeNumber of tool calls made during this turn
usage: TokenUsageInfoToken usage
duration_ms: u64Total duration in milliseconds
Trait Implementations§
Source§impl Clone for PostResponseEvent
impl Clone for PostResponseEvent
Source§fn clone(&self) -> PostResponseEvent
fn clone(&self) -> PostResponseEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostResponseEvent
impl Debug for PostResponseEvent
Source§impl<'de> Deserialize<'de> for PostResponseEvent
impl<'de> Deserialize<'de> for PostResponseEvent
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 PostResponseEvent
impl RefUnwindSafe for PostResponseEvent
impl Send for PostResponseEvent
impl Sync for PostResponseEvent
impl Unpin for PostResponseEvent
impl UnsafeUnpin for PostResponseEvent
impl UnwindSafe for PostResponseEvent
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