atomr_agents_tool/permission.rs
1use atomr_agents_core::ToolSetId;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Default, Serialize, Deserialize)]
5pub struct PermissionSpec {
6 /// Tool sets this spec depends on transitively.
7 pub depends_on: Vec<ToolSetId>,
8 /// If true, requires explicit grant from the next level up.
9 #[serde(default)]
10 pub requires_explicit_grant: bool,
11}