pub struct ToolLocation {
pub path: String,
pub line: Option<u32>,
}Expand description
A file/path a tool call touches — the neutral mirror of ACP’s
ToolCallLocation. Lets the app show the call’s subject (and distinguish,
say, listing a directory from reading a file) and offer follow-along
navigation. Populated by the ACP adapter (passthrough) and openai-compatible’s
own tools; empty for the CLI adapters that don’t report paths structurally.
Fields§
§path: String§line: Option<u32>Trait Implementations§
Source§impl Clone for ToolLocation
impl Clone for ToolLocation
Source§fn clone(&self) -> ToolLocation
fn clone(&self) -> ToolLocation
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 ToolLocation
impl Debug for ToolLocation
impl Eq for ToolLocation
Source§impl PartialEq for ToolLocation
impl PartialEq for ToolLocation
Source§impl Serialize for ToolLocation
impl Serialize for ToolLocation
impl StructuralPartialEq for ToolLocation
Auto Trait Implementations§
impl Freeze for ToolLocation
impl RefUnwindSafe for ToolLocation
impl Send for ToolLocation
impl Sync for ToolLocation
impl Unpin for ToolLocation
impl UnsafeUnpin for ToolLocation
impl UnwindSafe for ToolLocation
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