data_juicer_agents.tools.dj_dev_helpers module#
DataJuicer Development Tools
Tools for developing DataJuicer operators, including access to basic documentation and example code for different operator types.
- data_juicer_agents.tools.dj_dev_helpers.get_basic_files() ToolResponse[源代码]#
Get basic DataJuicer development files content.
Returns the content of essential files needed for DJ operator development: - base_op.py: Base operator class - DeveloperGuide.md: English developer guide - DeveloperGuide_ZH.md: Chinese developer guide
- 返回:
Combined content of all basic development files
- 返回类型:
ToolResponse
- async data_juicer_agents.tools.dj_dev_helpers.get_operator_example(operator_names: list) ToolResponse[源代码]#
Get example operators based on a list of operator names.
- 参数:
operator_names (list) -- List of operator names to get examples for
- 返回:
Example operator code and test files for the specified operators
- 返回类型:
ToolResponse
- data_juicer_agents.tools.dj_dev_helpers.configure_data_juicer_path(data_juicer_path: str) ToolResponse[源代码]#
Configure DataJuicer path. If the user provides the data_juicer_path, please use this method to configure it.
- 参数:
data_juicer_path (str) -- Path to DataJuicer installation
- 返回:
Configuration result
- 返回类型:
ToolResponse