swarmctl shares the create-agent, inference and permissions shapes with the controller
This commit is contained in:
parent
249aab6642
commit
0831b85b73
26 changed files with 675 additions and 434 deletions
|
|
@ -16,9 +16,13 @@ controller's `OpenAPI` spec. `swarmctl` leaves it off.
|
|||
|
||||
## What's here
|
||||
|
||||
One module per endpoint family: `agents` (the responses of `POST /api/agents`
|
||||
and `POST /api/agents/{name}/forge-token`), `agents_md`
|
||||
One module per endpoint family: `agents` (`POST /api/agents`, request and
|
||||
response, and `POST /api/agents/{name}/forge-token`), `agents_md`
|
||||
(`/api/agents/{name}/agents-md`), `forge`
|
||||
(`POST /api/forge/users/{name}/admin`) and `schedules` (`/api/schedules`).
|
||||
The agent-create request, inference and permissions bodies are still mirrored
|
||||
by hand in `swarmctl`.
|
||||
(`POST /api/forge/users/{name}/admin`), `schedules` (`/api/schedules`), and
|
||||
`inference`, `limits` and `permissions`, the settings bodies that
|
||||
`POST /api/agents` also carries.
|
||||
|
||||
The types inside those bodies live in other serde-only crates: `Effort`,
|
||||
`Source` and `ArchetypeRef` in `swarm-wire`, `Permission` in `hive-types`. This
|
||||
crate still links no tokio and no axum.
|
||||
|
|
|
|||
Loading…
Reference in a new issue