pub struct A2aRemoteAgent { /* private fields */ }Expand description
One immutable A2A agent-skill binding exposed as a durable StateKnot tool.
Implementations§
Source§impl A2aRemoteAgent
impl A2aRemoteAgent
Sourcepub fn bind(
descriptor: ToolDescriptor,
client: A2aClient,
skill_id: impl Into<String>,
delivery: A2aRemoteAgentDelivery,
schemas: Arc<dyn A2aSchemaRegistry>,
) -> Result<Self, A2aRemoteAgentBuildError>
pub fn bind( descriptor: ToolDescriptor, client: A2aClient, skill_id: impl Into<String>, delivery: A2aRemoteAgentDelivery, schemas: Arc<dyn A2aSchemaRegistry>, ) -> Result<Self, A2aRemoteAgentBuildError>
Freezes an already discovered client as one exact executable tool.
skill_id selects advertised security and media constraints; it is not
placed on the wire because A2A 1.0 defines no skill-routing request
field. The receiving agent chooses behavior from the user message.
MessageIdDeduplicated is a trusted deployment assertion. Operators
must prove that the remote service stores and deduplicates message IDs
for at least the local invocation-ledger retention window.
Sourcepub fn bind_with_recovery(
descriptor: ToolDescriptor,
client: A2aClient,
skill_id: impl Into<String>,
delivery: A2aRemoteAgentDelivery,
recovery: A2aRemoteAgentRecovery,
schemas: Arc<dyn A2aSchemaRegistry>,
) -> Result<Self, A2aRemoteAgentBuildError>
pub fn bind_with_recovery( descriptor: ToolDescriptor, client: A2aClient, skill_id: impl Into<String>, delivery: A2aRemoteAgentDelivery, recovery: A2aRemoteAgentRecovery, schemas: Arc<dyn A2aSchemaRegistry>, ) -> Result<Self, A2aRemoteAgentBuildError>
Freezes an A2A binding with an explicit operator-attested recovery mode.
§Errors
Performs the same schema, card, security, media, descriptor, and
delivery validation as Self::bind, plus exact reconciliation-policy
compatibility checks.
Sourcepub fn bind_with_durable_artifacts(
descriptor: ToolDescriptor,
client: A2aClient,
skill_id: impl Into<String>,
delivery: A2aRemoteAgentDelivery,
recovery: A2aRemoteAgentRecovery,
schemas: Arc<dyn A2aSchemaRegistry>,
artifact_ingestor: Arc<dyn A2aArtifactIngestor>,
) -> Result<Self, A2aRemoteAgentBuildError>
pub fn bind_with_durable_artifacts( descriptor: ToolDescriptor, client: A2aClient, skill_id: impl Into<String>, delivery: A2aRemoteAgentDelivery, recovery: A2aRemoteAgentRecovery, schemas: Arc<dyn A2aSchemaRegistry>, artifact_ingestor: Arc<dyn A2aArtifactIngestor>, ) -> Result<Self, A2aRemoteAgentBuildError>
Freezes an A2A task binding that durably materializes every terminal task-artifact part through a trusted artifact boundary.
This profile accepts only task responses. A non-terminal task is stored as an opaque, endpoint-bound recovery handle and later queried directly; the original business message is never resent merely to poll status.
Sourcepub const fn delivery(&self) -> A2aRemoteAgentDelivery
pub const fn delivery(&self) -> A2aRemoteAgentDelivery
Returns the operator-attested delivery guarantee.
Sourcepub const fn recovery(&self) -> A2aRemoteAgentRecovery
pub const fn recovery(&self) -> A2aRemoteAgentRecovery
Returns the immutable operator-attested recovery policy.
Sourcepub const fn durable_artifacts_enabled(&self) -> bool
pub const fn durable_artifacts_enabled(&self) -> bool
Returns whether terminal A2A parts are materialized as immutable
StateKnot artifacts instead of being copied into inline JSON.
Trait Implementations§
Source§impl Debug for A2aRemoteAgent
impl Debug for A2aRemoteAgent
Source§impl ErasedTool for A2aRemoteAgent
impl ErasedTool for A2aRemoteAgent
Source§fn descriptor(&self) -> &ToolDescriptor
fn descriptor(&self) -> &ToolDescriptor
Source§fn supports_reconciliation(&self) -> bool
fn supports_reconciliation(&self) -> bool
Source§fn call(
&self,
context: ToolContext,
input: ToolInput,
) -> BoxFuture<'_, Result<ToolResult, ToolError>>
fn call( &self, context: ToolContext, input: ToolInput, ) -> BoxFuture<'_, Result<ToolResult, ToolError>>
Source§fn reconcile(
&self,
context: ToolReconciliationContext,
input: ToolInput,
) -> BoxFuture<'_, Result<ToolReconciliationObservation, ToolReconciliationProbeError>>
fn reconcile( &self, context: ToolReconciliationContext, input: ToolInput, ) -> BoxFuture<'_, Result<ToolReconciliationObservation, ToolReconciliationProbeError>>
Auto Trait Implementations§
impl !RefUnwindSafe for A2aRemoteAgent
impl !UnwindSafe for A2aRemoteAgent
impl Forget for A2aRemoteAgent
impl Freeze for A2aRemoteAgent
impl Move for A2aRemoteAgent
impl Send for A2aRemoteAgent
impl Sync for A2aRemoteAgent
impl Unpin for A2aRemoteAgent
impl UnsafeUnpin for A2aRemoteAgent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request