We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b94218 commit d46f3f4Copy full SHA for d46f3f4
1 file changed
pkg/server/server.go
@@ -754,16 +754,17 @@ func (s *Server) getAgents(c echo.Context) error {
754
slog.Error("Failed to refresh agents from disk", "error", err)
755
}
756
757
- agentList := make([]map[string]string, 0)
+ agentList := make([]map[string]any, 0)
758
for id, t := range s.teams {
759
a := t.Agent("root")
760
if a == nil {
761
slog.Error("Agent root not found", "team", id)
762
continue
763
764
- agentList = append(agentList, map[string]string{
+ agentList = append(agentList, map[string]any{
765
"name": id,
766
"description": a.Description(),
767
+ "multi": a.HasSubAgents(),
768
})
769
770
return c.JSON(http.StatusOK, agentList)
0 commit comments