Change8

v2.4.5

Breaking Changes
📦 mistral-clientView on GitHub →
5 breaking1 features🔧 6 symbols

Summary

This release introduces a new field in the authentication methods endpoint and contains several breaking changes related to response structures in workflow and event streaming/retrieval methods.

⚠️ Breaking Changes

  • The structure of the response for `mistral.workflows.executions.stream()` has changed. Specifically, the path `response.[].data.data.union(CustomTaskInProgressResponse).attributes.payload` is modified.
  • The structure of the response for `mistral.workflows.events.get_stream_events()` has changed in the `response.[].data.data` field.
  • The structure of the response for `mistral.workflows.events.get_workflow_events()` has changed in the `response.events[]` field.
  • The structure of the response for `mistral.events.get_stream_events()` has changed. Specifically, the path `response.[].data.data.union(CustomTaskInProgressResponse).attributes.payload` is modified.
  • The structure of the response for `mistral.events.get_workflow_events()` has changed in the `response.events[]` field.

Migration Steps

  1. Review and update code that consumes the response from `mistral.workflows.executions.stream()` to reflect the change in `response.[].data.data.union(CustomTaskInProgressResponse).attributes.payload`.
  2. Review and update code that consumes the response from `mistral.workflows.events.get_stream_events()` to reflect the change in `response.[].data.data`.
  3. Review and update code that consumes the response from `mistral.workflows.events.get_workflow_events()` to reflect the change in `response.events[]`.
  4. Review and update code that consumes the response from `mistral.events.get_stream_events()` to reflect the change in `response.[].data.data.union(CustomTaskInProgressResponse).attributes.payload`.
  5. Review and update code that consumes the response from `mistral.events.get_workflow_events()` to reflect the change in `response.events[]`.

✨ New Features

  • Added `has_default_credentials` field to the response of `mistral.beta.connectors.get_authentication_methods()`.

Affected Symbols