solvers.imports
import_chat
Import chat history from exported data.
@solver
def import_chat(
import_dir: str,
input_folder: str = "chat",
message_offset: int = 1,
) -> Solverimport_dirstr-
Directory containing the per-sample exports with a root config.yaml file
input_folderstr-
Name of the folder within
import_dircontaining achat_history.jsonfile message_offsetint-
Number of initial messages to skip when injecting chat history (default: 1)
Returns
Solver that imports the chat history
import_sandbox_files
Import files into the sandbox.
@solver
def import_sandbox_files(
import_dir: str,
input_folder: str = "files",
sandbox_path: str = "/workspace",
setup_repo: bool = False,
) -> Solverimport_dirstr-
Directory containing the per-sample exports with a root config.yaml file
input_folderstr-
Name of the folder containing the files to import
sandbox_pathstr-
Path to the sandbox workspace to import the files to (default: “/workspace”)
setup_repobool-
Whether to run the
setup_reposolver after importing the files
Returns
Solver that imports the files into the sandbox
import_store
Import store data from a store_data.json or store_data.yaml file.
@solver
def import_store(
import_dir: str,
input_folder: str = "store",
include_keys: Sequence[str] | None = None,
exclude_keys: Sequence[str] | None = None,
) -> Solverimport_dirstr-
Directory containing the per-sample exports with a root config.yaml file
input_folderstr-
Name of the folder containing the store data to import
include_keysSequence[str] | None-
Sequence of store keys to include (if None, includes all available keys)
exclude_keysSequence[str] | None-
Sequence of store keys to exclude (default: None)
Returns
Solver that imports the store data