pub struct ShellExecSkill { /* private fields */ }Implementations§
Source§impl ShellExecSkill
impl ShellExecSkill
Sourcepub fn new(allowed_commands: HashSet<String>, timeout: Duration) -> Self
pub fn new(allowed_commands: HashSet<String>, timeout: Duration) -> Self
Create with explicit allowlist. Empty set = deny all.
Sourcepub fn permissive(timeout: Duration) -> Self
pub fn permissive(timeout: Duration) -> Self
Permissive mode — allows any command (use only in dev).
pub async fn access_policy(&self) -> AccessPolicy
Trait Implementations§
Source§impl NativeSkill for ShellExecSkill
impl NativeSkill for ShellExecSkill
fn execute<'life0, 'async_trait>(
&'life0 self,
invocation: SkillInvocation,
) -> Pin<Box<dyn Future<Output = Result<Value, SkillExecutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn requires_human_approval(&self) -> bool
fn executor_kind(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for ShellExecSkill
impl !RefUnwindSafe for ShellExecSkill
impl Send for ShellExecSkill
impl Sync for ShellExecSkill
impl Unpin for ShellExecSkill
impl UnsafeUnpin for ShellExecSkill
impl !UnwindSafe for ShellExecSkill
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