{"record":{"id":"3309054a05cded81","repo":"roboflow/supervision","slug":"unimplemented-task-task","errorCode":null,"errorMessage":"Unimplemented task: {task}","messagePattern":"Unimplemented task: (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"src/supervision/detection/vlm.py","lineNumber":607,"sourceCode":"\n        if result == \"No object detected.\":\n            return np.empty((0, 4), dtype=np.float32), np.array([]), None, None\n\n        pattern = re.compile(r\"<loc_(\\d+)><loc_(\\d+)><loc_(\\d+)><loc_(\\d+)>\")\n        match = pattern.search(result)\n        if match is None:\n            raise ValueError(\n                f\"Expected string to end in location tags, but got {result}\"\n            )\n\n        w, h = _validate_resolution(resolution_wh)\n        xyxy = np.array([match.groups()], dtype=np.float32)\n        xyxy *= np.array([w, h, w, h]) / 1000\n        result_string = result[: match.start()]\n        labels = np.array([result_string])\n        return xyxy, labels, None, None\n\n    raise RuntimeError(f\"Unimplemented task: {task}\")\n\n\ndef _recover_gemini_json_objects(text: str) -> list[Any]:\n    \"\"\"\n    Salvage individual JSON objects from a malformed Gemini JSON array.\n\n    Scans for balanced `{...}` spans and parses each independently, keeping the\n    ones that decode into a `dict` and skipping the rest. This recovers the valid\n    entries from an array that a single `json.loads` would reject wholesale, such\n    as one whose objects contain a mid-array syntax error or a missing key.\n\n    Args:\n        text: The (fence-stripped) response text that failed `json.loads`.\n\n    Returns:\n        The list of successfully parsed objects, which may be empty.\n    \"\"\"\n    objects: list[Any] = []","sourceCodeStart":589,"sourceCodeEnd":625,"githubUrl":"https://github.com/roboflow/supervision/blob/7f254d9784d4c37e0f03cd89ddee164c8db099c0/src/supervision/detection/vlm.py#L589-L625","documentation":"Error \"Unimplemented task: {task}\" thrown in roboflow/supervision.","triggerScenarios":"Thrown at src/supervision/detection/vlm.py:607 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a task supported by this VLM connector; check the supported tasks list in the documentation.","If the task is valid for the model but unimplemented here, pre-process the raw model output yourself and use the appropriate from_* connector."],"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-15T17:31:12.345Z"}