Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR renames the context identifier from RunContext to ThreadContext (and run_id to thread_id) as part of a larger refactor.
- Updated function signatures and inline documentation examples in various tool-related documentation files.
- Modified API example endpoints and Swagger documentation to reflect the new thread_id naming convention.
- Ensured consistency across code snippets and explanations within the docs.
Reviewed Changes
Copilot reviewed 75 out of 75 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/tools/tool-library/rag-tool.md | Updated function parameter and description from RunContext to ThreadContext. |
| docs/tools/tool-library/playwright-tool.md | Replaced RunContext with ThreadContext in several tool functions. |
| docs/tools/tool-library/meeting-baas-tool.md | Transitioned RunContext to ThreadContext for meeting tool functions. |
| docs/tools/tool-library/imap-tool.md | Renamed RunContext to ThreadContext for email-related functions. |
| docs/tools/tool-library/image-generator-tool.md | Updated async function signature to use ThreadContext. |
| docs/tools/tool-library/human-interrupt-tool.md | Changed parameter name from RunContext to ThreadContext in function definition. |
| docs/tools/tool-library/github-tool.md | Replaced RunContext with ThreadContext across multiple GitHub tool functions. |
| docs/tools/tool-library/database-tool.md | Updated database tool functions to use ThreadContext. |
| docs/tools/tool-library/browser-use-tool.md | Changed async function signature from RunContext to ThreadContext. |
| docs/tools/tool-library/automatic-tools.md | Updated tool enabling function to use ThreadContext. |
| docs/tools/tool-library/authorized-rest-api-tool.md | Renamed parameters from RunContext to ThreadContext in API tool functions. |
| docs/tools/tool-library/airbnb-calendar-tool.md | Replaced RunContext with ThreadContext in Airbnb calendar tool functions. |
| docs/tools/index.md | Updated all references and code examples to replace RunContext with ThreadContext. |
| docs/tools/building-tools.md | Revised example code and descriptions in tool-building docs to use ThreadContext. |
| docs/interacting-with-agents/[DEPRECIATED]-rest-api-no-swagger.md | Changed run_id to thread_id in API examples and endpoint documentation. |
| docs/glossary.md | Updated glossary entry from RunContext to ThreadContext. |
| docs/core-concepts/event-types.md | Modified event examples to use thread_context instead of run_context. |
| docs/building-agents/index.md | Changed explanations and code examples to refer to ThreadContext. |
| docs/building-agents/advanced-custom-agents.md | Adjusted subagent propagation documentation to use thread_id. |
| docs/assets/swagger.json | Updated Swagger endpoints and parameter names from run_id to thread_id. |
drbrady8800
approved these changes
Jun 5, 2025
Contributor
drbrady8800
left a comment
There was a problem hiding this comment.
Looks good and works, found some instances of run and pushed up updates for them. Also added an auto migrations for agent_runs -> agent_threads. Appreciate the effort, stuff like this can be very tedious.
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 #60, renamed Runs to Threads a part of the first step of the big refactor.