---
type: email
from: Yang Zhi <notifications@github.com>
subject: Re: [openai/openai-agents-python] Add context parameter to

 run_demo_loop (PR #1527)
received: 2026-03-05 10:11:02
date_header: Tue, 19 Aug 2025 02:29:27 -0700
priority: normal
status: awaiting_approval
uid: 28042
---

## Email Content

**From:** Yang Zhi <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Add context parameter to

 run_demo_loop (PR #1527)
**Date:** Tue, 19 Aug 2025 02:29:27 -0700

### Body (preview)

@SeeYangZhi commented on this pull request.







> @@ -11,7 +11,7 @@

 from .stream_events import AgentUpdatedStreamEvent, RawResponsesStreamEvent, RunItemStreamEvent

 

 

-async def run_demo_loop(agent: Agent[Any], *, stream: bool = True) -> None:

+async def run_demo_loop(agent: Agent[Any], *, stream: bool = True, context: Any = None) -> None:



Okay thanks, I have updated it to be `TContext | None`



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1527#discussion_r2284682131

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/pull/1527/review/3131496762@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
