pub struct LoadSkillTool { /* private fields */ }Implementations§
Source§impl LoadSkillTool
impl LoadSkillTool
pub fn new( skill_manager: Arc<SkillManager>, config: Arc<RwLock<Config>>, session_repo: SessionRepository, ) -> LoadSkillTool
pub fn with_project_store( self, project_store: Arc<ProjectStore>, ) -> LoadSkillTool
Sourcepub fn with_fail_closed_context_registry(
self,
tools: Arc<dyn ToolExecutor>,
) -> LoadSkillTool
pub fn with_fail_closed_context_registry( self, tools: Arc<dyn ToolExecutor>, ) -> LoadSkillTool
Register the permission-wrapped base tool surface used by declared dynamic context providers. Keeping this explicit prevents arbitrary shell preprocessing and avoids recursive load_skill/workflow_run calls.
Sourcepub fn with_permission_checked_context_registry(
self,
tools: Arc<dyn ToolExecutor>,
permission_config: Option<Arc<PermissionConfig>>,
) -> LoadSkillTool
pub fn with_permission_checked_context_registry( self, tools: Arc<dyn ToolExecutor>, permission_config: Option<Arc<PermissionConfig>>, ) -> LoadSkillTool
Register the same permission-wrapped tool surface and typed policy used by normal tool dispatch. A missing typed config deliberately leaves the fail-closed registry above inactive.
Trait Implementations§
Source§impl Tool for LoadSkillTool
impl Tool for LoadSkillTool
fn name(&self) -> &str
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable tool description for LLM.
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
JSON Schema for tool parameters.
Source§fn invoke<'life0, 'async_trait>(
&'life0 self,
args: Value,
ctx: ToolCtx,
) -> Pin<Box<dyn Future<Output = Result<ToolOutcome, ToolError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LoadSkillTool: 'async_trait,
fn invoke<'life0, 'async_trait>(
&'life0 self,
args: Value,
ctx: ToolCtx,
) -> Pin<Box<dyn Future<Output = Result<ToolOutcome, ToolError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LoadSkillTool: 'async_trait,
The sole execution entry: returns the call’s per-call
ToolOutcome
(Completed / Running
/ NeedsHuman), or a ToolError for
infrastructure / argument failures (preserved from the former execute). Read moreSource§fn classify(&self, _args: &Value) -> ToolClass
fn classify(&self, _args: &Value) -> ToolClass
Per-call scheduling + permission-gating class (args-aware). Folds the
former
mutability/call_mutability/concurrency_safe/
call_concurrency_safe hooks into one value. Defaults to the conservative
ToolClass::MUTATING_SERIAL (mutating, serial, not promotable).Source§fn to_schema(&self) -> ToolSchema
fn to_schema(&self) -> ToolSchema
Convert tool to LLM-compatible schema. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for LoadSkillTool
impl !UnwindSafe for LoadSkillTool
impl Freeze for LoadSkillTool
impl Send for LoadSkillTool
impl Sync for LoadSkillTool
impl Unpin for LoadSkillTool
impl UnsafeUnpin for LoadSkillTool
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