how does gptel package differential between tools exposed by mcp and tools coded in elisp with gptel-make-tool #1050
Closed
CsBigDataHub
started this conversation in
General
Replies: 2 comments 1 reply
-
I guess I can prefix elisp checking if there is more elegant option? Also |
Beta Was this translation helpful? Give feedback.
0 replies
-
Since the tools have different categories you can access them differently: Option 1: refer to the tools by category instead of name: (gptel-make-preset 'desktop-commander
:description "..."
;; Add all the other keys here
:tools '("mcp-desktop-commander")) This will add all the tools in the category "mcp-desktop-commander" to the preset. Option 2: refer to the correct version of "read_file" etc: (gptel-make-preset 'tool
:tools (list "execute_command" "read_file" ...
(gptel-get-tool '("mcp-desktop-commander" "read_files"))
(gptel-get-tool '("mcp-desktop-commander" "write_file"))
(gptel-get-tool '("mcp-desktop-commander" "list_directory")))) You can refer to a category+tool with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Lets say there is an overlap, like
list_directory
andread_file
are present both in elisp (gptel-make-tool) and mcp tool (filesystem or Serena). I am trying to make presets and curious about this.This is just an example I generated from llm for this purpose -
Now I have "read_file" "write_file" "list_directory" tools from
gptel-make-tool
aswell. In few presets I want to use elisp tools and in few presets I want to use mcp tools, how do I achieve that.Thank you for your support.
Beta Was this translation helpful? Give feedback.
All reactions