MCPcopy Index your code
hub / github.com/simstudioai/sim / extractCanonicalRequestId

Function extractCanonicalRequestId

apps/sim/app/api/copilot/chat/stream/route.ts:41–43  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

39const MAX_STREAM_MS = 60 * 60 * 1000
40
41function extractCanonicalRequestId(value: unknown): string {
42 return typeof value === 'string' && value.length > 0 ? value : ''
43}
44
45function extractRunRequestId(run: { requestContext?: unknown } | null | undefined): string {
46 if (!run || typeof run.requestContext !== 'object' || run.requestContext === null) {

Callers 2

extractRunRequestIdFunction · 0.85
extractEnvelopeRequestIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected