pub struct CapabilityResolver { /* private fields */ }Implementations§
Source§impl CapabilityResolver
impl CapabilityResolver
pub fn new(root: PathBuf) -> Self
pub async fn list_bindings(&self) -> Result<CapabilityBindingsFile>
pub async fn set_bindings(&self, file: CapabilityBindingsFile) -> Result<()>
pub async fn refresh_builtin_bindings( &self, ) -> Result<CapabilityBindingsRefreshResult>
pub async fn reset_to_builtin_bindings( &self, ) -> Result<CapabilityBindingsRefreshResult>
pub async fn resolve( &self, input: CapabilityResolveInput, discovered_tools: Vec<CapabilityToolAvailability>, ) -> Result<CapabilityResolveOutput>
pub async fn discover_from_runtime( &self, mcp_tools: Vec<McpRemoteTool>, local_tools: Vec<ToolSchema>, ) -> Vec<CapabilityToolAvailability>
pub fn missing_capability_error( workflow_id: &str, missing_capabilities: &[String], available_capability_bindings: &HashMap<String, Vec<String>>, ) -> Value
Trait Implementations§
Source§impl Clone for CapabilityResolver
impl Clone for CapabilityResolver
Source§fn clone(&self) -> CapabilityResolver
fn clone(&self) -> CapabilityResolver
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 moreAuto Trait Implementations§
impl Freeze for CapabilityResolver
impl !RefUnwindSafe for CapabilityResolver
impl Send for CapabilityResolver
impl Sync for CapabilityResolver
impl Unpin for CapabilityResolver
impl UnsafeUnpin for CapabilityResolver
impl !UnwindSafe for CapabilityResolver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more