pub trait CapabilityProjectionAdapter: Send + 'static {
// Required method
fn prepare<'async_trait>(
self: Box<Self>,
cancellation: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<PreparedCapability, CapabilityAdapterError>> + Send + 'async_trait>>
where Self: 'async_trait;
}Expand description
Surface-owned fallible preparation boundary.
Tool, Skill, MCP, and other concerns implement this trait beside their native runtime types. The adapter does not resolve packages or dependencies; it projects one descriptor from the already selected A3S Use snapshot. A successful return is the surface readiness barrier: the adapter must not report success while its value still depends on unfinished initialization.
Required Methods§
fn prepare<'async_trait>(
self: Box<Self>,
cancellation: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<PreparedCapability, CapabilityAdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".