Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/coder
/ countAgents
Function
countAgents
site/src/pages/WorkspacePage/Workspace.tsx:258–260 ·
view source on GitHub ↗
(resource: TypesGen.WorkspaceResource)
Source
from the content-addressed store, hash-verified
256
};
257
258
const countAgents = (resource: TypesGen.WorkspaceResource) => {
259
return resource.agents ? resource.agents.length : 0;
260
};
Callers
1
Workspace
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected