pub struct PermissionState {
pub data_access: Vec<String>,
pub tool_access: Vec<String>,
pub note: String,
}Expand description
Declared permission boundary for an AgentRun. Lists what the
agent could read and which tools it could call. Reviewers can
diff this against tool_calls to spot scope creep. v0.49.
Fields§
§data_access: Vec<String>Data sources the agent had read access to. Free-form URIs:
pubmed:, dataset:, frontier:vfr_…, path:./papers/….
tool_access: Vec<String>Tool identifiers the agent was allowed to call. Should be the
allow-list tool_calls[*].tool is checked against by the
runtime.
note: StringOptional human-readable note explaining the scope (e.g. “read-only access to BBB Flagship; can call pubmed search and arxiv fetch only”). Reviewer affordance only.
Trait Implementations§
Source§impl Clone for PermissionState
impl Clone for PermissionState
Source§fn clone(&self) -> PermissionState
fn clone(&self) -> PermissionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermissionState
impl Debug for PermissionState
Source§impl Default for PermissionState
impl Default for PermissionState
Source§fn default() -> PermissionState
fn default() -> PermissionState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionState
impl<'de> Deserialize<'de> for PermissionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PermissionState
impl PartialEq for PermissionState
Source§fn eq(&self, other: &PermissionState) -> bool
fn eq(&self, other: &PermissionState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PermissionState
impl Serialize for PermissionState
impl Eq for PermissionState
impl StructuralPartialEq for PermissionState
Auto Trait Implementations§
impl Freeze for PermissionState
impl RefUnwindSafe for PermissionState
impl Send for PermissionState
impl Sync for PermissionState
impl Unpin for PermissionState
impl UnsafeUnpin for PermissionState
impl UnwindSafe for PermissionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.