Skip to content

AuthAccount

Base classes

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

⋔ Inheritance diagram

graph TD
  95970866250320["auth.AuthAccount"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970866250320
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: An account or credential the agent has configured.

For example a signed-in user account or an API key. All fields are display information only.

Source code in src/aclientp/schema/v2/auth.py
class AuthAccount(AnnotatedObject):
    """**UNSTABLE**: An account or credential the agent has configured.

    For example a signed-in user account or an API key. All fields are display
    information only.
    """

    label: str
    """Human-readable name for the account, suitable for display on its own, for example
    ``Claude Max``, ``OpenAI API key``, or ``Vertex AI``."""

    description: str | MISSING | None = MISSING
    """Short text shown with the label, such as the credential source, for example ``API key
    helper``. MUST NOT contain credentials."""

    active: bool | MISSING | None = MISSING
    """Whether the agent currently uses this account by default."""

    name: str | MISSING | None = MISSING
    """Display name of the user, such as a username or full name."""

    email: str | MISSING | None = MISSING
    """Email address of the user."""

    organization: str | MISSING | None = MISSING
    """Display name of the organization, team, or workspace the account is using."""

active class-attribute instance-attribute

active: bool | MISSING | None = MISSING

Whether the agent currently uses this account by default.

description class-attribute instance-attribute

description: str | MISSING | None = MISSING

Short text shown with the label, such as the credential source, for example API key helper. MUST NOT contain credentials.

email class-attribute instance-attribute

email: str | MISSING | None = MISSING

Email address of the user.

label instance-attribute

label: str

Human-readable name for the account, suitable for display on its own, for example Claude Max, OpenAI API key, or Vertex AI.

name class-attribute instance-attribute

name: str | MISSING | None = MISSING

Display name of the user, such as a username or full name.

organization class-attribute instance-attribute

organization: str | MISSING | None = MISSING

Display name of the organization, team, or workspace the account is using.

:fa-brands-github: Show source on GitHub