I’m creating a chatbot and I want it to call an api depending on a tool. Like “what’s the weather in Dallas” and it uses the weather api for Dallas. Is this possible?
I'm not at all an expert, but in case it's helpful, i just did this free short course (taught by Jerry Liu), and I think they covered this (maybe lesson 3?), having an llm choose and call a tool and its parameters dynamically based on user input. Sorry I can't pull up the code example right now.
I don't have examples. But check out the jupyter notebooks once you have access to the class. it's all there. And the lectures are really quick, generally 10 min