InsightMLFlow has eight agents, each responsible for one bounded part of the ML lifecycle. You can call each one directly from its page or API, or describe what you want and let the orchestrator choose. This article explains how that choice is made and what each agent is responsible for.
Routing in two steps
- Intent by language model. The orchestrator asks the configured language model which agent should handle the request, from the list of registered agents. If the answer is not one of them, it falls back to the first agent.
- Keywords if the model is unavailable. If the model call fails, each agent is scored by how many of its keywords appear in the request ("profile", "missing values" for data; "drift", "PSI" for monitoring, and so on). The highest score wins; with no match at all, the first registered agent is used.
The choice of agent is written to the server log; see the section on what is recorded, below.
Examples of routing
| You ask | Routed to |
|---|---|
| "Profile the March claims extract and tell me what's wrong with it" | Data agent |
| "Which features matter most for churn?" | Feature agent |
| "What algorithm should I use for weekly demand?" | Model agent |
| "Submit this training script and tell me if it overfits" | Training agent |
| "Is the scoring data drifting from training?" | Monitoring agent |
If a request lands on the wrong agent, call the right one directly; each agent also has its own endpoint and page.
Who does what
| Agent | Responsible for | Computed in code | Written by the language model |
|---|---|---|---|
| Data | Dataset profiling and quality | Statistics, histograms, correlations, quality issues | Summary, recommendations, EDA code, answers to questions |
| Feature | Feature relevance and redundancy | Mutual information, VIF, highly correlated pairs | Engineered-feature suggestions with pandas code |
| Model | Choosing an approach | — | Algorithm recommendations, training and comparison scripts |
| Training | Running and reading training jobs | Job submission to OCI Data Science; rule-based metric checks | Analysis of the metrics |
| Notebook | Notebooks for a use case | — | Notebook cells (nbformat) |
| Pipeline | Multi-step pipelines | Submission to OCI Data Science pipelines | Pipeline design from a description |
| Challenger | Champion vs challenger | Accuracy, precision, recall, F1, AUC on holdout | Interpretation and recommendation |
| Monitoring | Drift | PSI, KS, chi-squared | Root-cause narrative |
The pattern is deliberate. Numbers that decide something (a null rate, a VIF, a PSI) come from code that gives the same answer every time. The language model explains them, proposes next steps, and writes code for a person to review and run.
Without a language model
The agents degrade rather than disappear when no model is configured or a call fails:
- Routing uses keyword scoring.
- The data agent still computes the full profile; only the narrative is missing.
- The feature agent still returns importance and VIF, and reports that AI analysis is unavailable; suggestions need the model.
- The training agent falls back to rule-based metric checks, such as the gap between training and validation accuracy.
- The model agent's recommendations and code need the model.
Language models come from OCI Generative AI or OpenAI, configured with your own credentials.
Why bounded agents
A single general assistant that "does MLOps" is hard to trust because nobody can say what it will do next. Eight agents, each with a fixed set of actions and inputs (a dataset, a profile id, a model and a monitoring configuration), are easier to reason about: you know what the data agent can touch, what the training agent can submit, and that none of them promotes a model on its own.
How keyword routing behaves, worked through
The keyword fallback is simple enough to predict by hand, and worth predicting, because it is what runs when the model call fails. Each agent's score is the number of its keywords found anywhere in the request, as substrings, so “training” counts as “train” and “features” as “feature”.
| Request | Keyword scores | Result |
|---|---|---|
| "Is the scoring data drifting from training?" | Monitoring 2 (drift, data drift); training 1 (train) | Monitoring agent |
| "Profile the dataset and suggest features" | Data 2 (profile, dataset); feature 2 (feature, suggest feature) | Data agent: a tie goes to the agent listed first |
| "Train a model and check it for drift" | Training 1 (train); monitoring 1 (drift) | Training agent, again by order |
| "What should we do next?" | No matches | The first registered agent |
Two practical consequences. Ties are settled by the order the agents are listed in, not by meaning, so a request that mixes two stages is better split into two. And because matching is by substring, a word can count for an agent you did not intend; if routing matters, name the task plainly (“profile”, “feature importance”, “drift”, “submit job”) or call the agent directly.
Agents that call each other
Some actions hand work to another agent through the orchestrator rather than doing it themselves. The challenger agent's “train a challenger” action asks the model agent for algorithm recommendations and the training agent to submit the job. The monitoring agent's retraining trigger records the trigger and, when a pipeline is named, asks the pipeline agent to run it, then stores the pipeline run's id on the trigger, so the chain can be followed from the trigger record.
What is recorded
The orchestrator has an event log for audit: each event records its type, the agent that sent it, the agent it was for and its payload. Alongside it, every agent stores what it produces (a profile, a feature analysis, a run, a challenger record, a drift report, a retraining trigger), and those are the records to rely on in a review. To pin a request to one agent, call that agent directly rather than through routing.
Questions
Can an agent change production on its own?
No agent changes a registry status, a production flag or deployment traffic. The training and pipeline agents can submit jobs to OCI Data Science when asked, which is why generated code should be reviewed before it is submitted.
Can we add our own agent?
Agents are registered with the orchestrator in code, each with its own keywords and actions. Adding one is a development task, not a configuration setting.