MCPcopy
hub / github.com/IBM/AssetOpsBench / get

Method get

src/servers/wo/couch.py:49–54  ·  view source on GitHub ↗
(self, doc_id: str)

Source from the content-addressed store, hash-verified

47
48 # ---- document CRUD ----
49 async def get(self, doc_id: str) -> Optional[Dict[str, Any]]:
50 r = await self._c.get(f"/{self.db}/{doc_id}")
51 if r.status_code == 404:
52 return None
53 r.raise_for_status()
54 return r.json()
55
56 async def put(self, doc: Dict[str, Any]) -> Dict[str, Any]:
57 if "_id" not in doc:

Callers 15

next_wonumMethod · 0.95
generate_with_usageMethod · 0.45
resolve_router_credsFunction · 0.45
agent_run_spanFunction · 0.45
_traces_file_pathFunction · 0.45
_http_endpoint_setFunction · 0.45
_tracing_enabledFunction · 0.45
persist_trajectoryFunction · 0.45
_runMethod · 0.45
load_toolsMethod · 0.45
runMethod · 0.45
_namesFunction · 0.45

Calls

no outgoing calls