pub enum GovernanceAction {
ToolCall {
name: String,
args: ArgsJson,
},
ToolResult {
tool_name: String,
result: ArgsJson,
},
FileAccess {
path: String,
mode: FileMode,
},
NetworkRequest {
url: String,
method: String,
},
ProcessExec {
command: String,
},
SendMessage {
source_team_id: Option<String>,
target_team_id: Option<String>,
channel_id: Option<String>,
},
}Expand description
An agent action subject to governance evaluation.
Gated on alloc because all variants carry String fields.
Variants§
ToolCall
Invocation of a named tool with pre-serialized JSON arguments.
Fields
ToolResult
Result returned by a tool invocation, evaluated on the response path before the result is forwarded back to the agent.
Carries the same shape as ToolCall.args — a pre-serialized JSON
string — so the policy engine can apply JSON-pointer-addressed
predicates (e.g. tool_result.foo) and credential-pattern scans
against the body the upstream tool emitted.
Fields
FileAccess
Read or write access to a file path.
Fields
NetworkRequest
Outbound network request.
Fields
ProcessExec
Spawning an external process.
SendMessage
Inter-team message sent through a named channel.
Trait Implementations§
Source§impl Clone for GovernanceAction
impl Clone for GovernanceAction
Source§fn clone(&self) -> GovernanceAction
fn clone(&self) -> GovernanceAction
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 GovernanceAction
impl Debug for GovernanceAction
Source§impl PartialEq for GovernanceAction
impl PartialEq for GovernanceAction
Source§fn eq(&self, other: &GovernanceAction) -> bool
fn eq(&self, other: &GovernanceAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GovernanceAction
Auto Trait Implementations§
impl Freeze for GovernanceAction
impl RefUnwindSafe for GovernanceAction
impl Send for GovernanceAction
impl Sync for GovernanceAction
impl Unpin for GovernanceAction
impl UnsafeUnpin for GovernanceAction
impl UnwindSafe for GovernanceAction
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