Download apps/vis/web/src/hooks/useSubagents.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/web/src/hooks/useSubagents.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/vis/web/src/hooks/useSubagents.ts
-
curl -L -o useSubagents.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/web/src/hooks/useSubagents.ts
330 Bytes
| import { useQuery } from '@tanstack/react-query'; | |
| import { api } from '../api'; | |
| export function useAgentTree(sessionId: string | undefined, enabled = true) { | |
| return useQuery({ | |
| queryKey: ['session', sessionId, 'agents'] as const, | |
| queryFn: () => api.getAgentTree(sessionId!), | |
| enabled: !!sessionId && enabled, | |
| }); | |
| } | |