Skip to content

SessionReference

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

A display-only reference to another session the tool call operates on, e.g. a subagent.

Source code in src/aclientp/schema/v2/tool_calls.py
class SessionReference(AnnotatedObject):
    """A display-only reference to another session the tool call operates on, e.g. a subagent."""

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

    session_id: SessionId
    """The referenced session."""

session_id instance-attribute

session_id: SessionId

The referenced session.

:fa-brands-github: Show source on GitHub