pub struct ToolResultPayload {
pub call_block_id: BlockId,
pub status: ToolResultStatus,
pub output: ToolOutput,
pub media: Vec<MediaRef>,
pub notes: Vec<TextPayload>,
}Expand description
The result fact for one tool call: its declaration identity, terminal status, output, media, and ordered notes. Pairing is kernel-enforced.
Fields§
§call_block_id: BlockIdThe declaration block 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.
notes: Vec<TextPayload>Ordered result notes. ToolBatch::resolve_at places any pre-execution
context notes before notes returned by the tool; tool implementations
should return only notes they add.
Trait Implementations§
Source§impl Clone for ToolResultPayload
impl Clone for ToolResultPayload
Source§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