Learn Ollama Function Calling By Building A Live Weather AI Agent In Python

Опубликовано: 08 Март 2025
на канале: Jie Jenn
573
18

Function calling is probably one of the most important feature you need to know if you want to build highly functional and practical AI applications with Ollama. By incorporating function calling feature, you will be able to build applications with capabilities to call 3rd party APIs allowing you to retrieve live stock price, weather information, browse the web, or even run query against your database. To learn how to work with the function calling feature, we will be building a live weather AI agent uses OpenWeatherMap API to fetch current weather information.

📋Weather AI Agent Source Code:   / source-code-by-110650963  

🧑‍💻Download Ollama: https://ollama.com/

📃 Sign up for OpenWeather API: https://openweathermap.org/

💖 Show Support
☕ Paypal: https://www.paypal.me/jiejenn/5
☕ Venmo: @Jie-Jenn
🌳 Patreon:   / jiejenn   (early access to tutorial source code)
✉️ Business Inquiring: [email protected]

00:00 - AI agent demo
01:19 - Sign up for OpenWeather API
01:32 - Weather AI agent development
01:56 - get_weather() function
02:38 - get_weather_tool() function
03:40 - run() function
06:17 - Launch the AI agent

#ollama #llm #pythonbaba