pub enum PolicyAction {
Shell(String),
Read(String),
Edit(String),
Mcp {
server: String,
tool: String,
},
}Expand description
One thing a tool call is about to do.
Variants§
Shell(String)
A shell command line, as the agent wrote it.
Read(String)
Reading a file, by path as the harness gave it.
Edit(String)
Writing, editing, or deleting a file.
Mcp
Calling a tool of an MCP server.
Trait Implementations§
Source§impl Clone for PolicyAction
impl Clone for PolicyAction
Source§impl Debug for PolicyAction
impl Debug for PolicyAction
impl Eq for PolicyAction
Source§impl PartialEq for PolicyAction
impl PartialEq for PolicyAction
impl StructuralPartialEq for PolicyAction
Auto Trait Implementations§
impl Freeze for PolicyAction
impl RefUnwindSafe for PolicyAction
impl Send for PolicyAction
impl Sync for PolicyAction
impl Unpin for PolicyAction
impl UnsafeUnpin for PolicyAction
impl UnwindSafe for PolicyAction
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.