Skip to content

Commit dc7af94

Browse files
committed
style: format exporter.py
1 parent 8f0249a commit dc7af94

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

posthog/ai/otel/exporter.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,10 @@ def _is_generation_span(self, span_name: str, attrs: Dict[str, Any]) -> bool:
284284

285285
def _is_agent_span(self, span_name: str, attrs: Dict[str, Any]) -> bool:
286286
"""Check if span represents an agent run."""
287-
return span_name in ("agent run", "invoke_agent") or attrs.get(
288-
GenAIAttributes.AGENT_NAME
289-
) is not None
287+
return (
288+
span_name in ("agent run", "invoke_agent")
289+
or attrs.get(GenAIAttributes.AGENT_NAME) is not None
290+
)
290291

291292
def _is_tool_span(self, span_name: str, attrs: Dict[str, Any]) -> bool:
292293
"""Check if span represents a tool/function execution."""

0 commit comments

Comments
 (0)