Overview
Theagents client manages AI agent registrations. Each agent has a unique ID, a DID (Decentralized Identifier), a set of scopes it can request, and a lifecycle status.
Access the agents client via client.agents.
Register
Register a new agent with a name and set of scopes:Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | str | Yes | — | Human-readable name for the agent. |
scopes | list[str] | Yes | — | The scopes this agent can request. |
description | str | No | "" | A description of what the agent does. |
Returns
AnAgent dataclass.
Get
Retrieve a single agent by its ID:List
List all agents registered under your developer account:ListAgentsResponse
| Field | Type | Description |
|---|---|---|
agents | tuple[Agent, ...] | The list of agents. |
total | int | Total number of agents. |
page | int | Current page number. |
page_size | int | Number of agents per page. |
Update
Update an agent’s name, description, or scopes. Only fields you provide will be modified:Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | str | Yes | The ID of the agent to update (positional). |
name | str | None | No | New name for the agent. |
description | str | None | No | New description. |
scopes | list[str] | None | No | New set of scopes. |
Delete
Delete an agent by its ID:Agent Type
TheAgent frozen dataclass has the following fields:
| Field | Type | Description |
|---|---|---|
id | str | Unique agent identifier. |
did | str | Decentralized Identifier for the agent. |
name | str | Human-readable agent name. |
description | str | Agent description. |
scopes | tuple[str, ...] | Scopes this agent can request. |
status | str | Agent status (e.g. "active"). |
developer_id | str | ID of the developer who owns this agent. |
created_at | str | ISO 8601 creation timestamp. |
updated_at | str | ISO 8601 last-updated timestamp. |