pub struct DisplayToolCall {
pub id: String,
pub name: String,
pub args_summary: String,
pub output: Option<String>,
pub details: Value,
pub is_error: bool,
pub expanded: bool,
pub streaming_lines: Vec<String>,
pub streaming_output: String,
}Expand description
A tool call ready for display.
Fields§
§id: String§name: String§args_summary: String§output: Option<String>§details: Value§is_error: bool§expanded: bool§streaming_lines: Vec<String>Rolling buffer of recent streaming output lines for inline chat display.
streaming_output: StringFull streaming output collected while the tool is still running.
Implementations§
Source§impl DisplayToolCall
impl DisplayToolCall
Sourcepub fn header_line(&self, theme: &Theme) -> Line<'static>
pub fn header_line(&self, theme: &Theme) -> Line<'static>
Build a compact one-line summary for the tool call header.
Sourcepub fn header_line_animated(
&self,
theme: &Theme,
tick: u64,
animation_level: AnimationLevel,
) -> Line<'static>
pub fn header_line_animated( &self, theme: &Theme, tick: u64, animation_level: AnimationLevel, ) -> Line<'static>
Header with animated spinner for running tools.
Sourcepub fn header_line_animated_focused(
&self,
theme: &Theme,
tick: u64,
focused: bool,
animation_level: AnimationLevel,
) -> Line<'static>
pub fn header_line_animated_focused( &self, theme: &Theme, tick: u64, focused: bool, animation_level: AnimationLevel, ) -> Line<'static>
Header with animated spinner and optional focus indicator.
Sourcepub fn compact_spans(&self, theme: &Theme) -> Vec<Span<'static>>
pub fn compact_spans(&self, theme: &Theme) -> Vec<Span<'static>>
Build compact inline spans for multi-tool-per-line rendering: “✓ name args”
Sourcepub fn make_args_summary(name: &str, args: &Value) -> String
pub fn make_args_summary(name: &str, args: &Value) -> String
Build a compact args summary from tool name and arguments.
Trait Implementations§
Source§impl Clone for DisplayToolCall
impl Clone for DisplayToolCall
Source§fn clone(&self) -> DisplayToolCall
fn clone(&self) -> DisplayToolCall
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 moreAuto Trait Implementations§
impl Freeze for DisplayToolCall
impl RefUnwindSafe for DisplayToolCall
impl Send for DisplayToolCall
impl Sync for DisplayToolCall
impl Unpin for DisplayToolCall
impl UnsafeUnpin for DisplayToolCall
impl UnwindSafe for DisplayToolCall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more