Skip to content

CompactionCursorAnchor

Base classes

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

⋔ Inheritance diagram

graph TD
  95970853569536["cursors.CompactionCursorAnchor"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970853569536
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: The cursor is next to a context compaction.

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

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

    compaction_id: str
    """The ID of the anchored compaction."""

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

compaction_id instance-attribute

compaction_id: str

The ID of the anchored compaction.

position instance-attribute

On which side of the compaction the cursor is.

:fa-brands-github: Show source on GitHub