MCPcopy Create free account
hub / github.com/BerriAI/litellm / bind

Method bind

litellm-rust/crates/python-bridge/src/cache/python/host.rs:36–43  ·  view source on GitHub ↗
(
        &mut self,
        cache: Bound<'_, PyAny>,
        arguments: &Bound<'_, PyDict>,
    )

Source from the content-addressed store, hash-verified

34 }
35
36 pub(in crate::cache) fn bind(
37 &mut self,
38 cache: Bound<'_, PyAny>,
39 arguments: &Bound<'_, PyDict>,
40 ) {
41 self.cache = Some(cache.unbind());
42 self.arguments = Some(arguments.clone().unbind());
43 }
44
45 pub fn begin(&mut self, py: Python<'_>, call: CacheCall) -> PyResult<Option<Py<PyAny>>> {
46 let Some(cache) = self.cache.as_ref() else {

Calls 1

cloneMethod · 0.45