Context manager entry point Enables `with` statement usage for automatic resource cleanup: Example: with LlmConfig.huggingface(api_key="...", model="...") as config: # use config # cleanup() called automatically
(slf: PyRef<'_, Self>)
| 387 | /// # use config |
| 388 | /// # cleanup() called automatically |
| 389 | fn __enter__(slf: PyRef<'_, Self>) -> PyRef<'_, Self> { |
| 390 | slf |
| 391 | } |
| 392 | |
| 393 | /// Context manager exit point |
| 394 | /// |