#[non_exhaustive]pub struct ToolCallLocation {
pub path: PathBuf,
pub line: Option<u32>,
pub meta: Option<Meta>,
}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<Meta>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>) -> Self
Sourcepub fn line(self, line: impl IntoOption<u32>) -> Self
pub fn line(self, line: impl IntoOption<u32>) -> Self
Optional line number within the file.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
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 · Source§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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 more