Watch
0
0
Fork
You've already forked hyperhive
0

swarm-controller: the commands route's 503 is only an unreachable queue

This commit is contained in:
iris 2026-11-15 19:47:53 +01:00
commit 05fef7926f

View file

@ -83,13 +83,13 @@ fn build(published: Option<Skills>) -> Vec<CommandEntry> {
params(("name" = String, Path, description = "agent whose commands to list")),
responses(
(status = 200, description = "the swarm's own commands, then the skills the agent's \
harness published, for the message box's command menu; just the swarm's commands \
when the agent has published none and on a host with no swarm queue",
when the agent has published none",
body = Vec<CommandEntry>),
(status = 400, description = "the agent name is not shaped like an identifier \
(problem+json)", body = String),
(status = 503, description = "no swarm queue is configured on this host, or the \
queue could not be reached (problem+json)", body = String),
(status = 503, description = "the swarm queue could not be reached \
(problem+json)", body = String),
(status = 500, description = "reading the agent's skills failed (problem+json)",
body = String),
),