pub struct ConversationQuery<'a> { /* private fields */ }Implementations§
Source§impl<'a> ConversationQuery<'a>
impl<'a> ConversationQuery<'a>
pub fn new(conversation: &'a Conversation) -> Self
pub fn by_role(&self, role: MessageRole) -> Vec<&'a ConversationEntry>
pub fn by_type(&self, entry_type: &str) -> Vec<&'a ConversationEntry>
pub fn by_time_range( &self, start: DateTime<Utc>, end: DateTime<Utc>, ) -> Vec<&'a ConversationEntry>
pub fn tool_uses_by_name(&self, tool_name: &str) -> Vec<&'a ConversationEntry>
pub fn contains_text(&self, search: &str) -> Vec<&'a ConversationEntry>
pub fn errors(&self) -> Vec<&'a ConversationEntry>
Auto Trait Implementations§
impl<'a> Freeze for ConversationQuery<'a>
impl<'a> RefUnwindSafe for ConversationQuery<'a>
impl<'a> Send for ConversationQuery<'a>
impl<'a> Sync for ConversationQuery<'a>
impl<'a> Unpin for ConversationQuery<'a>
impl<'a> UnsafeUnpin for ConversationQuery<'a>
impl<'a> UnwindSafe for ConversationQuery<'a>
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