Skip to content
1 min read · 65 words

Variable: compareRecordsTool

ts
const compareRecordsTool: Tool<SpooledArtifact>;

Compare two JSON objects and report keys only in A, keys only in B, keys with matching values, and keys with differing values.

Remarks

Accepts JSON strings (not pre-parsed objects) so the schema can validate the input shape uniformly across providers. When deep is true (default), nested objects and arrays are compared structurally; when false, comparison reduces to JSON serialisation equality.