pub struct ToolCallStatuses { /* private fields */ }Expand description
Tracks active tool calls and produces status lines for the frame.
Implementations§
Source§impl ToolCallStatuses
impl ToolCallStatuses
pub fn new() -> Self
pub fn progress(&self) -> ToolProgress
Sourcepub fn on_tick(&mut self, _now: Instant)
pub fn on_tick(&mut self, _now: Instant)
Advance the animation state. Call this on tick events.
Sourcepub fn on_tool_call(&mut self, tool_call: &ToolCall)
pub fn on_tool_call(&mut self, tool_call: &ToolCall)
Handle a new tool call from ACP SessionUpdate::ToolCall.
Sourcepub fn on_tool_call_update(&mut self, update: &ToolCallUpdate)
pub fn on_tool_call_update(&mut self, update: &ToolCallUpdate)
Handle a tool call update from ACP SessionUpdate::ToolCallUpdate.
pub fn finalize_running(&mut self, cancelled: bool)
pub fn has_tool(&self, id: &str) -> bool
Sourcepub fn on_sub_agent_progress(&mut self, notification: &SubAgentProgressParams)
pub fn on_sub_agent_progress(&mut self, notification: &SubAgentProgressParams)
Handle a sub-agent progress notification.
pub fn render_tool(&self, id: &str, context: &ViewContext) -> Vec<Line>
Trait Implementations§
Source§impl Clone for ToolCallStatuses
impl Clone for ToolCallStatuses
Source§fn clone(&self) -> ToolCallStatuses
fn clone(&self) -> ToolCallStatuses
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolCallStatuses
impl RefUnwindSafe for ToolCallStatuses
impl Send for ToolCallStatuses
impl Sync for ToolCallStatuses
impl Unpin for ToolCallStatuses
impl UnsafeUnpin for ToolCallStatuses
impl UnwindSafe for ToolCallStatuses
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