-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add native tool call support #9159
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
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
0ca7adb
Add native tool call support (WIP)
daniel-lxs e41fcea
Revert default protocol to XML for test compatibility
daniel-lxs 94d1a31
add native tool call parser and migrate read file
daniel-lxs 9176a7d
fix: prevent "no assistant messages" error by initializing assistantM…
daniel-lxs 591765b
fix: enhance read_file handling to support both single-file and multi…
daniel-lxs c0d0a06
fix: task getting stuck after native tool call
daniel-lxs 8c316e1
feat: migrate attempt completion
daniel-lxs 20d9326
fix: revert CURRENT_TOOL_PROTOCOL to XML for compatibility
daniel-lxs 14e7936
feat: migrate list-files tool to support the native protocol
daniel-lxs 9351602
fix: update import path for listFilesTool to match naming convention
daniel-lxs adb6dab
feat: migrate new-task tool to handle native protocol
daniel-lxs ad87a9b
refactor: rename tools
daniel-lxs b7a95ea
feat: refactor executeCommandTool to use class-based structure and up…
daniel-lxs 8fd363b
Rename tool
daniel-lxs fe34b75
feat: migrate tool to support native tool call path
daniel-lxs 3cf1fa9
feat: migrate apply-diff to support native tool calls
daniel-lxs e5928ac
feat: migrate ask-followup-question to support native tool calling
daniel-lxs 5cf419c
feat: migrate browser action to support native protocol
daniel-lxs fefd4c0
feat: migrate codebase_search to support native protocol
daniel-lxs 910743e
feat: migrate fetch instructions to support native protocol
daniel-lxs f4090bb
feat: migrate generate image to support native protocol
daniel-lxs 31d15a7
feat migrate list code definitions to support native protocol
daniel-lxs 15b7e85
feat: migrate run slash command to support native protocol
daniel-lxs 259e16f
feat: migrate search files tool to support native protocol
daniel-lxs 6ec00ea
feat: migrate switch mode tool to support native protocol
daniel-lxs b3c73cf
feat: migrate update todo list and mcp tools to support the native pr…
daniel-lxs da10b25
feat: migrate write to file to support native protocol, force model t…
daniel-lxs 9758b10
rename: rename class-based tools
daniel-lxs af4c717
feat: add support for native tools in OpenRouter and update related i…
daniel-lxs 64062ac
fix: anthropic models by removing duplicate tool call and fix "no ass…
daniel-lxs b0ed535
fix: handle markdown checklist parsing in handlePartial method
daniel-lxs 0dcb39e
refactor(attempt-completion): standardize tool result handling
daniel-lxs 7ed3a62
fix(native-protocol): prevent consecutive user messages on API retry
daniel-lxs 6cb30e2
test: add supportsNativeTools to openrouter mock model data
daniel-lxs 8509486
fix: correct import casing for renamed tool files
daniel-lxs d48860a
fix: move tool parameter types to @roo-code/types package
daniel-lxs b046bb9
refactor: clean up debug logs
daniel-lxs c7d310f
refactor(parser): clean up NativeToolCallParser type assertions and l…
daniel-lxs a6b9341
fix: detect tool calling support from API tool-use tag
daniel-lxs 78aa72b
fix: remove spaces from search/replace block
daniel-lxs 9154b72
Remove unimplemented tools (search_and_replace, edit_file)
daniel-lxs 40cd9f5
fix: remove unrelated code from merge
daniel-lxs 3d5ad18
refactor: move getMcpServerTools to top-level import
daniel-lxs fb93c15
refactor: move removeClosingTag to BaseTool as shared method
daniel-lxs 2d655e1
feat: move tool protocol to VSCode setting
daniel-lxs 19cb25a
fix: comment
daniel-lxs af31053
fix: typographical error
daniel-lxs e8d52f1
Update src/package.nls.id.json
daniel-lxs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| /** | ||
| * Tool parameter type definitions for native protocol | ||
| */ | ||
|
|
||
| export interface LineRange { | ||
| start: number | ||
| end: number | ||
| } | ||
|
|
||
| export interface FileEntry { | ||
| path: string | ||
| lineRanges?: LineRange[] | ||
| } | ||
|
|
||
| export interface Coordinate { | ||
| x: number | ||
| y: number | ||
| } | ||
|
|
||
| export interface Size { | ||
| width: number | ||
| height: number | ||
| } | ||
|
|
||
| export interface BrowserActionParams { | ||
| action: "launch" | "click" | "hover" | "type" | "scroll_down" | "scroll_up" | "resize" | "close" | ||
| url?: string | ||
| coordinate?: Coordinate | ||
| size?: Size | ||
| text?: string | ||
| } | ||
|
|
||
| export interface GenerateImageParams { | ||
| prompt: string | ||
| path: string | ||
| image?: string | ||
| } |
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Someday...