Skip to content

CursorCompactionAnchor

Base classes

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

⋔ Inheritance diagram

graph TD
  95970865038400["cursors.CursorCompactionAnchor"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970865038400
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: The cursor is next to a context compaction.

Source code in src/aclientp/schema/v2/cursors.py
class CursorCompactionAnchor(AnnotatedObject):
    """**UNSTABLE**: The cursor is next to a context compaction."""

    type: Literal["compaction"] = Field(default="compaction", init=False)

    compaction_id: CompactionId
    """The anchored compaction."""

    position: CursorAnchorPosition
    """On which side of the compaction the cursor is."""

compaction_id instance-attribute

compaction_id: CompactionId

The anchored compaction.

position instance-attribute

On which side of the compaction the cursor is.

:fa-brands-github: Show source on GitHub