Skip to content

ToolCallLocation

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970859761744["tool_call.ToolCallLocation"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970859761744
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

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

Source code in src/aclientp/schema/tool_call.py
class ToolCallLocation(AnnotatedObject):
    """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](https://agentclientprotocol.com/protocol/tool-calls#following-the-agent)
    """

    line: int | None = Field(default=0, ge=0)
    """Optional 1-based line number within the file.

    Defaults to 0 (unspecified) rather than None: some clients only render
    clickable paths when the field is present.
    """

    path: str
    """The absolute file path being accessed or modified."""

line class-attribute instance-attribute

line: int | None = Field(default=0, ge=0)

Optional 1-based line number within the file.

Defaults to 0 (unspecified) rather than None: some clients only render clickable paths when the field is present.

path instance-attribute

path: str

The absolute file path being accessed or modified.

:fa-brands-github: Show source on GitHub