pub struct AgentEvent {
pub id: i64,
pub event_type: EventType,
pub timestamp: String,
pub thread_id: Option<String>,
pub task_id: Option<String>,
pub bot_id: Option<String>,
pub message: Option<String>,
pub data: Option<String>,
}Expand description
One item on the live event stream.
Fields§
§id: i64§event_type: EventType§timestamp: String§thread_id: Option<String>§task_id: Option<String>§bot_id: Option<String>§message: Option<String>§data: Option<String>Implementations§
Source§impl AgentEvent
impl AgentEvent
Sourcepub fn is_task_finished(&self) -> bool
pub fn is_task_finished(&self) -> bool
True when this event says a task finished.
Trait Implementations§
Source§impl Clone for AgentEvent
impl Clone for AgentEvent
Source§impl Debug for AgentEvent
impl Debug for AgentEvent
Source§impl<'de> Deserialize<'de> for AgentEvent
impl<'de> Deserialize<'de> for AgentEvent
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 AgentEvent
impl RefUnwindSafe for AgentEvent
impl Send for AgentEvent
impl Sync for AgentEvent
impl Unpin for AgentEvent
impl UnsafeUnpin for AgentEvent
impl UnwindSafe for AgentEvent
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