Skip to content

FileEditToolCallContent

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

File modification shown as a diff.

Source code in src/aclientp/schema/tool_call.py
class FileEditToolCallContent(AnnotatedObject):
    """File modification shown as a diff."""

    type: Literal["diff"] = Field(default="diff", init=False)
    """File modification shown as a diff."""

    new_text: str
    """The new content after modification."""

    old_text: str | None = None
    """The original content (None for new files)."""

    path: str
    """The file path being modified."""

new_text instance-attribute

new_text: str

The new content after modification.

old_text class-attribute instance-attribute

old_text: str | None = None

The original content (None for new files).

path instance-attribute

path: str

The file path being modified.

type class-attribute instance-attribute

type: Literal['diff'] = Field(default='diff', init=False)

File modification shown as a diff.

:fa-brands-github: Show source on GitHub