From the course: Build with AI: Autonomous Agents with LangChain and Hugging Face

Unlock this course with a free trial

Join today to access over 25,100 courses taught by industry experts.

Tool use and APIs: Connect your agent to tools

Tool use and APIs: Connect your agent to tools

- [Instructor] In the last video, you gave your agent a small short-term memory. It could remember tiny facts about what you said and use them in follow-up questions. Now, we'll level up again. You're going to give your agent the ability to use tools. Now, this is a big shift. Instead of just talking, your agent can now actually do things like calculate safely, search the web, and answer real questions from external sources. Now, why does this matter? When you ask ChatGPT things like, "What's 58 times 13?" Or, "What's the capital of Japan?" it's not guessing, it's calling specialized systems behind the scenes. Tools make an agent feel useful, accurate and practical. In this video, you'll give your agent two essential tools, a safe calculator and a layered web search. Let's go. Okay, to kick things off, let's navigate back to our VS Code environment. Now, once you're here, let's go ahead and create a new file as…

Contents