MCPcopy
hub / github.com/openai/openai-agents-python / stream_events

Method stream_events

tests/fastapi/streaming_app.py:28–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 self.result = result
27
28 async def stream_events(self) -> AsyncIterator[str]:
29 async for event in self.result.stream_events():
30 yield f"{event.type}\n\n"

Calls

no outgoing calls