{"record":{"id":"eead9be5e10ec95b","repo":"BerriAI/litellm","slug":"acreate-sandbox-must-be-implemented-by-provider","errorCode":null,"errorMessage":"acreate_sandbox must be implemented by provider","messagePattern":"acreate_sandbox must be implemented by provider","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/llms/base_llm/sandbox/transformation.py","lineNumber":61,"sourceCode":"    _hidden_params: dict = PrivateAttr(default_factory=dict)\n\n\nclass BaseSandboxConfig:\n    \"\"\"Provider-agnostic sandbox operations.\"\"\"\n\n    def validate_environment(self, api_key: str | None = None, **kwargs) -> str:\n        raise NotImplementedError(\"validate_environment must be implemented by provider\")\n\n    async def acreate_sandbox(\n        self,\n        *,\n        template: str | None = None,\n        timeout: int | None = None,\n        allow_internet_access: bool | None = None,\n        api_key: str | None = None,\n        **kwargs,\n    ) -> ContainerHandle:\n        raise NotImplementedError(\"acreate_sandbox must be implemented by provider\")\n\n    async def arun_code(\n        self,\n        *,\n        container: ContainerHandle | str,\n        code: str,\n        api_key: str | None = None,\n        **kwargs,\n    ) -> CodeExecutionResult:\n        raise NotImplementedError(\"arun_code must be implemented by provider\")\n\n    async def adelete_sandbox(\n        self,\n        *,\n        container: ContainerHandle | str,\n        api_key: str | None = None,\n        **kwargs,\n    ) -> bool:","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/base_llm/sandbox/transformation.py#L43-L79","documentation":"Error \"acreate_sandbox must be implemented by provider\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/base_llm/sandbox/transformation.py:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a provider that supports sandbox creation; acreate_sandbox is abstract in the base class.","Implement acreate_sandbox in the custom provider's transformation class.","Verify the provider name in the request matches a supported sandbox provider."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}