Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add execute_workflow_and_wait + workflow execution examples#451

Merged
mistralai-nfau merged 4 commits into
antoinehoorelbeke/migrate-workflows-client-core-mistralaifrom
nfau/execute-and-wait
Mar 27, 2026
Merged

Add execute_workflow_and_wait + workflow execution examples#451
mistralai-nfau merged 4 commits into
antoinehoorelbeke/migrate-workflows-client-core-mistralaifrom
nfau/execute-and-wait

Conversation

@mistralai-nfau

@mistralai-nfau mistralai-nfau commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Add execute_workflow_and_wait / execute_workflow_and_wait_async helper methods to execute a workflow and wait for completion.

Also added some workflow execution examples

@mistralai-nfau mistralai-nfau requested a review from anth2o March 27, 2026 14:40
Comment thread src/mistralai/client/workflows.py Outdated

@HHK1 HHK1 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 question on the task queue parameter

@mistralai-nfau mistralai-nfau merged commit 78e7337 into antoinehoorelbeke/migrate-workflows-client-core-mistralai Mar 27, 2026
anth2o pushed a commit that referenced this pull request Mar 30, 2026
* Add execute_workflow_and_wait feature

* Add workflow execution examples

* Fix SDK generation issue

* Do not include deprecated task-queue param anymore
anth2o added a commit that referenced this pull request Mar 30, 2026
* ## Python SDK Changes:
* `mistral.models.list()`:  `response.data[].union(fine-tuned).job` **Changed** (Breaking ⚠️)
* `mistral.beta.connectors.list_tools()`:  `response` **Changed** (Breaking ⚠️)
* `mistral.models.update()`:  `response` **Changed** (Breaking ⚠️)
* `mistral.models.retrieve()`:  `response.union(fine-tuned).job` **Changed** (Breaking ⚠️)
* `mistral.workflows.metrics.get_workflow_metrics()`: **Added**
* `mistral.workflows.get_workflow()`: **Added**
* `mistral.workflows.update_workflow()`: **Added**
* `mistral.workflows.get_workflow_registration()`: **Added**
* `mistral.workflows.archive_workflow()`: **Added**
* `mistral.workflows.unarchive_workflow()`: **Added**
* `mistral.workflows.executions.get_workflow_execution()`: **Added**
* `mistral.workflows.executions.get_workflow_execution_history()`: **Added**
* `mistral.workflows.executions.signal_workflow_execution()`: **Added**
* `mistral.workflows.executions.query_workflow_execution()`: **Added**
* `mistral.workflows.executions.terminate_workflow_execution()`: **Added**
* `mistral.workflows.executions.batch_terminate_workflow_executions()`: **Added**
* `mistral.workflows.executions.cancel_workflow_execution()`: **Added**
* `mistral.workflows.executions.batch_cancel_workflow_executions()`: **Added**
* `mistral.workflows.executions.reset_workflow()`: **Added**
* `mistral.workflows.executions.update_workflow_execution()`: **Added**
* `mistral.workflows.executions.get_workflow_execution_trace_otel()`: **Added**
* `mistral.workflows.executions.get_workflow_execution_trace_summary()`: **Added**
* `mistral.workflows.executions.get_workflow_execution_trace_events()`: **Added**
* `mistral.workflows.executions.stream()`: **Added**
* `mistral.workflows.runs.get_run()`: **Added**
* `mistral.batch.jobs.delete()`: **Added**
* `mistral.workflows.runs.list_runs()`: **Added**
* `mistral.workflows.runs.get_run_history()`: **Added**
* `mistral.workflows.schedules.get_schedules()`: **Added**
* `mistral.workflows.schedules.schedule_workflow()`: **Added**
* `mistral.workflows.schedules.unschedule_workflow()`: **Added**
* `mistral.workflows.events.receive_workflow_event()`: **Added**
* `mistral.workflows.events.receive_workflow_events_batch()`: **Added**
* `mistral.workflows.events.get_stream_events()`: **Added**
* `mistral.workflows.events.get_workflow_events()`: **Added**
* `mistral.workflows.deployments.list_deployments()`: **Added**
* `mistral.workflows.deployments.get_deployment()`: **Added**
* `mistral.events.receive_workflow_event()`: **Added**
* `mistral.events.receive_workflow_events_batch()`: **Added**
* `mistral.events.get_stream_events()`: **Added**
* `mistral.events.get_workflow_events()`: **Added**
* `mistral.audio.voices.list()`:  `request.type` **Added**
* `mistral.workflows.execute_workflow_registration()`: **Added**
* `mistral.workflows.execute_workflow()`: **Added**
* `mistral.workflows.get_workflow_registrations()`: **Added**
* `mistral.beta.libraries.list()`: 
  *  `request` **Changed**
  *  `response.pagination` **Added**
  *  `error.status[422]` **Added**
* `mistral.beta.connectors.call_tool()`:  `request.credentials_name` **Added**
* `mistral.workflows.get_workflows()`: **Added**

* chore: align pyproject.toml and uv.lock to version 2.2.0rc1

* Add execute_workflow_and_wait + workflow execution examples (#451)

* Add execute_workflow_and_wait feature

* Add workflow execution examples

* Fix SDK generation issue

* Do not include deprecated task-queue param anymore

* rename wait_for_workflow_completion as public method

---------

Co-authored-by: speakeasybot <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Nicolas Faurie <[email protected]>
Co-authored-by: Antoine Hoorelbeke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants