MCPcopy Create free account
hub / github.com/hashintel/hash / stringify

Function stringify

apps/hash-ai-worker-ts/src/activities/shared/stringify.ts:1–8  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

1export const stringify = (obj: unknown) =>
2 JSON.stringify(
3 obj,
4 undefined,
5 ["test", "development"].includes(process.env.NODE_ENV ?? "")
6 ? 2
7 : undefined,
8 );

Callers 15

generateJsonResponseFunction · 0.85
getAnthropicResponseFunction · 0.85
retryFunction · 0.85
getInputValidationErrorsFunction · 0.85
proposeEntitiesFunction · 0.85
retryWithMessagesFunction · 0.85
inferEntitySummariesFunction · 0.85
retryWithMessagesFunction · 0.85
isContentAtUrlPdfFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected