Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkbrnd committed Feb 18, 2025
1 parent 044865e commit 775f4f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/agno/agno/run/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ class RunResponse:
created_at: int = field(default_factory=lambda: int(time()))

def to_dict(self) -> Dict[str, Any]:
_dict = {k: v for k, v in asdict(self).items() if v is not None and k != "messages"}
_dict = {k: v for k, v in asdict(self).items() if v is not None and k not in ["messages",
"extra_data",
"images",
"videos",
"audio",
"response_audio"]}
if self.messages is not None:
_dict["messages"] = [m.to_dict() for m in self.messages]

Expand Down

0 comments on commit 775f4f8

Please sign in to comment.