MCPcopy Create free account
hub / github.com/ForgeAILab/forge / useAgentsQuery

Function useAgentsQuery

web/src/api/hooks.ts:1057–1064  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1055}
1056
1057export function useAgentsQuery() {
1058 return useQuery({
1059 queryKey: qk.agents,
1060 queryFn: () => apiFetch<PaginatedResponse<Agent>>('/agents', { search: { limit: 100 } }),
1061 staleTime: AGENTS_CACHE_STALE_TIME,
1062 gcTime: AGENTS_CACHE_GC_TIME,
1063 })
1064}
1065
1066export function useAgentsInfiniteQuery(limit = 20) {
1067 return useInfiniteQuery({

Callers 11

TaskDetailModalFunction · 0.90
KanbanBoardFunction · 0.90
ProjectHooksSectionFunction · 0.90
LinkAgentDialogFunction · 0.90
ExecutionConfigBarFunction · 0.90
ChatPageFunction · 0.90
ProjectSettingsPageFunction · 0.90
TaskDetailPageFunction · 0.90
DaemonsPageFunction · 0.90
ExecutionDetailPageFunction · 0.90
TaskListPageFunction · 0.90

Calls 1

apiFetchFunction · 0.90

Tested by

no test coverage detected