MCPcopy Create free account
hub / github.com/astercloud/aster / buildQueryString

Method buildQueryString

studio/src/api/client.ts:71–80  ·  view source on GitHub ↗
(params: object)

Source from the content-addressed store, hash-verified

69 }
70
71 private buildQueryString(params: object): string {
72 const searchParams = new URLSearchParams();
73 for (const [key, value] of Object.entries(params)) {
74 if (value !== undefined && value !== null && value !== '') {
75 searchParams.append(key, String(value));
76 }
77 }
78 const queryString = searchParams.toString();
79 return queryString ? `?${queryString}` : '';
80 }
81
82 // Overview
83 async getOverview(period: string = '24h'): Promise<OverviewStats> {

Callers 5

getTracesMethod · 0.95
getTokenUsageMethod · 0.95
getCostsMethod · 0.95
getSessionsMethod · 0.95
getEvalsMethod · 0.95

Calls 3

StringFunction · 0.85
appendMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected