GenkitG
Genkit2y ago
6 replies
skinny-azure

I am working on creating a library of

I am working on creating a library of tools at the moment and I ran across this issue:

When using a dotprompt, I am coming across me defining my tool that I have this way:
# ....
tools:
 - place-tools-restaurant-finder
# ...


The tool name looks like this as defined by the plugin:
export const rTool = defineTool(
  {
    name: 'place-tools-restaurant-finder',
//...


When Gemini tries to call that tool, the input to the gemini model listing the tools is:
 "tools": [
    {
      "name": "place-tools-restaurant-finder",
//...


The output from gemini is:
"content": [
          {
            "toolRequest": {
              "name": "finder",
              "input": {
                "typeOfRestaurant": "burritos",
                "place": "Baltimore, MD"
              }
            }
          }

It seems that gemini is cutting off the kebab case of the tool. Is there a suggested naming convention for tool names?
Was this page helpful?