pub struct PendingAction {
pub action_id: Uuid,
pub tool_name: String,
pub parameters: Value,
pub kind: ActionKind,
pub intercepted_at: DateTime<Utc>,
pub description: String,
pub target_uri: Option<String>,
pub disposition: ArtifactDisposition,
}Expand description
An MCP tool call intercepted during agent execution, pending human review.
When an agent calls an external MCP tool (e.g., gmail_send, slack_post),
TA intercepts the call, records it here, and holds it for human approval.
Read-only calls (search, list, get) pass through immediately.
Fields§
§action_id: UuidUnique identifier for this action instance.
tool_name: StringThe MCP tool name that was called (e.g., “gmail_send”, “slack_post”).
parameters: ValueSerialized tool parameters as provided by the agent (credentials redacted).
kind: ActionKindHow this action was classified.
intercepted_at: DateTime<Utc>When the tool call was intercepted.
description: StringHuman-readable description for the reviewer.
target_uri: Option<String>Resource this action targets (URI scheme, e.g., “mcp://gmail/send”).
disposition: ArtifactDispositionWhether this action has been approved for replay.
Trait Implementations§
Source§impl Clone for PendingAction
impl Clone for PendingAction
Source§fn clone(&self) -> PendingAction
fn clone(&self) -> PendingAction
Returns a duplicate of the value. Read more
1.0.0 · 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 PendingAction
impl Debug for PendingAction
Source§impl<'de> Deserialize<'de> for PendingAction
impl<'de> Deserialize<'de> for PendingAction
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
Auto Trait Implementations§
impl Freeze for PendingAction
impl RefUnwindSafe for PendingAction
impl Send for PendingAction
impl Sync for PendingAction
impl Unpin for PendingAction
impl UnsafeUnpin for PendingAction
impl UnwindSafe for PendingAction
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