Skip to content

Make Runner an abstract base class #720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
616192e
Runner
pakrym-oai May 20, 2025
046c287
LLM: run.py: add support for configurable default Runner
pakrym-oai May 20, 2025
c7b5053
LLM: agents: export DefaultRunner and set_default_runner in __init__
pakrym-oai May 20, 2025
a10f945
test
pakrym-oai May 20, 2025
2002dd9
LLM: rename Runner execution methods to use leading underscores
pakrym-oai May 20, 2025
40d1b91
Add ID generation methods to TraceProvider (#729)
pakrym-oai May 21, 2025
b914570
LLM: refactor(tracing): move TraceProvider to separate module and rep…
pakrym-oai May 21, 2025
27646ee
LLM: tracing/spans: generate span_id if not provided in SpanImpl cons…
pakrym-oai May 21, 2025
caf30b9
tracing: introduce TraceProvider interface and DefaultTraceProvider i…
pakrym-oai Jun 11, 2025
3a4547f
Merge branch 'main' into pakrym/runner-class
pakrym-oai Jun 11, 2025
9538c81
run.py: call _get_all_tools as DefaultRunner class method instead of …
pakrym-oai Jun 11, 2025
9f7934a
agents: add get_default_runner and ensure DEFAULT_RUNNER is always in…
pakrym-oai Jun 11, 2025
b25beb6
runner: remove unused helper methods from Runner class
pakrym-oai Jun 11, 2025
83251c3
move utility methods (_get_output_schema, _get_handoffs, _get_all_too…
pakrym-oai Jun 11, 2025
0ba33c4
Introduce AgentRunner class (#886)
pakrym-oai Jun 17, 2025
1d5537c
cleanup
pakrym-oai Jun 17, 2025
aeede3c
agents/__init__.py: remove unused AgentRunner and DefaultAgentRunner …
pakrym-oai Jun 17, 2025
27c63c6
tests: clean unused import in test_run_step_processing & fix import o…
pakrym-oai Jun 17, 2025
43be477
fb
pakrym-oai Jun 17, 2025
d30a512
AgentRunner: add docstring warning that class is not public API
pakrym-oai Jun 17, 2025
8fc9aef
Merge branch 'main' into pakrym/runner-class
pakrym-oai Jun 17, 2025
ec1caee
run.py: import NotRequired from typing_extensions instead of typing; …
pakrym-oai Jun 17, 2025
28ff992
default
pakrym-oai Jun 17, 2025
5eb0486
run.py: set_default_agent_runner accepts None, resets DEFAULT_AGENT_R…
pakrym-oai Jun 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests: clean unused import in test_run_step_processing & fix import o…
…rder in voice workflow tests
  • Loading branch information
pakrym-oai committed Jun 17, 2025
commit 27c63c60e0515f2986d6404a22d6002e9bc91dc9
1 change: 0 additions & 1 deletion tests/test_run_step_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
ModelResponse,
ReasoningItem,
RunContextWrapper,
Runner,
ToolCallItem,
Usage,
)
Expand Down
5 changes: 3 additions & 2 deletions tests/voice/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
TResponseStreamEvent,
)

from ..fake_model import get_response_obj
from ..test_responses import get_function_tool, get_function_tool_call, get_text_message

try:
from agents.voice import SingleAgentVoiceWorkflow

from ..fake_model import get_response_obj
from ..test_responses import get_function_tool, get_function_tool_call, get_text_message
except ImportError:
pass

Expand Down