{"record":{"id":"f7ca65b30a5796d4","repo":"BerriAI/litellm","slug":"argilla-transformation-object-must-be-a-dictiona","errorCode":null,"errorMessage":"'argilla_transformation_object' must be a dictionary, to log your payload to Argilla.","messagePattern":"'argilla_transformation_object' must be a dictionary, to log your payload to Argilla\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"litellm/integrations/argilla.py","lineNumber":74,"sourceCode":"            argilla_base_url=argilla_base_url,\n        )\n        self.sampling_rate: float = (\n            float(os.getenv(\"ARGILLA_SAMPLING_RATE\"))\n            if os.getenv(\"ARGILLA_SAMPLING_RATE\") is not None and os.getenv(\"ARGILLA_SAMPLING_RATE\").strip().isdigit()\n            else 1.0\n        )\n\n        self.async_httpx_client = get_async_httpx_client(llm_provider=httpxSpecialProvider.LoggingCallback)\n        _batch_size: Final = os.getenv(\"ARGILLA_BATCH_SIZE\", None) or litellm.argilla_batch_size\n        if _batch_size:\n            self.batch_size = int(_batch_size)\n        asyncio.create_task(self.periodic_flush())\n        self.flush_lock = asyncio.Lock()\n        super().__init__(**kwargs, flush_lock=self.flush_lock)\n\n    def validate_argilla_transformation_object(self, argilla_transformation_object: dict[str, Any]):\n        if not isinstance(argilla_transformation_object, dict):\n            raise Exception(\"'argilla_transformation_object' must be a dictionary, to log your payload to Argilla.\")\n\n        for v in argilla_transformation_object.values():\n            if v not in SUPPORTED_PAYLOAD_FIELDS:\n                raise Exception(\n                    f\"All values in argilla_transformation_object must be a key in SUPPORTED_PAYLOAD_FIELDS, {v} is not a valid key.\"\n                )\n\n    def get_credentials_from_env(\n        self,\n        argilla_api_key: str | None,\n        argilla_dataset_name: str | None,\n        argilla_base_url: str | None,\n    ) -> ArgillaCredentialsObject:\n        _credentials_api_key: Final = argilla_api_key or os.getenv(\"ARGILLA_API_KEY\")\n        if _credentials_api_key is None:\n            raise Exception(\"Invalid Argilla API Key given. _credentials_api_key=None.\")\n\n        _credentials_base_url: Final = argilla_base_url or os.getenv(\"ARGILLA_BASE_URL\") or \"http://localhost:6900/\"","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/integrations/argilla.py#L56-L92","documentation":"Error \"'argilla_transformation_object' must be a dictionary, to log your payload to Argilla.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/integrations/argilla.py:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass argilla_transformation_object as a dictionary."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}