UNPKG

@makingchatbots/genesys-cloud-mcp-server

Version:

A Model Context Protocol (MCP) server exposing Genesys Cloud tools for LLMs, including sentiment analysis, conversation search, topic detection and more.

7 lines (6 loc) 235 B
export function sampleEvenly(list, sampleSize) { if (list.length <= sampleSize) return list; const step = list.length / sampleSize; return Array.from({ length: sampleSize }, (_, i) => list[Math.floor(i * step)]); }