Skip to main content

can_execute_skill_shell

Function can_execute_skill_shell 

Source
pub fn can_execute_skill_shell(
    _command: &str,
    tool_name: &str,
) -> Result<(), AgentError>
Expand description

Check if a shell command in a skill should be allowed.

This is a synchronous pre-check. The actual permission gating happens in execute_shell_commands_in_prompt via the can_execute callback. This function validates that the tool name is recognized.