Skip to content
1 min read · 61 words

Function: sanitizeToolUseId()

ts
function sanitizeToolUseId(id: string): string;

Defined in: src/batteries/llm/bedrock_converse/helpers.ts:148

Converse rejects a toolUseId outside [A-Za-z0-9_-]{1,64}.

Parameters

ParameterType
idstring

Returns

string

Remarks

ADK ids are UUIDv6, which is already in-charset, but a caller-supplied id may not be — and the rejection names neither the field nor the offending character.