convert_logs_oai_sft( )¶
Main function to convert Inspect AI evaluation logs to OpenAI fine-tuning format.
| PARAMETER | DESCRIPTION |
|---|---|
paths_to_convert
|
List of paths (files or directories) to convert |
target_dir
|
Target directory for output JSONL files |
require_submit
|
Only include trajectories where submit() was called
TYPE:
|
preserve_structure
|
Preserve directory structure in output
TYPE:
|
cut_after_submit
|
Cut conversation after submit tool response
TYPE:
|
override_system_prompt
|
Optional system prompt to override the original |
only_used_tools
|
Only include tools that were actually used in the conversation
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Dict[str, Any]
|
Dict containing conversion statistics and results |