Skip to main content

CallEvent

Struct CallEvent 

Source
pub struct CallEvent {
Show 13 fields pub ts: String, pub call_id: String, pub tool_id: String, pub caller_id: Option<String>, pub granted_capabilities: Vec<String>, pub duration_ms: u64, pub outcome: Outcome, pub tier: String, pub dry_run: bool, pub schema_version: u32, pub secrets_resolved: bool, pub cursor_page: Option<u32>, pub capability_provenance: Option<Vec<CapProvenance>>,
}
Expand description

One per-call audit event. Emitted at every Request::RunTool return point (success, invalid_args, execution_failed, cap_denied, rate_limited, tool_not_found). Ping / Hello / ToolList / ToolSchema do NOT emit events in v1.

Fields§

§ts: String§call_id: String§tool_id: String§caller_id: Option<String>§granted_capabilities: Vec<String>§duration_ms: u64§outcome: Outcome§tier: String§dry_run: bool§schema_version: u32§secrets_resolved: bool

true iff a TokenBroker was configured AND it returned Ok(Some(_)) for this caller (SP-token-broker-phase1). Always false for early-return paths (capability denied, dry-run, rate-limited, tool-not-found) and for servers without a broker. No key names or values are recorded.

§cursor_page: Option<u32>

SP-pagination-v1 — 1-based page index for paginated calls. None for non-paginated dispatches (the vast majority of events; saves bytes in the audit log). Some(1) for the initial RunTool that returned a cursor; Some(2..) for each RunToolContinue.

§capability_provenance: Option<Vec<CapProvenance>>

SP-observability-completeness-v1 Axis C — per-capability source attribution. None when provenance wasn’t tracked (back-compat, early-return paths with no capability context); Some(vec) when dispatch recorded which mechanism granted each capability. Lets an operator trace each granted capability to the operator string allow-list or a specific UCAN chain link.

Trait Implementations§

Source§

impl Clone for CallEvent

Source§

fn clone(&self) -> CallEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CallEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CallEvent

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CallEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,