Spaces:
Paused
Paused
Download console/src/api/modules/agentStats.ts from mysticaldragon/HF: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/api/modules/agentStats.ts
- Command line
-
hf download hf://spaces/mysticaldragon/HF/console/src/api/modules/agentStats.ts
-
curl -L -o agentStats.ts https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/api/modules/agentStats.ts
447 Bytes
| import { request } from "../request"; | |
| import type { AgentStatsSummary } from "../types/agentStats"; | |
| export interface GetAgentStatsParams { | |
| start_date: string; | |
| end_date: string; | |
| } | |
| export const agentStatsApi = { | |
| getAgentStats: (params: GetAgentStatsParams) => | |
| request<AgentStatsSummary>( | |
| `/agent-stats?start_date=${encodeURIComponent( | |
| params.start_date, | |
| )}&end_date=${encodeURIComponent(params.end_date)}`, | |
| ), | |
| }; | |