pub struct ToolResultRef {
pub tool_call_id: ToolCallId,
pub effect_id: EffectId,
pub content_refs: Vec<ContentRef>,
pub redacted_summary: String,
pub privacy: PrivacyClass,
pub retention: RetentionClass,
}Expand description
Carries the tool result ref record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§tool_call_id: ToolCallIdStable tool call id used for typed lineage, lookup, or dedupe.
effect_id: EffectIdStable effect id used for typed lineage, lookup, or dedupe.
content_refs: Vec<ContentRef>Content references associated with this record; resolving them is a separate policy-gated step.
redacted_summary: StringRedacted human-readable summary safe for events, telemetry, and logs.
privacy: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
retention: RetentionClassRetention class used by hosts and sinks when storing or exporting this item.
Implementations§
Source§impl ToolResultRef
impl ToolResultRef
Sourcepub fn from_record(record: &ToolCallRecord) -> Option<Self>
pub fn from_record(record: &ToolCallRecord) -> Option<Self>
Constructs this value from record. Use it when adapting canonical SDK records without introducing a second behavior path.
Trait Implementations§
Source§impl Clone for ToolResultRef
impl Clone for ToolResultRef
Source§fn clone(&self) -> ToolResultRef
fn clone(&self) -> ToolResultRef
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 ToolResultRef
impl Debug for ToolResultRef
Source§impl<'de> Deserialize<'de> for ToolResultRef
impl<'de> Deserialize<'de> for ToolResultRef
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>,
Source§impl PartialEq for ToolResultRef
impl PartialEq for ToolResultRef
Source§fn eq(&self, other: &ToolResultRef) -> bool
fn eq(&self, other: &ToolResultRef) -> bool
self and other values to be equal, and is used by ==.