Method
delete_file_from_source
(self, source_id: str, file_id: str)
Source from the content-addressed store, hash-verified
| 1384 | return job |
| 1385 | |
| 1386 | def delete_file_from_source(self, source_id: str, file_id: str) -> None: |
| 1387 | response = requests.delete(f"{self.base_url}/{self.api_prefix}/sources/{source_id}/{file_id}", headers=self.headers) |
| 1388 | if response.status_code not in [200, 204]: |
| 1389 | raise ValueError(f"Failed to delete tool: {response.text}") |
| 1390 | |
| 1391 | def create_source(self, name: str, embedding_config: Optional[EmbeddingConfig] = None) -> Source: |
| 1392 | """ |
Callers
nothing calls this directly
Tested by
no test coverage detected