Skip to content

Renaming Turn to Run#239

Open
ritzz26 wants to merge 13 commits into
mainfrom
rename_turn_to_run/rit
Open

Renaming Turn to Run#239
ritzz26 wants to merge 13 commits into
mainfrom
rename_turn_to_run/rit

Conversation

@ritzz26
Copy link
Copy Markdown
Contributor

@ritzz26 ritzz26 commented Jun 19, 2025

Overview

According to agentic nomenclature, the "turn" vocabulary should be a "run" and this is being updated in the PR.

@ritzz26 ritzz26 requested a review from Copilot June 19, 2025 15:33

This comment was marked as outdated.

ritzz26 and others added 4 commits June 19, 2025 08:37
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ritzz26 ritzz26 requested a review from Copilot June 19, 2025 15:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_turnnext_run) have been updated.
  • Events and callbacks (TurnEnd/TurnCancelledRunEnd/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”

Comment thread src/agentic/dashboard/src/app/lib/utils.ts Outdated
@ritzz26 ritzz26 requested a review from drbrady8800 June 19, 2025 23:10
@drbrady8800
Copy link
Copy Markdown
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!

@ritzz26 ritzz26 force-pushed the rename_turn_to_run/rit branch from 0d4cbcd to 622885f Compare June 23, 2025 18:41
scottpersinger and others added 7 commits June 23, 2025 11:42
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants