normalizeToolId
function normalizeToolId(id, prefix?): string;Defined in: core/src/tool-args.ts:118
Normalizes tool call IDs:
- Synthesizes a fallback if empty/whitespace.
- Clamps oversized IDs (> 64 chars) to avoid ChatGPT Responses 400 errors.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
id |
string | null | undefined |
undefined |
prefix |
string |
"call_pk_" |
Returns
Section titled “Returns”string