Read document bytes from an arbitrary source bucket 🟩

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-08 09:42:37 +00:00
parent 0a09b56425
commit 79fa46d97c

View file

@ -16,4 +16,6 @@ class S3DocumentBytesReader:
self._client = boto_s3_client
def read(self, bucket: str, key: str) -> bytes:
raise NotImplementedError
response: dict[str, Any] = self._client.get_object(Bucket=bucket, Key=key)
body: bytes = response["Body"].read()
return body