List Runs
from mistralai.client import Mistral
import os
with Mistral(
api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:
res = mistral.workflows.runs.list_runs(page_size=50)
while res is not None:
# Handle items
res = res.next()
| Parameter |
Type |
Required |
Description |
workflow_identifier |
OptionalNullable[str] |
➖ |
Filter by workflow name or id |
search |
OptionalNullable[str] |
➖ |
Search by workflow name, display name or id |
status |
OptionalNullable[models.ListRunsV1WorkflowsRunsGetStatus] |
➖ |
Filter by workflow status |
page_size |
Optional[int] |
➖ |
Number of items per page |
next_page_token |
OptionalNullable[str] |
➖ |
Token for the next page of results |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.ListRunsV1WorkflowsRunsGetResponse
| Error Type |
Status Code |
Content Type |
| errors.HTTPValidationError |
422 |
application/json |
| errors.SDKError |
4XX, 5XX |
*/* |
Get Run
from mistralai.client import Mistral
import os
with Mistral(
api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:
res = mistral.workflows.runs.get_run(run_id="553b071e-3d04-46aa-aa9a-0fca61dc60fa")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
run_id |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.WorkflowExecutionResponse
| Error Type |
Status Code |
Content Type |
| errors.HTTPValidationError |
422 |
application/json |
| errors.SDKError |
4XX, 5XX |
*/* |
Get Run History
from mistralai.client import Mistral
import os
with Mistral(
api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:
res = mistral.workflows.runs.get_run_history(run_id="f7296489-0212-4239-9e35-12fabfe8cd11", decode_payloads=True)
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
run_id |
str |
✔️ |
N/A |
decode_payloads |
Optional[bool] |
➖ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
Any
| Error Type |
Status Code |
Content Type |
| errors.HTTPValidationError |
422 |
application/json |
| errors.SDKError |
4XX, 5XX |
*/* |