Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
export
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
generateJsonResponse
Function · 0.85
inferEntitiesFromWebPageActivity
Function · 0.85
getAnthropicResponse
Function · 0.85
retry
Function · 0.85
sanitizeInputBeforeValidation
Function · 0.85
getInputValidationErrors
Function · 0.85
proposeEntities
Function · 0.85
retryWithMessages
Function · 0.85
inferEntitySummaries
Function · 0.85
retryWithMessages
Function · 0.85
validateEntitySummariesByType
Function · 0.85
isContentAtUrlPdfFile
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected