pub struct AssistantEvent {
pub metadata: EventMetadata,
pub message: AssistantMessage,
pub request_id: Option<String>,
}Expand description
Assistant message event
Represents responses from Claude, including text and tool invocations.
Fields§
§metadata: EventMetadataCommon event metadata
message: AssistantMessageAssistant message with model info and usage
request_id: Option<String>Request ID for API correlation
Implementations§
Source§impl AssistantEvent
impl AssistantEvent
Sourcepub fn parent_uuid(&self) -> Option<&str>
pub fn parent_uuid(&self) -> Option<&str>
Get parent UUID
Sourcepub fn extract_text_content(&self) -> Option<String>
pub fn extract_text_content(&self) -> Option<String>
Extract text content for FTS indexing
Sourcepub fn extract_file_paths(&self) -> Vec<String>
pub fn extract_file_paths(&self) -> Vec<String>
Extract file paths from tool use inputs
Sourcepub fn extract_tool_names(&self) -> Vec<String>
pub fn extract_tool_names(&self) -> Vec<String>
Extract tool names
Trait Implementations§
Source§impl Clone for AssistantEvent
impl Clone for AssistantEvent
Source§impl Debug for AssistantEvent
impl Debug for AssistantEvent
Source§impl<'de> Deserialize<'de> for AssistantEvent
impl<'de> Deserialize<'de> for AssistantEvent
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 AssistantEvent
impl RefUnwindSafe for AssistantEvent
impl Send for AssistantEvent
impl Sync for AssistantEvent
impl Unpin for AssistantEvent
impl UnsafeUnpin for AssistantEvent
impl UnwindSafe for AssistantEvent
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