Renaming Turn to Run#239
Open
ritzz26 wants to merge 13 commits into
Open
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR renames the “turn” concept to “run” across the codebase, updating method names, event types, callbacks, utilities, examples, and documentation to match the new nomenclature.
- Agent API and runner methods (
.turn→.run,next_turn→next_run) have been updated. - Events and callbacks (
TurnEnd/TurnCancelled→RunEnd/RunCancelled) were renamed, and related logic was adapted. - Dashboard utilities, React hooks, examples, and docs have been aligned to use “run” terminology.
Reviewed Changes
Copilot reviewed 37 out of 38 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/*.py | Replaced .turn and next_turn calls with .run/next_run in tests |
| src/agentic/workflow.py | Renamed next_turn to next_run and TurnEnd to RunEnd |
| src/agentic/thread_manager.py | Updated handling of TurnEnd/reset logic to use RunEnd |
| src/agentic/runner.py | Replaced turn method with run, updated event printing |
| src/agentic/events.py | Renamed TurnEnd/TurnCancelled classes to RunEnd/RunCancelled |
| src/agentic/dashboard/src/app/lib/utils.ts | Renamed isUserTurn to isUserRun, updated termination checks |
| src/agentic/dashboard/src/app/lib/api.ts | Switched import to isUserRun, updated AgentEventType enums |
| src/agentic/dashboard/src/app/hooks/useChat.tsx | Replaced isUserTurn with isUserRun, updated comments |
| src/agentic/dashboard/src/app/components/EventLogs.tsx | Updated UI event filters to use RUN_END/RUN_CANCELLED |
| src/agentic/context_manager.py | Renamed handle_turn_start/handle_turn_end to handle_run_* |
| src/agentic/api.py | Updated streaming and event logic to next_run and RunEnd |
| src/agentic/actor_agents.py | Renamed callbacks and event checks to run variants |
| examples/**/*.py | Updated example agents to use next_run and RunEnd |
| docs/**/*.md | Updated documentation to refer to “run” instead of “turn” |
Contributor
|
Hey @ritzz26. This looks great, going to hold off on it for now with all of the interns contributing. If you can doing a rebase every couple days would be great! |
0d4cbcd to
622885f
Compare
### What - Added web search tool "openai_websearch.py" - Added tool to init.py so that it can be imported as "OpenAIWebSearchTool" - Created new util py file called text_parsing - Modified the OSS Deep Researcher agent to utilize this tool instead of Tavily
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
According to agentic nomenclature, the "turn" vocabulary should be a "run" and this is being updated in the PR.