We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c86e779 commit 0bc776eCopy full SHA for 0bc776e
apps/sim/providers/bedrock/utils.ts
@@ -72,7 +72,7 @@ export function checkForForcedToolUsage(
72
* AWS Bedrock requires toolUseId to be 1-64 characters, pattern [a-zA-Z0-9_-]+
73
*/
74
export function generateToolUseId(toolName: string): string {
75
- const timestamp = Date.now().toString(36) // Base36 timestamp (8 chars)
+ const timestamp = Date.now().toString(36) // Base36 timestamp (9 chars)
76
const random = Math.random().toString(36).substring(2, 7) // 5 random chars
77
const suffix = `-${timestamp}-${random}` // ~15 chars
78
const maxNameLength = 64 - suffix.length
0 commit comments