pub struct ChildLoopRef {
pub tool_call_id: String,
pub tool_name: String,
pub child_loop_id: String,
pub child_session_id: String,
}Expand description
Outbound cross-session link — recorded on the parent LoopRecord when
a tool call in that loop spawned a sub-agent loop.
Sub-agents run with their own session_id. This ref allows the parent session
to link outward to the child session for tracing agent-spawning chains.
The inverse link is SpawnRef on Session::parent_spawn_ref
(child → parent).
Fields§
§tool_call_id: StringThe ToolCall.id that triggered sub-agent execution.
tool_name: StringThe tool name that performed the spawn.
child_loop_id: StringThe sub-agent’s AgentStart.loop_id.
child_session_id: StringThe sub-agent’s AgentStart.session_id.
Extracted from the child_loop_id prefix — loop ids follow the format
{session_id}.{config_segment}.{N} where session_id is a UUID
containing hyphens but no dots.
Trait Implementations§
Source§impl Clone for ChildLoopRef
impl Clone for ChildLoopRef
Source§fn clone(&self) -> ChildLoopRef
fn clone(&self) -> ChildLoopRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChildLoopRef
impl Debug for ChildLoopRef
Source§impl<'de> Deserialize<'de> for ChildLoopRef
impl<'de> Deserialize<'de> for ChildLoopRef
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 ChildLoopRef
impl RefUnwindSafe for ChildLoopRef
impl Send for ChildLoopRef
impl Sync for ChildLoopRef
impl Unpin for ChildLoopRef
impl UnsafeUnpin for ChildLoopRef
impl UnwindSafe for ChildLoopRef
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