#[non_exhaustive]pub struct ToolCallLocation {
pub path: PathBuf,
pub line: Option<u32>,
pub meta: Option<Map<String, Value>>,
}Expand description
A file location being accessed or modified by a tool.
Enables clients to implement “follow-along” features that track which files the agent is working with in real-time.
See protocol docs: Following the Agent
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: PathBufThe file path being accessed or modified.
line: Option<u32>Optional line number within the file.
meta: Option<Map<String, Value>>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl ToolCallLocation
impl ToolCallLocation
pub fn new(path: impl Into<PathBuf>) -> ToolCallLocation
Sourcepub fn line(self, line: impl IntoOption<u32>) -> ToolCallLocation
pub fn line(self, line: impl IntoOption<u32>) -> ToolCallLocation
Optional line number within the file.
Sourcepub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> ToolCallLocation
pub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> ToolCallLocation
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for ToolCallLocation
impl Clone for ToolCallLocation
Source§fn clone(&self) -> ToolCallLocation
fn clone(&self) -> ToolCallLocation
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ToolCallLocation
impl Debug for ToolCallLocation
Source§impl<'de> Deserialize<'de> for ToolCallLocation
impl<'de> Deserialize<'de> for ToolCallLocation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallLocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallLocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ToolCallLocation
impl JsonSchema for ToolCallLocation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ToolCallLocation
impl PartialEq for ToolCallLocation
Source§impl Serialize for ToolCallLocation
impl Serialize for ToolCallLocation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for ToolCallLocation
impl StructuralPartialEq for ToolCallLocation
Auto Trait Implementations§
impl Freeze for ToolCallLocation
impl RefUnwindSafe for ToolCallLocation
impl Send for ToolCallLocation
impl Sync for ToolCallLocation
impl Unpin for ToolCallLocation
impl UnwindSafe for ToolCallLocation
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)