Prompt injection detection (simplified - only pattern matching) (#4237)
Signed-off-by: Dorien Koelemeijer <dkoelemeijer@squareup.com> merging as looks good, lets keep an eye on it.
This commit is contained in:
committed by
GitHub
parent
9bb1bb530c
commit
916ba902dc
@@ -24,7 +24,7 @@ pub struct PermissionConfig {
|
||||
}
|
||||
|
||||
/// PermissionManager manages permission configurations for various tools.
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct PermissionManager {
|
||||
config_path: PathBuf, // Path to the permission configuration file
|
||||
permission_map: HashMap<String, PermissionConfig>, // Mapping of permission names to configurations
|
||||
|
||||
Reference in New Issue
Block a user