Skip to content

Commit

Permalink
Merge branch 'main' into tool-dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Dec 17, 2024
2 parents 65e73fd + ea36026 commit 8a87019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/dataclasses/chat_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __new__(cls, *args, **kwargs):
allowed_content_types = (TextContent, ToolCall, ToolCallResult)
if len(args) > 1 and not isinstance(args[1], allowed_content_types):
raise TypeError(
"The `_content` parameter of `ChatMessage` must be a one of the following types: "
"The `_content` parameter of `ChatMessage` must be one of the following types: "
f"{', '.join(t.__name__ for t in allowed_content_types)}. "
f"{general_msg}"
)
Expand Down

0 comments on commit 8a87019

Please sign in to comment.