MCPcopy Create free account
hub / github.com/AI45Lab/Code / metadata

Method metadata

sdk/python/src/lib.rs:810–815  ·  view source on GitHub ↗
(&self, py: Python<'_>)

Source from the content-addressed store, hash-verified

808impl PyToolResult {
809 #[getter]
810 fn metadata(&self, py: Python<'_>) -> PyResult<Option<PyObject>> {
811 self.metadata_json
812 .as_deref()
813 .map(|json| json_string_to_py(py, json))
814 .transpose()
815 }
816
817 /// Parsed `error_kind_json` as a dict. The discriminator lives on the
818 /// ``type`` key; downstream code matches on that to decide retry

Callers 1

list_dirMethod · 0.80

Calls 1

json_string_to_pyFunction · 0.85

Tested by

no test coverage detected