From db8a6a599e9e41fe073e53d902e370174711eccb Mon Sep 17 00:00:00 2001 From: Anas Khan <83116240+anxkhn@users.noreply.github.com> Date: Sun, 5 Jul 2026 18:11:52 +0530 Subject: [PATCH] docs(realtime): fix RealtimeRunner context docstring The RealtimeRunner.__init__ docstring documented a context parameter that does not exist in its signature. context was moved to the run() method (in the [8/n] realtime refactor) but its Args entry was left behind on the constructor. Remove the stale context entry from __init__ and document run()'s actual context and model_config parameters, matching how the sibling RealtimeSession documents them. Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com> --- src/agents/realtime/runner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/agents/realtime/runner.py b/src/agents/realtime/runner.py index e51a094d8f..a6ec189216 100644 --- a/src/agents/realtime/runner.py +++ b/src/agents/realtime/runner.py @@ -38,7 +38,6 @@ def __init__( Args: starting_agent: The agent to start the session with. - context: The context to use for the session. model: The model to use. If not provided, will use a default OpenAI realtime model. config: Override parameters to use for the entire run. """ @@ -51,6 +50,10 @@ async def run( ) -> RealtimeSession: """Start and returns a realtime session. + Args: + context: The context to use for the session. + model_config: Override parameters to use for this session's model. + Returns: RealtimeSession: A session object that allows bidirectional communication with the realtime model.