MCPcopy
hub / github.com/simstudioai/sim / generateToolUseId

Function generateToolUseId

apps/sim/providers/anthropic/utils.ts:56–58  ·  view source on GitHub ↗
(toolName: string)

Source from the content-addressed store, hash-verified

54}
55
56export function generateToolUseId(toolName: string): string {
57 return `${toolName}-${Date.now()}-${randomFloat().toString(36).substring(2, 7)}`
58}
59
60export function checkForForcedToolUsage(
61 response: any,

Callers

nothing calls this directly

Calls 2

randomFloatFunction · 0.90
toStringMethod · 0.45

Tested by

no test coverage detected