{"record":{"id":"7e4d5e71d6c654e9","repo":"roboflow/supervision","slug":"missing-required-argument-arg","errorCode":null,"errorMessage":"Missing required argument: {arg}","messagePattern":"Missing required argument: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"src/supervision/detection/vlm.py","lineNumber":202,"sourceCode":"        ValueError: If the VLM, result type, or arguments are invalid.\n    \"\"\"\n    if isinstance(vlm, str):\n        try:\n            vlm = VLM(vlm.lower())\n        except ValueError:\n            raise ValueError(\n                f\"Invalid vlm value: {vlm}. Must be one of {[e.value for e in VLM]}\"\n            )\n\n    if not isinstance(result, RESULT_TYPES[vlm]):\n        raise ValueError(\n            f\"Invalid VLM result type: {type(result)}. Must be {RESULT_TYPES[vlm]}\"\n        )\n\n    required_args = REQUIRED_ARGUMENTS.get(vlm, [])\n    for arg in required_args:\n        if arg not in kwargs:\n            raise ValueError(f\"Missing required argument: {arg}\")\n\n    allowed_args = ALLOWED_ARGUMENTS.get(vlm, [])\n    for arg in kwargs:\n        if arg not in allowed_args:\n            raise ValueError(f\"Argument {arg} is not allowed for {vlm.name}\")\n\n    return vlm\n\n\n@deprecated(  # type: ignore[untyped-decorator]\n    target=_validate_vlm_parameters,\n    deprecated_in=\"0.29.0\",\n    remove_in=\"0.32.0\",\n)\ndef validate_vlm_parameters(vlm: VLM | str, result: Any, kwargs: dict[str, Any]) -> VLM:\n    return void(vlm, result, kwargs)  # type: ignore[no-any-return]\n\n","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/roboflow/supervision/blob/7f254d9784d4c37e0f03cd89ddee164c8db099c0/src/supervision/detection/vlm.py#L184-L220","documentation":"Error \"Missing required argument: {arg}\" thrown in roboflow/supervision.","triggerScenarios":"Thrown at src/supervision/detection/vlm.py:202 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the missing required argument named in the error for the selected VLM connector.","Check the connector's signature/documentation for the required arguments of the chosen model."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7f254d9784d4c37e0f03cd89ddee164c8db099c0","analyzedAt":"2026-08-15T05:13:01.950Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}