pub enum ToolResultPayload {
Inline(InlineToolResult),
External(ExternalToolResult),
}Expand description
One tool result, either inline or already persisted by the host.
The host persists the body before submitting External and hands the kernel only a
reference, a digest, a size and a preview. That is the whole point: the large body never
crosses core and never enters a journal record, whereas the historical path pushed the full
body in, had the kernel compute a preview, pushed the full body back out to be spooled, and
wrote it to the journal twice.
Variants§
Inline(InlineToolResult)
External(ExternalToolResult)
Implementations§
Source§impl ToolResultPayload
impl ToolResultPayload
pub fn call_id(&self) -> &CallId
Sourcepub fn disposition(&self) -> ToolResultDisposition
pub fn disposition(&self) -> ToolResultDisposition
The two failure facts, read the same way whichever side of the inline threshold the body landed on. Every caller that branches on failure must go through these: §7.10 rule 9 makes failure orthogonal to residency, so a check that is total over one arm and not the other is exactly the bug the rule exists to prevent.
pub fn is_error(&self) -> bool
Trait Implementations§
Source§impl Clone for ToolResultPayload
impl Clone for ToolResultPayload
Source§fn clone(&self) -> ToolResultPayload
fn clone(&self) -> ToolResultPayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more