MCPcopy Create free account
hub / github.com/simstudioai/sim / getScopedSpanIdentity

Function getScopedSpanIdentity

apps/sim/lib/copilot/request/handlers/types.ts:114–124  ·  view source on GitHub ↗
(event: StreamEvent)

Source from the content-addressed store, hash-verified

112 * spread it safely and fall back to `parentToolCallId`-based grouping.
113 */
114export function getScopedSpanIdentity(event: StreamEvent): {
115 spanId?: string
116 parentSpanId?: string
117} {
118 const spanId = event.scope?.spanId
119 const parentSpanId = event.scope?.parentSpanId
120 return {
121 ...(spanId ? { spanId } : {}),
122 ...(parentSpanId ? { parentSpanId } : {}),
123 }
124}
125
126export function registerPendingToolPromise(
127 context: StreamingContext,

Callers 2

handleTextEventFunction · 0.90
handleToolEventFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected