(target: T, src: { parentToolCallId?: string })
| 138 | } |
| 139 | |
| 140 | function withBlockParent<T>(target: T, src: { parentToolCallId?: string }): T { |
| 141 | if (src.parentToolCallId) { |
| 142 | ;(target as { parentToolCallId?: string }).parentToolCallId = src.parentToolCallId |
| 143 | } |
| 144 | return target |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Carry deterministic span identity (spanId / parentSpanId) across a block |