-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor:
ChatMessage
- introduce text
property and deprecate `co…
…ntent` (#8588) * introduce text property and deprecate content * release note * minor test refactoring --------- Co-authored-by: Michele Pangrazzi <[email protected]>
- Loading branch information
1 parent
51c1390
commit fb1baf4
Showing
3 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters