A medical-imaging analysis system comprising one or more processors and memory storing instructions that, when executed, cause the system to:
- receive medical imaging data in a scan intake agent;
- preprocess the imaging data in a preprocessing agent;
- perform inference using a trained neural-network model to generate inference outputs, wherein the inference outputs include one or more attribution tensors;
- store the inference outputs in a shared-state memory object;
- select, by an orchestration agent, one or more specialized agents from a plurality of specialized agents based on workflow-graph routing logic and confidence values associated with the inference outputs stored in the shared-state memory object, wherein the one or more specialized agents includes an explainability agent;
- execute the selected specialized agents, wherein the execution of the selected specialized agents comprises:
- storing one or more agent outputs of the selected specialized agents in the shared-state memory object, wherein the one or more agents outputs include one or more explainability-related artifacts generated by the explainability agent;
- and
- continuing, by the orchestration agent, execution of the selected specialized agents based on the one or more agent outputs stored in the shared-state memory object and the workflow-graph logic;
- and
- generate a clinical output based on outputs of the selected specialized agents.