feat: agents.json refactor (#221)

This commit is contained in:
Carlos Florêncio
2026-02-14 15:54:11 +00:00
committed by GitHub
parent ea751d3ecc
commit ee612a42c5
56 changed files with 2886 additions and 3785 deletions
@@ -147,13 +147,17 @@ func (c *Controller) ListAgentTypes(ctx context.Context, req dto.ListAgentTypesR
}
for _, t := range types {
var image string
if rt := t.Runtime(); rt != nil {
image = rt.Image
}
resp.Types = append(resp.Types, dto.FromAgentType(&dto.AgentTypeData{
ID: t.ID,
Name: t.Name,
Description: t.Description,
Image: t.Image,
Capabilities: t.Capabilities,
Enabled: t.Enabled,
ID: t.ID(),
Name: t.Name(),
Description: t.Description(),
Image: image,
Capabilities: t.Runtime().Capabilities,
Enabled: t.Enabled(),
}))
}