Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 4 lines 154 Bytes
Raw
1 /**
2 * Clamp a user-provided limit to the valid API range [1, 1000].
3 */
4 export const clampLimit = (n: number): number => Math.max(1, Math.min(1000, n));