Bin
2025-12-17 d616898802dfe7e5dd648bcf53c6d1f86b6d3642
1
2
3
4
5
6
7
8
9
from typing import Sequence, Tuple
 
 
def sdk_logs(caplog) -> Sequence[Tuple[str, str, str]]:
    """
    Get the SDK logs from the passed caplog fixture. Useful for asserting on SDK log output.
    """
 
    return [record_tuple for record_tuple in caplog.record_tuples if record_tuple[0].startswith('label_studio_sdk.')]