Skip to content

ToolCallCursorAnchor

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: The cursor is next to a tool call.

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

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

    tool_call_id: str
    """The ID of the anchored tool call."""

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

position instance-attribute

On which side of the tool call the cursor is.

tool_call_id instance-attribute

tool_call_id: str

The ID of the anchored tool call.

:fa-brands-github: Show source on GitHub