(part: Extract<ReplayPart, { type: "text" }>)
| 251 | } |
| 252 | |
| 253 | function partAudience(part: Extract<ReplayPart, { type: "text" }>) { |
| 254 | const audience: Role[] | undefined = part.synthetic ? ["assistant"] : part.ignored ? ["user"] : undefined |
| 255 | if (!audience) return {} |
| 256 | return { annotations: { audience } } |
| 257 | } |
| 258 | |
| 259 | function filenameFromUri(uri: string | undefined) { |
| 260 | if (!uri) return |
no outgoing calls
no test coverage detected