Skip to main content

Adapter

Trait Adapter 

Source
pub trait Adapter: Send + Sync {
    // Required methods
    fn framework(&self) -> Framework;
    fn detect(&self, root: &Path) -> bool;
    fn load(&self, root: &Path) -> Result<Vec<ScanTarget>>;
}
Expand description

An adapter detects a specific agent framework and loads its artifacts into the unified IR.

Required Methods§

Source

fn framework(&self) -> Framework

The framework this adapter handles.

Source

fn detect(&self, root: &Path) -> bool

Check if this adapter can handle the given directory.

Source

fn load(&self, root: &Path) -> Result<Vec<ScanTarget>>

Load artifacts from the directory into scan targets.

Implementors§