(audience: readonly Role[] | null | undefined)
| 245 | } |
| 246 | |
| 247 | function audienceFlags(audience: readonly Role[] | null | undefined) { |
| 248 | if (audience?.length === 1 && audience[0] === "assistant") return { synthetic: true } |
| 249 | if (audience?.length === 1 && audience[0] === "user") return { ignored: true } |
| 250 | return {} |
| 251 | } |
| 252 | |
| 253 | function partAudience(part: Extract<ReplayPart, { type: "text" }>) { |
| 254 | const audience: Role[] | undefined = part.synthetic ? ["assistant"] : part.ignored ? ["user"] : undefined |
no outgoing calls
no test coverage detected