Skip to content

DiffPatch

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

Renderable patch text and its format.

Source code in src/aclientp/schema/v2/tool_calls.py
class DiffPatch(AnnotatedObject):
    """Renderable patch text and its format."""

    format: DiffPatchFormat
    """The patch format; ACP defines only ``git_patch``."""

    text: str
    """The patch text."""

format instance-attribute

The patch format; ACP defines only git_patch.

text instance-attribute

text: str

The patch text.

:fa-brands-github: Show source on GitHub