fix: GoogleAI - fix the content type of ChatMessage
content
from function
#1241
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issues
ChatMessage
to usetext
instead ofcontent
#1236 (accessingtext
instead ofcontent
)content
is adict
instead ofstr
(see HaystackChatMessage
definition). This happened also because in integrations we skipping mypy checks for Haystack (this is not easy to fix) - seehaystack-core-integrations/integrations/google_ai/pyproject.toml
Lines 150 to 153 in 9283065
Proposed Changes:
text
instead ofcontent
to access the textHow did you test it?
CI
Notes for the reviewer
ChatMessage
+Tool
are adopted, we should refactor the tool calling section of this Chat Generator and I'm confident that we can handle it betterChecklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.