Learning resourcesReviewed · Mistral AI

Mistral Workflows: Child workflows

This Mistral Workflows guide helps Python developers build nested workflows, but each child adds a separate execution record, event history and retry policy. It explains when that independence is useful, how to wait for results or let children continue separately, and how to trace related executions.

Researched 15 Nov 2026

In short.

This Mistral Workflows guide is for Python developers who need independently tracked subprocesses, with more overhead than using an activity. It covers awaited child execution, starting children without waiting, parent-close policies and event identifiers for following a workflow tree. Its practical distinction is whether a subprocess needs its own durable history and independent management. Installation, worker configuration, pricing and licence terms are absent, and the examples were not executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected page at [https://docs.mistral.ai/studio/workflows/building-workflows/sub_workflows.md], including its comparison table, examples, parent-close policies and event descriptions. Linked pages, including the workflow-tree event subscription guide, are excluded. No licence notice appears in the selected page. All runtime behavior remains untested.

The overview

Identity

Child workflows is a feature guide in the Mistral Studio Workflows documentation. It teaches hierarchical orchestration: a parent workflow launches another workflow as a child. The resource is documentation with Python examples, rather than a standalone application or downloadable workflow package. Original page: [https://docs.mistral.ai/studio/workflows/building-workflows/sub_workflows.md].

Assessment

The guide is useful for deciding where a subprocess deserves its own execution history. It connects that decision to concrete needs: long-running work, independent retries, external inspection or control, and execution on another worker or deployment. It recommends starting with an activity when those needs do not apply.

The examples establish the documented API pattern, but the page does not establish production reliability, performance or deployment readiness.

Users

The main audience is developers using Mistral Workflows who need to divide a larger process into independently managed subprocesses. This includes work that needs separate retries, an inspectable history or a different worker.

Beginners get a clear comparison with activities, but the code assumes familiarity with asynchronous Python, decorators and Pydantic parameter models. It does not teach those prerequisites.

Capabilities

A parent can execute a child and await its result, or pass wait=False to continue without waiting. The latter returns a handle that can optionally be awaited later.

The guide also describes parent-close policy configuration, separate execution IDs and histories, and event fields that connect children to their parent and root execution. It identifies external inspection, signals, queries and separate worker placement as reasons to choose a child, without demonstrating their setup.

Using it

Requirements

The examples require Python, the mistralai.workflows module, Pydantic and asynchronous execution. The timeout snippets also use timedelta. The page does not specify package versions, supported Python versions, credentials, account permissions or worker infrastructure.

Mechanism

A child receives its own execution record, event history and retry policy. This provides a separate durable history that can be replayed independently, at greater orchestration overhead than an activity.

With wait=False, the documented default parent-close policy is ABANDON, allowing the child to continue after its parent completes. A snippet shows overriding that policy with ParentClosePolicy.TERMINATE.

Events contain workflow_context.parent_workflow_exec_id and workflow_context.root_workflow_exec_id. Filtering by the root ID allows a subscriber to follow a parent and its descendants. A top-level execution has a null parent ID and uses its own execution ID as the root ID.

Setup

The basic example imports mistralai.workflows as workflows, defines Pydantic input models, decorates workflow classes with workflows.workflow.define and marks their run methods with workflows.workflow.entrypoint. The parent calls workflows.execute_workflow with the child class and its parameters.

Installation, authentication, worker startup and deployment steps are not provided. The example defines an asynchronous main function but does not show invoking it.

Example

The parent receives the string hello and passes it to ChildWorkflow. The child awaits a process_item activity that adds the prefix processed:. The parent then adds Parent got: to the returned string. The documentation displays Parent got: processed:hello as the output.

This illustrates parameter passing and returning a child result. It contains no actual model call, database operation or external API request. The displayed output comes from the documentation; the example was not executed.

Assessment & evidence

Limitations

The page does not document retry configuration, detailed failure propagation, cancellation behavior or timeout semantics. The page does not show how to subscribe to these events; it links to a separate Consuming Streaming Events guide for that pattern.

The later snippets call workflow.execute_workflow, whereas the basic example imports the module as workflows. Those snippets also rely on surrounding definitions such as child_params and timedelta. Their intended calling context and imports need clarification before adaptation.

Reasoning

The strongest reason to use a child is a concrete need to manage or observe a subprocess independently. A single retriable side effect offers less justification for the additional execution history and lifecycle policy. The guide supports this architectural distinction, but does not establish latency, throughput, reliability or cost advantages.

Alternatives

The guide's explicit alternative is an activity. It recommends activities for individual database writes, API requests or LLM calls that should be retried as one unit and do not need independent external visibility. Other orchestration products are not compared.

Evidence

The evidence is the complete Child workflows documentation page at [https://docs.mistral.ai/studio/workflows/building-workflows/sub_workflows.md]. It includes an activity-versus-child comparison, Python examples, lifecycle policy notes and event identifier descriptions.

These are documented behaviors and illustrative output. No execution, deployment, performance measurement or operational verification was performed.

Access & freshness

Costs

Pricing, billing units, subscription requirements and usage limits are unknown from this page. It describes additional execution records, histories and retry policies, but supplies no measurements or rates from which to calculate their monetary or infrastructure cost.

Rights

The selected page includes no licence or redistribution notice. Permission to redistribute the documentation or reuse its example code, and any applicable service terms, are unknown from this evidence.

Freshness

The page was captured on 15 November 2026 at 08:06:19 UTC. It supplies no publication date, last-updated date or SDK version. Compatibility with a particular installed release and changes after capture are unknown.

Actions

First decide whether the subprocess needs its own history, retries, external control or worker placement. If it does, choose whether the parent should await the result and what should happen to the child when the parent closes. Review the default ABANDON behavior before using wait=False.

Before implementation, resolve the snippet calling context and obtain the missing installation, authentication, worker configuration, failure-handling, pricing and licence details.

Evidence for this report

selected-page.txtselected · checked 2026-11-15