data_juicer_agents.tools.dev#

Developer/operator scaffolding tools.

class data_juicer_agents.tools.dev.DevUseCase[source]#

Bases: object

Generate and optionally smoke-check custom operator scaffolds.

static execute(*, intent: str, operator_name: str, output_dir: str, operator_type: str | None = None, from_retrieve: str | None = None, smoke_check: bool = False) Dict[str, Any][source]#
class data_juicer_agents.tools.dev.ScaffoldResult(operator_name: 'str', operator_type: 'str', class_name: 'str', output_dir: 'Path', generated_files: 'List[str]', summary_path: 'Path', notes: 'List[str]')[source]#

Bases: object

operator_name: str#
operator_type: str#
class_name: str#
output_dir: Path#
generated_files: List[str]#
summary_path: Path#
notes: List[str]#
__init__(operator_name: str, operator_type: str, class_name: str, output_dir: Path, generated_files: List[str], summary_path: Path, notes: List[str]) None#
data_juicer_agents.tools.dev.generate_operator_scaffold(intent: str, operator_name: str, output_dir: str, operator_type: str | None = None, from_retrieve_path: str | None = None) ScaffoldResult[source]#
data_juicer_agents.tools.dev.run_smoke_check(scaffold: ScaffoldResult) Tuple[bool, str][source]#