response = ollama.chat( 'llama3.2', messages=[{'role': 'user', 'content': 'What is the stock price of Apple?'}], tools=[get_stock_price], # Pass the tool function reference )