Skip to content

agno: workflow StepProgress event text leaks into workflow span output #862

Description

agno 3.1.0 added a workflow StepProgressEvent (event="StepProgress", with content and data) that function steps yield during a run.

_aggregate_workflow_chunks in py/src/braintrust/integrations/agno/tracing.py appends .content from every non-WorkflowCompleted chunk to the workflow output. With agno >= 3.1.0, progress text such as "fetched 3/10" gets mixed into the workflow span's output.

Fix

  • Skip chunks with event == "StepProgress" when building the output. Optionally record progress events in metadata.
  • Add a focused test with a function step that yields progress (cassette-backed if it makes model calls).

Parent: #858 (found while reviewing the 2026-10-05 weekly dependency update, #849).

🤖 Generated with Claude Code

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions