adk_session/event.rs
1// Re-export Event and EventActions from adk_core for unified type
2pub use adk_core::{Event, EventActions};
3
4/// Trait for accessing events in a session.
5pub trait Events: Send + Sync {
6 fn all(&self) -> Vec<Event>;
7 fn len(&self) -> usize;
8 fn at(&self, index: usize) -> Option<&Event>;
9 fn is_empty(&self) -> bool {
10 self.len() == 0
11 }
12}