Documentation Index
Fetch the complete documentation index at: https://docs.alterauth.com/llms.txt
Use this file to discover all available pages before exploring further.
App.get_agent()
Returns an Agent instance backed by the app key, with caller pinned to the agent UUID. The “monolithic” shape — see Agents → Overview.
Signature
Example
App.agents namespace
Operator surface for managed agents and their keys. All methods are async; require the App key.
agents.create()
scopes is a per-provider allowlist ({"google": ["gmail.readonly"], "slack": ["chat.write"]}), not a flat list. AgentCreateResult extends AgentInfo with api_key (plaintext, shown once).
agents.list()
agents.get(), agents.get_by_name()
agents.update()
scopes must be the FULL desired per-provider allowlist — the backend rejects narrowing with AgentScopeNarrowingNotSupportedError.
agents.delete()
agents.mint_key()
AgentKeyMintResult extends AgentKey with api_key (plaintext, shown once).
agents.list_keys()
AgentKeyList has a single items: list[AgentKey] field; no pagination.
agents.deprecate_key(), agents.undeprecate_key()
agents.revoke_key()
force=True required when revoking the last active key — otherwise raises LastActiveKeyError.
Agent.me()
Returns the calling agent’s AgentInfo. Available on Agent only.
Signature
Agent.trace()
Async context manager that binds a run_id (and other tracing fields) to every request inside the scope. Available on Agent only.
Signature
Example
See also
- Agents → Creating agents
- Agents → Keys and rotation
- Agents → Agent runtime
- Errors —
AgentErrorsubclasses.