pub struct CallA2ADefinitionBuilder { /* private fields */ }Expand description
Builder for constructing an Agent-to-Agent (A2A) call task.
Implementations§
Source§impl CallA2ADefinitionBuilder
impl CallA2ADefinitionBuilder
pub fn new(method: &str) -> Self
Sourcepub fn with_agent_card(&mut self, url: &str) -> &mut Self
pub fn with_agent_card(&mut self, url: &str) -> &mut Self
Sets the agent card URL for the A2A call.
Sourcepub fn with_parameter(&mut self, name: &str, value: Value) -> &mut Self
pub fn with_parameter(&mut self, name: &str, value: Value) -> &mut Self
Adds a single named parameter to the A2A call.
Auto Trait Implementations§
impl Freeze for CallA2ADefinitionBuilder
impl RefUnwindSafe for CallA2ADefinitionBuilder
impl Send for CallA2ADefinitionBuilder
impl Sync for CallA2ADefinitionBuilder
impl Unpin for CallA2ADefinitionBuilder
impl UnsafeUnpin for CallA2ADefinitionBuilder
impl UnwindSafe for CallA2ADefinitionBuilder
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