diff --git a/src/agents/tracing/span_data.py b/src/agents/tracing/span_data.py index d109ee5ead..785c85afa5 100644 --- a/src/agents/tracing/span_data.py +++ b/src/agents/tracing/span_data.py @@ -161,7 +161,7 @@ def export(self) -> dict[str, Any]: "type": self.type, "name": self.name, "input": self.input, - "output": str(self.output) if self.output else None, + "output": str(self.output) if self.output is not None else None, "mcp_data": self.mcp_data, }