pub struct ToolOutput<T> { /* private fields */ }Expand description
Typed output plus independently bounded artifact references.
The inline value is serialized and validated against the descriptor output
schema by ToolAdapter. Artifact bytes are never embedded here; tools
publish immutable bytes through their capability-scoped artifact binding and
return only authorized ArtifactRef values.
Implementations§
Source§impl<T> ToolOutput<T>
impl<T> ToolOutput<T>
Sourcepub const fn with_artifacts(value: T, artifacts: ToolArtifacts) -> Self
pub const fn with_artifacts(value: T, artifacts: ToolArtifacts) -> Self
Constructs typed output with already bounded artifact references.
Sourcepub const fn artifacts(&self) -> &ToolArtifacts
pub const fn artifacts(&self) -> &ToolArtifacts
Returns independently bounded artifact references.
Sourcepub fn into_parts(self) -> (T, ToolArtifacts)
pub fn into_parts(self) -> (T, ToolArtifacts)
Consumes this output into inline value and artifacts.
Trait Implementations§
Source§impl<T: Clone> Clone for ToolOutput<T>
impl<T: Clone> Clone for ToolOutput<T>
Source§impl<T: Debug> Debug for ToolOutput<T>
impl<T: Debug> Debug for ToolOutput<T>
impl<T: Eq> Eq for ToolOutput<T>
Source§impl<T> From<T> for ToolOutput<T>
impl<T> From<T> for ToolOutput<T>
Source§impl<T: PartialEq> PartialEq for ToolOutput<T>
impl<T: PartialEq> PartialEq for ToolOutput<T>
impl<T: PartialEq> StructuralPartialEq for ToolOutput<T>
Auto Trait Implementations§
impl<T> Forget for ToolOutput<T>
impl<T> Freeze for ToolOutput<T>where
T: Freeze,
impl<T> Move for ToolOutput<T>
impl<T> RefUnwindSafe for ToolOutput<T>where
T: RefUnwindSafe,
impl<T> Send for ToolOutput<T>where
T: Send,
impl<T> Sync for ToolOutput<T>where
T: Sync,
impl<T> Unpin for ToolOutput<T>where
T: Unpin,
impl<T> UnsafeUnpin for ToolOutput<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ToolOutput<T>where
T: UnwindSafe,
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