Skip to content

Commit d46f3f4

Browse files
committed
Add multi field to agent list response
1 parent 6b94218 commit d46f3f4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/server/server.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,16 +754,17 @@ func (s *Server) getAgents(c echo.Context) error {
754754
slog.Error("Failed to refresh agents from disk", "error", err)
755755
}
756756

757-
agentList := make([]map[string]string, 0)
757+
agentList := make([]map[string]any, 0)
758758
for id, t := range s.teams {
759759
a := t.Agent("root")
760760
if a == nil {
761761
slog.Error("Agent root not found", "team", id)
762762
continue
763763
}
764-
agentList = append(agentList, map[string]string{
764+
agentList = append(agentList, map[string]any{
765765
"name": id,
766766
"description": a.Description(),
767+
"multi": a.HasSubAgents(),
767768
})
768769
}
769770
return c.JSON(http.StatusOK, agentList)

0 commit comments

Comments
 (0)