Tool Master

Native OpenAI tool integration

AI directly calls external tools using structured function schemas.
Compare OpenAI's native approach with ReAct's manual reasoning patterns.

← Back to Home

Interactive Demo

Try: "What's the weather like where I am?", "Tell me about Apple's stock price", or "What activities can I do today?"

System Prompt

You are a helpful assistant with access to location, weather, stock, time, distance, and news functions. When a user asks about activities, location, weather, stocks, time, distances, or news - use t…
You are a helpful assistant with access to location, weather, stock, time, distance, and news functions. When a user asks about activities, location, weather, stocks, time, distances, or news - use the appropriate functions to gather real information first, then provide helpful suggestions based on that data. Always use functions when available rather than saying you don't have capabilities.

Available Functions

hello_world(name)

Test function that greets a person by name. Use this to verify the system is working.

current_time()

Get the current date and time. Returns server time plus UTC time with timezone calculation examples. Use this for any time-related queries including specific locations like Tokyo, New York, etc.

random_quote()

Generate a random inspirational quote using AI.

company_info(symbol)

Get detailed company information including name, description, and business details for any stock symbol.

weather_nowcast(latitude, longitude)

Get real-time weather nowcast with 5-minute precision. Only works for Nordic countries (Norway, Sweden, Denmark, Finland).

weather_forecast(latitude, longitude)

Get detailed weather forecast for any location worldwide including temperature, humidity, wind, pressure, and clouds.

location(ip)

Get user's real geographic location from their IP address including city, country, and coordinates. Use this when you need the actual user location.

stock_price(symbol)

Get real-time stock market data including current price, open/close prices, volume, and trading information. Use this for actual market data.

news_headlines(country, category)

Get real current news headlines from major news sources worldwide. Use country codes: 'us' (USA), 'gb' (UK), 'fr' (France), 'de' (Germany), 'no' (Norway), 'se' (Sweden), 'ca' (Canada), 'au' (Australia).

nasa_apod(date)

Get NASA's Astronomy Picture of the Day with stunning space images and explanations. Optionally specify a date (YYYY-MM-DD format).

near_earth_objects(date)

Get information about asteroids and other Near Earth Objects approaching Earth. Shows distances, speeds, and potential hazards.

search_tracks(query)

Search for music tracks on Spotify. Find songs by title, artist, or keywords.

search_artists(query)

Search for music artists on Spotify. Find artist information, genres, and follower counts.

popular_tracks(genre)

Get popular/trending tracks from 2024. Optionally filter by music genre (pop, rock, hip-hop, jazz, etc.).