INNER CODE UNIT · Python

get_samples

416rehman/DeepZero · src/deepzero/api/server.py:63

    async def get_samples(request: Request) -> JSONResponseType:
        samples = await _run_sync(store.list_samples)

        # filtering
        verdict = request.query_params.get("verdict")
        stage = request.query_params.get("stage")
        status_filter = request.query_params.get("status")

        results = []
        for s in samples:
            # classification lives in the stage data dicts, not a top-level attribute
            classification = _extract_classification(s)

            if verdict and classification != verdict:
                continue
            if stage and s.current_stage != stage:
                continue
            if status_filter:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…