Skip to content

ToolCallLocation

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970870811328["tool_calls.ToolCallLocation"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970870811328
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

A file location a tool reads or modifies, for "follow-along" features.

Source code in src/aclientp/schema/v2/tool_calls.py
class ToolCallLocation(AnnotatedObject):
    """A file location a tool reads or modifies, for "follow-along" features."""

    path: AbsolutePath
    """The absolute file path."""

    line: int | MISSING | None = Field(default=MISSING, ge=1)
    """1-based line number in the file; ``0`` is invalid."""

line class-attribute instance-attribute

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

1-based line number in the file; 0 is invalid.

path instance-attribute

The absolute file path.

:fa-brands-github: Show source on GitHub