{"record":{"id":"ba359457363842db","repo":"openai/codex","slug":"unsupported-input-item-type-item-r","errorCode":null,"errorMessage":"unsupported input item: {type(item)!r}","messagePattern":"unsupported input item: (.+?)","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"sdk/python/src/openai_codex/_inputs.py","lineNumber":61,"sourceCode":"\n\nInputItem = TextInput | ImageInput | LocalImageInput | SkillInput | MentionInput\nInput = list[InputItem] | InputItem\nRunInput = Input | str\n\n\ndef _to_wire_item(item: InputItem) -> JsonObject:\n    if isinstance(item, TextInput):\n        return {\"type\": \"text\", \"text\": item.text}\n    if isinstance(item, ImageInput):\n        return {\"type\": \"image\", \"url\": item.url}\n    if isinstance(item, LocalImageInput):\n        return {\"type\": \"localImage\", \"path\": item.path}\n    if isinstance(item, SkillInput):\n        return {\"type\": \"skill\", \"name\": item.name, \"path\": item.path}\n    if isinstance(item, MentionInput):\n        return {\"type\": \"mention\", \"name\": item.name, \"path\": item.path}\n    raise TypeError(f\"unsupported input item: {type(item)!r}\")\n\n\ndef _to_wire_input(input: Input) -> list[JsonObject]:\n    if isinstance(input, list):\n        return [_to_wire_item(i) for i in input]\n    return [_to_wire_item(input)]\n\n\ndef _normalize_run_input(input: RunInput) -> Input:\n    if isinstance(input, str):\n        return TextInput(input)\n    return input\n","sourceCodeStart":43,"sourceCodeEnd":74,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/sdk/python/src/openai_codex/_inputs.py#L43-L74","documentation":"Error \"unsupported input item: {type(item)!r}\" thrown in openai/codex.","triggerScenarios":"Thrown at sdk/python/src/openai_codex/_inputs.py:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass only supported input item types such as strings or the SDK input objects; convert the offending item before submitting."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}