pub struct SubAgentAnchor {
pub kind: AnchorKind,
pub thread_id: String,
pub call_id: String,
pub agent_path: Option<String>,
pub line: String,
}Expand description
One sub_agent_activity record extracted from a rollout.
line is the rollout line verbatim — the ingest server content-hashes
the records array for idempotency, so the bytes must be stable across
pushes.
Fields§
§kind: AnchorKindWhich lifecycle record this anchor carries.
thread_id: StringThe subject thread (payload.agent_thread_id): the spawned child for
started, the message TARGET for interacted.
call_id: StringThe triggering call id (payload.event_id): the spawn_agent call for
started, the send_message/followup_task call for interacted.
agent_path: Option<String>Slash-separated task path (payload.agent_path), e.g.
/root/depth2_cli_child.
line: StringThe full rollout line, verbatim.
Implementations§
Source§impl SubAgentAnchor
impl SubAgentAnchor
Sourcepub fn agent_type(&self) -> Option<&str>
pub fn agent_type(&self) -> Option<&str>
Label for the subagent kind slot on the upload: the last agent_path
segment (the task name Codex assigned).
Sourcepub fn payload_kind(&self) -> Option<&'static str>
pub fn payload_kind(&self) -> Option<&'static str>
The payload/meta kind slot (TranscriptPayload::kind).
Started rows omit it so their payload bytes — and the rows earlier
builds already ingested — stay unchanged; absent means spawn evidence.
The wire value is KIND_INTERACTED, which matches the rollout
record’s own kind spelling by design.
Sourcepub fn dedup_key(&self) -> String
pub fn dedup_key(&self) -> String
Once-per-anchor identity, used both to drop duplicate parses and to remember what a client already delivered.
A thread starts exactly once, so started keys on the thread alone; a thread is interacted with many times, so interacted includes the triggering call id.
Trait Implementations§
Source§impl Clone for SubAgentAnchor
impl Clone for SubAgentAnchor
Source§fn clone(&self) -> SubAgentAnchor
fn clone(&self) -> SubAgentAnchor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubAgentAnchor
impl Debug for SubAgentAnchor
impl Eq for SubAgentAnchor
Source§impl PartialEq for SubAgentAnchor
impl PartialEq for SubAgentAnchor
impl StructuralPartialEq for SubAgentAnchor
Auto Trait Implementations§
impl Freeze for SubAgentAnchor
impl RefUnwindSafe for SubAgentAnchor
impl Send for SubAgentAnchor
impl Sync for SubAgentAnchor
impl Unpin for SubAgentAnchor
impl UnsafeUnpin for SubAgentAnchor
impl UnwindSafe for SubAgentAnchor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.