MCPcopy Index your code
hub / github.com/coder/coder / agentLogs

Function agentLogs

site/src/api/queries/workspaces.ts:489–495  ·  view source on GitHub ↗
(agentId: string)

Source from the content-addressed store, hash-verified

487export const agentLogsKey = (agentId: string) => ["agents", agentId, "logs"];
488
489export const agentLogs = (agentId: string) => {
490 return {
491 queryKey: agentLogsKey(agentId),
492 queryFn: () => API.getWorkspaceAgentLogs(agentId),
493 ...disabledRefetchOptions,
494 } satisfies UseQueryOptions<WorkspaceAgentLog[]>;
495};
496
497// workspace usage options
498interface WorkspaceUsageOptions {

Callers 2

fetchLogsFunction · 0.90
DownloadLogsDialogFunction · 0.90

Calls 1

agentLogsKeyFunction · 0.85

Tested by

no test coverage detected