Tool use?

#8
by johnpyp - opened

Is it possible to make this work well with tool use? The format seems different than normal tool use syntax, so I'm not sure.

glm-4 seems to use this syntax for tool use:

get_weather
{ "location": "San Diego" }

instead of:

{ "name": "get_weather", "arguments": { "location": "San Diego"  }

(and THUDM's sample code translates between)

I was wondering why I was having so many issues with various tools. Hopefully somebody can figure out how to fix its tool calling.

fwiw tool use seems to be excellent with "alternative" tool-use frameworks like https://github.com/huggingface/smolagents, but yeah I think native special-token tool use that is used in most integrations just won't work very well unless there's a translation layer, perhaps.

Sign up or log in to comment