Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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"
Callers
15
stream
Function · 0.95
test_streamed_run_hooks_with_llm
Function · 0.45
test_streamed_run_hooks_llm_error
Function · 0.45
test_run_hooks_receives_turn_input_streamed
Function · 0.45
test_streamed_run_hooks_count_tool_and_handoff_invocations
Function · 0.45
test_input_guardrail_results_follow_completion_order
Function · 0.45
test_run_streamed_input_guardrail_timing_is_consistent
Function · 0.45
run_once
Function · 0.45
test_run_streamed_input_guardrail_tripwire_raises
Function · 0.45
test_parent_span_and_trace_finish_after_slow_input_guardrail
Function · 0.45
test_parent_span_and_trace_finish_after_slow_model
Function · 0.45
test_single_turn_model_error
Function · 0.45
Calls
no outgoing calls
Tested by
15
test_streamed_run_hooks_with_llm
Function · 0.36
test_streamed_run_hooks_llm_error
Function · 0.36
test_run_hooks_receives_turn_input_streamed
Function · 0.36
test_streamed_run_hooks_count_tool_and_handoff_invocations
Function · 0.36
test_input_guardrail_results_follow_completion_order
Function · 0.36
test_run_streamed_input_guardrail_timing_is_consistent
Function · 0.36
run_once
Function · 0.36
test_run_streamed_input_guardrail_tripwire_raises
Function · 0.36
test_parent_span_and_trace_finish_after_slow_input_guardrail
Function · 0.36
test_parent_span_and_trace_finish_after_slow_model
Function · 0.36
test_single_turn_model_error
Function · 0.36
test_multi_turn_no_handoffs
Function · 0.36