pub enum ToolActionKind {
ReadOnly,
RuntimeControl,
WorkspaceWrite,
CommandExec,
Network,
TrustedExternal,
}Expand description
Runtime-owned action category for registered tools.
This metadata is intentionally not part of provider-visible merry_core::ToolSpec.
Runtime policy uses it before invoking an executor.
Variants§
ReadOnly
Reads runtime or workspace state without changing it.
RuntimeControl
Mutates runtime-owned control state without direct external side effects.
WorkspaceWrite
Writes files or other state in the configured workspace.
CommandExec
Executes a local command or process.
Network
Uses network access.
TrustedExternal
Executes a user-configured external tool that is trusted by configuration.
Implementations§
Source§impl ToolActionKind
impl ToolActionKind
Sourcepub fn is_mutating(self) -> bool
pub fn is_mutating(self) -> bool
Returns whether this action category can cause external side effects that require the mutating action commit lifecycle.
Trait Implementations§
Source§impl Clone for ToolActionKind
impl Clone for ToolActionKind
impl Copy for ToolActionKind
Source§impl Debug for ToolActionKind
impl Debug for ToolActionKind
Source§impl<'de> Deserialize<'de> for ToolActionKind
impl<'de> Deserialize<'de> for ToolActionKind
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
impl Eq for ToolActionKind
Source§impl PartialEq for ToolActionKind
impl PartialEq for ToolActionKind
Source§impl Serialize for ToolActionKind
impl Serialize for ToolActionKind
impl StructuralPartialEq for ToolActionKind
Auto Trait Implementations§
impl Forget for ToolActionKind
impl Freeze for ToolActionKind
impl Move for ToolActionKind
impl RefUnwindSafe for ToolActionKind
impl Send for ToolActionKind
impl Sync for ToolActionKind
impl Unpin for ToolActionKind
impl UnsafeUnpin for ToolActionKind
impl UnwindSafe for ToolActionKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.