Skip to content

isCompleteJson

function isCompleteJson(raw): boolean;

Defined in: core/src/tool-args.ts:200

Whether raw parses at all. Lets a caller tell a truncated tool call from an intact one, since parseToolArgs deliberately never throws.

Parameter Type
raw string

boolean