pub struct ToolResultPayload {
pub call_id: ToolCallId,
pub status: ToolResultStatus,
pub output: ToolOutput,
pub media: Vec<MediaRef>,
}Expand description
The result fact for one tool call: the paired call id, terminal status, and the output. Committed through the tool door; pairing against the committed call block is kernel-enforced.
Fields§
§call_id: ToolCallIdThe kernel-generated id of the call this result answers.
status: ToolResultStatusTerminal status of the invocation.
output: ToolOutputThe tool’s output, possibly truncated with an artifact spill.
media: Vec<MediaRef>Media artifacts attached to this result — references only; the bytes live in the host’s asset store, resolved provider-side at render time. Serde-additive: absent media defaults to empty.
Trait Implementations§
Source§impl Clone for ToolResultPayload
impl Clone for ToolResultPayload
Source§fn clone(&self) -> ToolResultPayload
fn clone(&self) -> ToolResultPayload
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 ToolResultPayload
impl Debug for ToolResultPayload
Source§impl<'de> Deserialize<'de> for ToolResultPayload
impl<'de> Deserialize<'de> for ToolResultPayload
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
Source§impl PartialEq for ToolResultPayload
impl PartialEq for ToolResultPayload
Source§impl Serialize for ToolResultPayload
impl Serialize for ToolResultPayload
impl StructuralPartialEq for ToolResultPayload
Auto Trait Implementations§
impl Freeze for ToolResultPayload
impl RefUnwindSafe for ToolResultPayload
impl Send for ToolResultPayload
impl Sync for ToolResultPayload
impl Unpin for ToolResultPayload
impl UnsafeUnpin for ToolResultPayload
impl UnwindSafe for ToolResultPayload
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