data_juicer_agents.tools.plan.build_system_spec.logic module#
Pure logic for build_system_spec.
- data_juicer_agents.tools.plan.build_system_spec.logic.build_system_spec(*, custom_operator_paths: Iterable[Any] | None = None, np: int | None = None, executor_type: str | None = None, **kwargs: Any) Dict[str, Any][源代码]#
Build system spec with complete config dynamically loaded from Data-Juicer.
This function now loads ALL system configuration fields from Data-Juicer, ensuring automatic sync with any upstream changes.
- 参数:
custom_operator_paths -- Optional list of custom operator paths
np -- Optional number of processes
executor_type -- Optional executor type
**kwargs -- Any additional system config options (must be valid DJ system config fields — unknown keys will raise ValueError)
- 返回:
Dict containing the built system spec and validation results