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 7 lines 189 Bytes
Raw
1 export function getRandomUUID(): string {
2 return globalThis.crypto.randomUUID();
3 }
4
5 export function getRandomShortId(): string {
6 return getRandomUUID().slice(0, 8).replace(/-/g, '');
7 }