pub struct ToolExecutionOutput {
pub terminal_status: EffectTerminalStatus,
pub content_refs: Vec<ContentRef>,
pub redacted_summary: String,
pub external_operation_id: Option<String>,
pub reconciliation_ref: Option<String>,
pub error_ref: Option<String>,
}Expand description
Carries tool execution output data across a host-port boundary. Constructing the value does not call the host; the port method that receives it documents any adapter, network, or storage effect.
Fields§
§terminal_status: EffectTerminalStatusTerminal status used by this record or request.
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.
external_operation_id: Option<String>Stable external operation id used for typed lineage, lookup, or dedupe.
reconciliation_ref: Option<String>Typed reconciliation ref reference. Resolving or executing it is a separate policy-gated step.
error_ref: Option<String>Typed error ref reference. Resolving or executing it is a separate policy-gated step.
Implementations§
Source§impl ToolExecutionOutput
impl ToolExecutionOutput
Sourcepub fn completed(redacted_summary: impl Into<String>) -> Self
pub fn completed(redacted_summary: impl Into<String>) -> Self
Returns an updated value with completed configured. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn failed(
redacted_summary: impl Into<String>,
error_ref: impl Into<String>,
) -> Self
pub fn failed( redacted_summary: impl Into<String>, error_ref: impl Into<String>, ) -> Self
Returns an updated value with failed configured. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn to_effect_result(&self, effect_id: EffectId) -> EffectResult
pub fn to_effect_result(&self, effect_id: EffectId) -> EffectResult
Converts this value into effect result data. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Trait Implementations§
Source§impl Clone for ToolExecutionOutput
impl Clone for ToolExecutionOutput
Source§fn clone(&self) -> ToolExecutionOutput
fn clone(&self) -> ToolExecutionOutput
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 ToolExecutionOutput
impl Debug for ToolExecutionOutput
Source§impl<'de> Deserialize<'de> for ToolExecutionOutput
impl<'de> Deserialize<'de> for ToolExecutionOutput
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 ToolExecutionOutput
impl PartialEq for ToolExecutionOutput
Source§fn eq(&self, other: &ToolExecutionOutput) -> bool
fn eq(&self, other: &ToolExecutionOutput) -> bool
self and other values to be equal, and is used by ==.