Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkbrnd committed Feb 12, 2025
1 parent ac562e0 commit b634bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/agno/agno/models/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_content_string(self) -> str:
return self.content
if isinstance(self.content, list):
if len(self.content) > 0 and isinstance(self.content[0], dict) and "text" in self.content[0]:
return self.content[0].get("text")
return self.content[0].get("text", "")
else:
return json.dumps(self.content, indent=2)
return ""
Expand Down

0 comments on commit b634bf6

Please sign in to comment.