MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / delete_source

Method delete_source

methods/letta/client/client.py:1322–1330  ·  view source on GitHub ↗

Delete a source Args: source_id (str): ID of the source

(self, source_id: str)

Source from the content-addressed store, hash-verified

1320 return [Source(**source) for source in response.json()]
1321
1322 def delete_source(self, source_id: str):
1323 """
1324 Delete a source
1325
1326 Args:
1327 source_id (str): ID of the source
1328 """
1329 response = requests.delete(f"{self.base_url}/{self.api_prefix}/sources/{str(source_id)}", headers=self.headers)
1330 assert response.status_code == 200, f"Failed to delete source: {response.text}"
1331
1332 def get_job(self, job_id: str) -> Job:
1333 response = requests.get(f"{self.base_url}/{self.api_prefix}/jobs/{job_id}", headers=self.headers)

Callers 3

delete_sourceMethod · 0.45
deleteFunction · 0.45
load_directoryFunction · 0.45

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected