pub struct CausalIds {
pub run_id: Option<RunId>,
pub turn_id: Option<TurnId>,
pub attempt_id: Option<AttemptId>,
pub event_id: Option<EventId>,
pub tool_call_id: Option<ToolCallId>,
pub span_id: Option<SpanId>,
pub related: Vec<EntityRef>,
}Expand description
Defines the causal ids SDK value. Construction records local state only; documented runtimes, executors, or ports own side effects.
Fields§
§run_id: Option<RunId>Run identifier used for lineage, filtering, replay, and dedupe.
turn_id: Option<TurnId>Turn identifier for one loop turn within a run.
attempt_id: Option<AttemptId>Attempt identifier for retry, repair, provider, or tool execution evidence.
event_id: Option<EventId>Event identifier used to correlate live events with journal or replay evidence.
tool_call_id: Option<ToolCallId>Stable tool call id used for typed lineage, lookup, or dedupe.
span_id: Option<SpanId>Stable span id used for typed lineage, lookup, or dedupe.
Collection of related values. Ordering and membership should be treated as part of the serialized contract when relevant.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CausalIds
impl<'de> Deserialize<'de> for CausalIds
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
impl Eq for CausalIds
impl StructuralPartialEq for CausalIds
Auto Trait Implementations§
impl Freeze for CausalIds
impl RefUnwindSafe for CausalIds
impl Send for CausalIds
impl Sync for CausalIds
impl Unpin for CausalIds
impl UnsafeUnpin for CausalIds
impl UnwindSafe for CausalIds
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