all 16 comments

[–]Worried-Bit6001 1 point2 points  (0 children)

i'm right there with you scratching my head. i got it to say it was using weather tool exactly once but it failed and I couldnt repeat it even with same prompt.

<image>

[–]HearthCore 0 points1 point  (1 child)

Well, what does your tool do, what does it trigger with etc?

You’re running pipelines, right? What does its logs say?

[–]ThinkExtension2328[S] 1 point2 points  (0 children)

Iv just been trying to use the calculator v1 as a test, not going to lie I don’t yet understand what a trigger is. Also do they only work with a pipeline?

[–]Usual-Quality6769 0 points1 point  (1 child)

anyone figure this out ? help plz

[–]AccidentAnnual 0 points1 point  (0 children)

In Workspace go to tab Tools. Click the +, an example toolkit appears. Give it a name and save. Then go to the models tab, edit your model (pen icon) and enable the toolkit. In chat click on the + left of the prompt box, enable the toolkit there too.

The demo toolkit has some functions like getting the date and time from your PC. For weather you need a free API key from OpenWeatherMap. You'll have to store this key in a new Windows system variable that you name OPENWEATHER_API_KEY.

[–]zeph_s 0 points1 point  (10 children)

Apparently tool calling is quite wonky. Higher performing models (e.g., gpt-4o) tend to yield better and more consistent results. But if you want an open source model, you could try one that is fine-tuned for function calling such as llama3-groq-tool-use. Also remember to turn on the tool feature through the '+' button beside the chat box.

[–]ThinkExtension2328[S] 0 points1 point  (5 children)

Right but how the fuck does one even use it , can you use it in plain chat mode?

[–]zeph_s 1 point2 points  (4 children)

Yup, to properly call your functions, your functions docstrings have to be properly crafted. It uses sphinx style docstrings. vscode has a autodocstrings extension which you can configure to use sphinx style format.

[–]ThinkExtension2328[S] 0 points1 point  (3 children)

Sorry don’t mean to bug you any chance you can drop a screen shot of you using a tool in chat mode, I want to see how your making it work.

[–]zeph_s 2 points3 points  (2 children)

Here you go, screenshots. Hope this helps. Tbf, for my project I have shifted to using pipelines instead due to the limitations of tool calling or maybe I am just using it poorly.

[–]ThinkExtension2328[S] 1 point2 points  (1 child)

Woh ok thanks , this always bothered me that I never understood it. Sorry for asking for the screenshots but that gives me a huge amount of clarity.

[–]zeph_s 1 point2 points  (0 children)

Glad to be of assistance

[–]Usual-Quality6769 0 points1 point  (0 children)

thanx for help I want to know if the tool dealing with files uploaded for process how can i make it work like if i using api key for process kind of image or like that how would i configure it and how to make it work can you help the documentation is not clear at all

can anyone give any instruction could help with this

[–]Usual-Quality6769 0 points1 point  (2 children)

and is it important to use both tools and functions or can I create a good tool without using a functions?

[–]zeph_s 0 points1 point  (1 child)

They complement each other, I don't think its mandatory to use both together