Skip to main content

agent_runtime/policy/
authorization_error.rs

1//! Structured explanation for a denied tool invocation.
2
3/// Error explaining why a tool invocation was denied.
4#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
5#[error("Authorization denied for tool '{tool_name}': {reason}")]
6pub struct AuthorizationError {
7    pub tool_name: String,
8    pub reason: String,
9}