async def collect_stream_output(stream):
    """Collect all output from a stream into a list."""
    output = []
    async for event in stream:
        output.append(event)
    return output
Collect all output from a stream into a list.
py/tests/unit/agent/test_agent_citations_old.py