pub struct ToolResultProjection {
pub model_content: String,
pub display_content: String,
pub persistence_content: String,
}Expand description
Model, display, and persistence views of one tool result.
Most tools use the same content for all three views. Tools that return
transient model-only coordination data can override
AgentTool::project_result so that UI and durable history receive a
sanitized representation without changing the provider-facing result.
Fields§
§model_content: StringContent supplied to the model during the active turn.
display_content: StringContent emitted to user-facing runtime event projections.
persistence_content: StringContent eligible for session persistence and replay.
Implementations§
Source§impl ToolResultProjection
impl ToolResultProjection
Creates a projection whose three views are identical.
Trait Implementations§
Source§impl Clone for ToolResultProjection
impl Clone for ToolResultProjection
Source§fn clone(&self) -> ToolResultProjection
fn clone(&self) -> ToolResultProjection
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 ToolResultProjection
impl Debug for ToolResultProjection
impl Eq for ToolResultProjection
Source§impl PartialEq for ToolResultProjection
impl PartialEq for ToolResultProjection
impl StructuralPartialEq for ToolResultProjection
Auto Trait Implementations§
impl Freeze for ToolResultProjection
impl RefUnwindSafe for ToolResultProjection
impl Send for ToolResultProjection
impl Sync for ToolResultProjection
impl Unpin for ToolResultProjection
impl UnsafeUnpin for ToolResultProjection
impl UnwindSafe for ToolResultProjection
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