Skip to main content

Lineage

Struct Lineage 

Source
pub struct Lineage {
    pub root_agent_id: Option<AgentId>,
    pub parent_agent_id: Option<AgentId>,
    pub team_id: Option<String>,
    pub org_id: Option<String>,
    pub delegation_reason: Option<String>,
    pub spawned_by_tool: Option<String>,
    pub depth: Option<u32>,
}
Expand description

Optional agent-topology fields attached to an AuditEntry.

All fields are None for entries emitted without an AgentContext (legacy path). Lineage::default() passed to AuditEntry::new_with_lineage produces a hash identical to AuditEntry::new with the same base fields.

Fields§

§root_agent_id: Option<AgentId>

Root agent identifier at the top of the delegation chain.

§parent_agent_id: Option<AgentId>

Identifier of the agent that directly spawned this agent.

§team_id: Option<String>

Team identifier associated with the agent that produced the entry.

§org_id: Option<String>

AAASM-2008 — organization identifier of the agent that produced the entry. Mirrors team_id but at the multi-tenancy tier so audit logs, compliance exports, and operator queries can filter / scope by Org. Present when the gateway can resolve org_id from the agent’s registration metadata; None for entries emitted without an AgentContext or registered without org metadata.

§delegation_reason: Option<String>

Human-readable reason the action was delegated to this agent.

§spawned_by_tool: Option<String>

Name of the tool or framework that spawned this agent (e.g. "langgraph").

§depth: Option<u32>

Delegation depth from the root agent (0 = root, 1 = first delegate, …).

Trait Implementations§

Source§

impl Clone for Lineage

Source§

fn clone(&self) -> Lineage

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 Lineage

Source§

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

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

impl Default for Lineage

Source§

fn default() -> Lineage

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Lineage

Source§

fn eq(&self, other: &Lineage) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Lineage

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.