MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / metadata

Method metadata

python/src/document_loader.rs:192–199  ·  view source on GitHub ↗
(&self, py: Python<'py>)

Source from the content-addressed store, hash-verified

190 /// Get metadata as a dictionary
191 #[getter]
192 fn metadata<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyDict>> {
193 let dict = PyDict::new(py);
194 for (key, value) in &self.inner.metadata {
195 let py_value = serde_json_to_py_object(py, value)?;
196 dict.set_item(key, py_value)?;
197 }
198 Ok(dict)
199 }
200
201 /// Get content length
202 fn content_length(&self) -> usize {

Callers

nothing calls this directly

Calls 1

serde_json_to_py_objectFunction · 0.85

Tested by

no test coverage detected