Download services/discovery_assembler.py from AnthropicallyHuggingFaces/legalsync: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/spaces/AnthropicallyHuggingFaces/legalsync/resolve/main/services/discovery_assembler.py
- Command line
-
hf download hf://spaces/AnthropicallyHuggingFaces/legalsync/services/discovery_assembler.py
-
curl -L -o discovery_assembler.py https://huggingface.co/spaces/AnthropicallyHuggingFaces/legalsync/resolve/main/services/discovery_assembler.py
581 Bytes
| """ | |
| Discovery Assembler — builds discovery packets per Art 39.14 (Texas). | |
| Compliance schema: schemas/discovery_packet_schema.json. | |
| """ | |
| class DiscoveryAssembler: | |
| def assemble(self, case_id, transcripts=None, bodycams=None): | |
| transcripts = transcripts or [] | |
| bodycams = bodycams or [] | |
| return { | |
| "case_id": case_id, | |
| "packet_schema": "discovery_packet_schema.json", | |
| "contents": list(transcripts) + list(bodycams), | |
| "compliance": "Art 39.14", | |
| "audit": "elasticsearch://legalsync-audit", | |
| } | |