Agentic
Human-in-the-loop ML pipeline management.
All methods are accessed via client.agentic.
start_run()
Start a new agentic ML training pipeline run. This initiates the full ML workflow: data preparation -> label selection -> feature engineering -> model training -> deployment -> reporting -> monitoring. The pipeline will pause at each phase listed in require_approval and wait for a decision via submit_decision().
Parameters
''FalseNoneTrueFalseNoneNoneNoneReturns
StartRunResponse — StartRunResponse with run_id and status
Example
get_run_state()
Get the current state of an agentic pipeline run. Use this to poll for run status and see current phase, progress, and results.
Parameters
Returns
dict — Dict with run state including current phase, status, and any results
Example
get_pending_decision()
Check if the pipeline is waiting for a human decision. When the pipeline reaches a phase listed in require_approval, it pauses and creates a pending decision. Call this to see what decision is needed, then use submit_decision() to provide your choice.
Parameters
Returns
dict — Decision info dict with decision_type, options, and context, or None if no decision pending
Example
submit_decision()
Submit a decision for a pending approval in the pipeline. The required fields depend on the decision_type from get_pending_decision(). Common patterns: - Label selection: decision_type="label_selection", choice_index=N - Feature engineering: decision_type="feature_engineering", apply_indices=[...], skip_indices=[...] - Model training: decision_type="model_training", choice_index=N - Deployment: decision_type="model_deployment", action="approve" or "skip" - Report: decision_type="report_creation", report_config={...} - Monitoring: decision_type="monitoring_creation", monitoring_config={...}
Parameters
NoneNoneNoneNoneNoneNoneNoneNoneNoneNoneNoneNoneNoneReturns
SubmitDecisionResponse — SubmitDecisionResponse with status
Example
get_phases()
Get the phase execution history for a run.
Parameters
Returns
list — List of phase status dicts with phase name, status, timestamps, and any errors
Example
cancel_run()
Cancel a running agentic pipeline.
Parameters
Returns
CancelRunResponse — CancelRunResponse with success status
Example
skip_phase()
Skip the current phase and move to the next.
Parameters
Returns
SkipPhaseResponse — SkipPhaseResponse with skipped_phase and next_phase
Example
resume_run()
Resume a paused run (e.g., after a timed-out decision was auto-resolved).
Parameters
Returns
dict — Resume result dict
Example
send_chat()
Send a chat message to the agentic pipeline and get a response. Use this to ask questions about the current state of the run, request explanations, or provide additional context.
Parameters
Returns
ChatMessageResponse — ChatMessageResponse with the pipeline's reply
Example
get_chat_history()
Get the chat history for a pipeline run.
Parameters
Returns
list — List of chat messages with role, content, and timestamp
Example
retrain()
Retrain a completed run with optional new preprocessing steps or parameters.
Parameters
NoneReturns
dict — Retrain result dict
Example
get_preprocessing_dag()
Get the preprocessing DAG (directed acyclic graph) visualisation data for a run. Shows how preprocessing steps are connected and their order of execution.
Parameters
Returns
dict — DAG data dict with nodes and edges
Example
get_column_lineage()
Get column lineage graph for the run's preprocessing. Shows how columns are transformed through the preprocessing pipeline.
Parameters
Returns
dict — Column lineage data dict