MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getMessageTypeDistribution

Method getMessageTypeDistribution

src/services/data/fetch.ts:239–244  ·  view source on GitHub ↗
(
    sessionId: string,
    filter?: TimeFilter
  )

Source from the content-addressed store, hash-verified

237 }
238
239 getMessageTypeDistribution(
240 sessionId: string,
241 filter?: TimeFilter
242 ): Promise<Array<{ type: MessageType; count: number }>> {
243 return analyticsGet(`/sessions/${sessionId}/stats/message-types${buildFilterParams(filter)}`)
244 }
245
246 getTextStats(sessionId: string, filter?: TimeFilter): Promise<TextStats> {
247 return analyticsGet(`/sessions/${sessionId}/analytics/text-stats${buildFilterParams(filter)}`)

Callers

nothing calls this directly

Calls 2

analyticsGetFunction · 0.90
buildFilterParamsFunction · 0.85

Tested by

no test coverage detected