MCPcopy Create free account
hub / github.com/Noumena-Network/code / isRequestNotification

Function isRequestNotification

src/services/api/openAICompatWsV2Native.ts:123–130  ·  view source on GitHub ↗
(message: Record<string, unknown>, requestId: string)

Source from the content-addressed store, hash-verified

121}
122
123function isRequestNotification(message: Record<string, unknown>, requestId: string): boolean {
124 const params = message.params
125 if (!params || typeof params !== 'object') {
126 return false
127 }
128 const id = (params as { id?: unknown }).id
129 return id === undefined || id === null || id === requestId
130}
131
132export function createNativeOpenAICompatWsV2Transport(
133 binding: NativeWsV2Binding | null = loadNativeBinding(),

Callers 1

pullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected