pub struct ToolAdapter {
pub key: String,
pub display_name: String,
pub relative_skills_dir: String,
pub relative_detect_dir: String,
pub additional_scan_dirs: Vec<String>,
pub override_skills_dir: Option<String>,
pub is_custom: bool,
pub recursive_scan: bool,
pub project_relative_skills_dir: Option<String>,
pub category: ToolCategory,
}Fields§
§key: String§display_name: String§relative_skills_dir: String§relative_detect_dir: String§additional_scan_dirs: Vec<String>Additional directories to scan for skills (e.g. plugin/marketplace dirs). These are only used for discovery, not for deployment.
override_skills_dir: Option<String>When set, overrides the computed skills_dir with this absolute path.
is_custom: boolWhether this is a user-defined custom agent (not built-in).
recursive_scan: boolWhen true, scan the skills directory recursively for skill directories (directories containing SKILL.md) instead of treating immediate children as skills. Used by tools with nested category directories (e.g., Hermes Agent).
project_relative_skills_dir: Option<String>Optional override for the project-level skills path. When None, the
project-level path falls back to relative_skills_dir. Used by tools
like OpenCode where the global path (~/.config/opencode/skills)
differs from the project path (.opencode/skills).
category: ToolCategoryUI grouping. See ToolCategory.
Implementations§
Source§impl ToolAdapter
impl ToolAdapter
pub fn skills_dir(&self) -> PathBuf
Sourcepub fn project_relative_skills_dir(&self) -> &str
pub fn project_relative_skills_dir(&self) -> &str
Project-relative skills path used when scanning workspaces. Falls back
to relative_skills_dir when no project-specific override is set.
Sourcepub fn all_scan_dirs(&self) -> Vec<PathBuf>
pub fn all_scan_dirs(&self) -> Vec<PathBuf>
Returns all directories to scan for skills: the primary skills_dir plus any additional scan dirs.
Sourcepub fn additional_existing_scan_dirs(&self) -> Vec<PathBuf>
pub fn additional_existing_scan_dirs(&self) -> Vec<PathBuf>
Returns the existing additional discovery roots for this adapter.
Sourcepub fn is_installed(&self) -> bool
pub fn is_installed(&self) -> bool
Whether executable code for this Agent is installed on this machine.
Sourcepub fn can_deploy(&self) -> bool
pub fn can_deploy(&self) -> bool
Explicit destinations remain usable for manual/custom deployment, but configuring a destination is never evidence of an installed Agent.
Sourcepub fn has_path_override(&self) -> bool
pub fn has_path_override(&self) -> bool
Whether this adapter’s skills_dir has been overridden from the default.
Trait Implementations§
Source§impl Clone for ToolAdapter
impl Clone for ToolAdapter
Source§impl Debug for ToolAdapter
impl Debug for ToolAdapter
Auto Trait Implementations§
impl Forget for ToolAdapter
impl Freeze for ToolAdapter
impl Move for ToolAdapter
impl RefUnwindSafe for ToolAdapter
impl Send for ToolAdapterwhere
RawVecInner: Send,
impl Sync for ToolAdapterwhere
RawVecInner: Sync,
impl Unpin for ToolAdapter
impl UnsafeUnpin for ToolAdapterwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ToolAdapterwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.