data_juicer_agents.capabilities#
Scenario capabilities for DJX orchestration.
- class data_juicer_agents.capabilities.PlanOrchestrator(*, planner_model_name: str | None = None, llm_api_key: str | None = None, llm_base_url: str | None = None, llm_thinking: bool | None = None)[源代码]#
基类:
objectFixed orchestration for CLI plan generation.
- class data_juicer_agents.capabilities.ApplyUseCase[源代码]#
基类:
objectExecute validated plans and return execution summaries.
- execute(plan_payload: Dict[str, Any], runtime_dir: Path, dry_run: bool = False, timeout_seconds: int = 300, command_override: str | Iterable[str] | None = None, cancel_check: Callable[[], bool] | None = None) Tuple[ApplyResult, int, str, str][源代码]#
- class data_juicer_agents.capabilities.DevUseCase[源代码]#
基类:
objectGenerate and optionally smoke-check custom operator scaffolds.
- class data_juicer_agents.capabilities.DJSessionAgent(use_llm_router: bool = True, dataset_path: str | None = None, export_path: str | None = None, working_dir: str | None = None, verbose: bool = False, api_key: str | None = None, base_url: str | None = None, model_name: str | None = None, thinking: bool | None = None, event_callback: Callable[[Dict[str, Any]], None] | None = None, enable_streaming: bool = False)[源代码]#
基类:
objectSession agent that orchestrates djx atomic commands via ReAct tools.
- __init__(use_llm_router: bool = True, dataset_path: str | None = None, export_path: str | None = None, working_dir: str | None = None, verbose: bool = False, api_key: str | None = None, base_url: str | None = None, model_name: str | None = None, thinking: bool | None = None, event_callback: Callable[[Dict[str, Any]], None] | None = None, enable_streaming: bool = False) None[源代码]#
- async handle_message_async(message: str) SessionReply[源代码]#
- async handle_as_studio_turn_async(inbound_msg: Any, emit_chunk: Callable[[Any, bool], Awaitable[None] | None]) _StudioTurnResult[源代码]#
- handle_message(message: str) SessionReply[源代码]#
- class data_juicer_agents.capabilities.SessionReply(text: 'str', thinking: 'str' = '', stop: 'bool' = False, interrupted: 'bool' = False)[源代码]#
基类:
object- text: str#
- thinking: str = ''#
- stop: bool = False#
- interrupted: bool = False#
- __init__(text: str, thinking: str = '', stop: bool = False, interrupted: bool = False) None#