{"record":{"id":"15a9b2070c4fe73c","repo":"vercel/ai","slug":"unsupported-role-exhaustivecheck-15a9b2","errorCode":null,"errorMessage":"Unsupported role: ${_exhaustiveCheck}","messagePattern":"Unsupported role: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/groq/src/convert-to-groq-chat-messages.ts","lineNumber":157,"sourceCode":"            case 'content':\n            case 'json':\n            case 'error-json':\n              contentValue = JSON.stringify(output.value);\n              break;\n          }\n\n          messages.push({\n            role: 'tool',\n            tool_call_id: toolResponse.toolCallId,\n            content: contentValue,\n          });\n        }\n        break;\n      }\n\n      default: {\n        const _exhaustiveCheck: never = role;\n        throw new Error(`Unsupported role: ${_exhaustiveCheck}`);\n      }\n    }\n  }\n\n  return messages;\n}\n","sourceCodeStart":139,"sourceCodeEnd":164,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/groq/src/convert-to-groq-chat-messages.ts#L139-L164","documentation":"Error \"Unsupported role: ${_exhaustiveCheck}\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/groq/src/convert-to-groq-chat-messages.ts:157 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"69428b1f8b037e4d118fb4853428d5c4e620493c","analyzedAt":"2026-08-30T12:32:21.016Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}