haystack/releasenotes/notes/chatmessage-text-5bd06f6ac70ac649.yaml
Stefano Fiorucci fb1baf4921
refactor: ChatMessage - introduce text property and deprecate content (#8588)
* introduce text property and deprecate content

* release note

* minor test refactoring

---------

Co-authored-by: Michele Pangrazzi <xmikex83@gmail.com>
2024-11-28 09:53:02 +00:00

8 lines
407 B
YAML

---
deprecations:
- |
In Haystack 2.9.0, the `ChatMessage` dataclass will be refactored to make it more flexible and future-proof.
As part of this change, the `content` attribute will be removed.
A new `text` property has been introduced to provide access to the textual value of the `ChatMessage`.
To ensure a smooth transition, start using the `text` property now in place of `content`.