Skip to content

CursorToolCallAnchor

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: The cursor is next to a tool call.

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

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

    tool_call_id: ToolCallId
    """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: ToolCallId

The anchored tool call.

:fa-brands-github: Show source on GitHub