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

Function logChatFailure

apps/petrinaut-website/api/chat.ts:47–53  ·  view source on GitHub ↗
(
  reason: string,
  context: Record<string, unknown> = {},
)

Source from the content-addressed store, hash-verified

45};
46
47const logChatFailure = (
48 reason: string,
49 context: Record<string, unknown> = {},
50) => {
51 // oxlint-disable-next-line no-console
52 console.error(`[Petrinaut AI] ${reason}`, context);
53};
54
55const validationErrorBody = (
56 error: unknown,

Callers 1

fetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected