MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / __enter__

Method __enter__

python/src/llm/config.rs:389–391  ·  view source on GitHub ↗

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>)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

chatbot.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected