MCPcopy Create free account
hub / github.com/TanStack/ai / shouldRecord

Function shouldRecord

testing/panel/src/lib/recording.ts:244–247  ·  view source on GitHub ↗
(streamId: string)

Source from the content-addressed store, hash-verified

242
243 // Helper to check if we should record this stream
244 const shouldRecord = (streamId: string): boolean => {
245 if (!traceId) return true // Record all if no filter
246 return streamId === recordingStreamId
247 }
248
249 // Subscribe to content chunks
250 const unsubscribeContent = aiEventClient.on(

Callers 1

createEventRecordingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected