Skip to content

convert_logs( )

Convert multiple Inspect AI evaluation logs to default format.

PARAMETER DESCRIPTION
paths_to_convert

List of paths (files or directories) to convert

TYPE: List[Union[str, Path]]

target_dir

Target directory for output JSONL files

TYPE: Union[str, Path]

require_submit

Only include samples where submit() was called

TYPE: bool DEFAULT: False

preserve_structure

Preserve directory structure in output

TYPE: bool DEFAULT: True

RETURNS DESCRIPTION
Dict[str, Any]

Dict containing conversion statistics and results