pub enum A2AEvent {
TaskSubmitted {
timestamp: DateTime<Utc>,
payload: TaskSubmittedPayload,
},
TaskStatusUpdate {
timestamp: DateTime<Utc>,
payload: TaskStatusUpdatePayload,
},
ArtifactCreated {
timestamp: DateTime<Utc>,
payload: Box<ArtifactCreatedPayload>,
},
ArtifactUpdated {
timestamp: DateTime<Utc>,
payload: ArtifactUpdatedPayload,
},
AgentMessage {
timestamp: DateTime<Utc>,
payload: AgentMessagePayload,
},
InputRequired {
timestamp: DateTime<Utc>,
payload: InputRequiredPayload,
},
AuthRequired {
timestamp: DateTime<Utc>,
payload: AuthRequiredPayload,
},
JsonRpcResponse {
timestamp: DateTime<Utc>,
payload: JsonRpcResponsePayload,
},
JsonRpcError {
timestamp: DateTime<Utc>,
payload: JsonRpcErrorPayload,
},
}Variants§
TaskSubmitted
TaskStatusUpdate
ArtifactCreated
ArtifactUpdated
AgentMessage
InputRequired
AuthRequired
JsonRpcResponse
JsonRpcError
Implementations§
Source§impl A2AEvent
impl A2AEvent
pub const fn event_type(&self) -> A2AEventType
pub const fn timestamp(&self) -> DateTime<Utc>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for A2AEvent
impl<'de> Deserialize<'de> for A2AEvent
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
Source§impl From<A2AEvent> for ContextEvent
impl From<A2AEvent> for ContextEvent
Auto Trait Implementations§
impl Freeze for A2AEvent
impl RefUnwindSafe for A2AEvent
impl Send for A2AEvent
impl Sync for A2AEvent
impl Unpin for A2AEvent
impl UnwindSafe for A2AEvent
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