pub struct A2AEventBuilder;Available on crate feature
core only.Implementations§
Source§impl A2AEventBuilder
impl A2AEventBuilder
pub fn task_submitted( task_id: TaskId, context_id: ContextId, agent_name: String, input: Option<Value>, ) -> A2AEvent
pub fn task_status_update( task_id: TaskId, context_id: ContextId, state: TaskState, message: Option<String>, ) -> A2AEvent
pub fn artifact_created( task_id: TaskId, context_id: ContextId, artifact: Artifact, ) -> A2AEvent
pub fn artifact_updated(payload: ArtifactUpdatedPayload) -> A2AEvent
pub fn agent_message( task_id: TaskId, context_id: ContextId, message_id: MessageId, content: String, ) -> A2AEvent
pub fn input_required( task_id: TaskId, context_id: ContextId, prompt: String, ) -> A2AEvent
pub fn auth_required( task_id: TaskId, context_id: ContextId, auth_url: String, ) -> A2AEvent
pub fn json_rpc_response(id: Value, result: Value) -> A2AEvent
pub fn json_rpc_error( id: Value, code: i32, message: String, data: Option<Value>, ) -> A2AEvent
Trait Implementations§
Source§impl Clone for A2AEventBuilder
impl Clone for A2AEventBuilder
Source§fn clone(&self) -> A2AEventBuilder
fn clone(&self) -> A2AEventBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for A2AEventBuilder
impl Debug for A2AEventBuilder
impl Copy for A2AEventBuilder
Auto Trait Implementations§
impl Freeze for A2AEventBuilder
impl RefUnwindSafe for A2AEventBuilder
impl Send for A2AEventBuilder
impl Sync for A2AEventBuilder
impl Unpin for A2AEventBuilder
impl UnsafeUnpin for A2AEventBuilder
impl UnwindSafe for A2AEventBuilder
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