Connecting Gemini API to the Outside World with Tools | Intro to Tools

Google for DevelopersAbout 3 min readOct 30, 2025Watch original
THE SUMMARYAI-generated

Key Concepts

  • Large Language Models (LLMs): AI models that generate text by predicting probable tokens sequentially.
  • Tokens: Individual units of text (words, sub-words, punctuation) that LLMs process and generate.
  • Knowledge Cut-off: The point in time up to which an LLM's training data extends, limiting its access to real-time information.
  • Tools: External functionalities or resources that LLMs can access to extend their capabilities beyond their inherent knowledge.
  • Grounding: The process of connecting an LLM's response to external, verifiable information sources.
  • Google Search Integration: A specific tool that allows LLMs to access and utilize real-time information from Google Search results.
  • Citations: References to the sources of information used by the LLM, providing transparency and verifiability.

The Importance of Tools for LLMs

Large Language Models (LLMs) operate by generating probable tokens sequentially, taking an input text and outputting tokens one by one. This mechanism has proven highly effective in producing fluent and nuanced text, solving complex problems, and generating executable code. However, LLMs possess inherent limitations due to their disconnection from the external world.

Limitations of Out-of-the-Box LLMs:

  • Lack of Real-time Information: LLMs do not have access to knowledge beyond their training data. This prevents them from providing current information on topics like weather, traffic, or news.
  • Inability to Perform Actions: They cannot execute real-world actions such as booking flights, sending messages, or writing data to databases.
  • Inefficiency in Computation: While capable of solving math problems, relying on LLMs for direct computation is not always the most efficient approach.

Tools are crucial for overcoming these limitations by extending LLM capabilities and granting them access to the outside world.

Demonstrating Tool Integration: Google Search with Gemini

The video demonstrates the power of tools through an example in Google AI Studio, utilizing Gemini.

Scenario:

  1. Initial Query without Tools: The user, based in Austin, asks Gemini, "Who headlined ACL Festival 2025?"
  2. LLM's Response: Gemini Flash Latest, with a knowledge cut-off of January 2025, states that the headliners have not yet been announced. This is incorrect because the event has already occurred.
  3. Problem Identified: The model's knowledge cut-off prevents it from accessing information about events that happened after January 2025.
  4. Solution: Enabling Google Search Grounding: The user refreshes the chat and re-enters the same query, but this time enables "grounding with Google search."
  5. Improved Response with Tool: With Google Search integrated, Gemini provides the correct answer, listing the headliners and including citations to the sources of this information.

Key Takeaway from the Example:

Connecting Gemini to Google Search is an effective method for accessing recent information and ensuring that responses are grounded in verifiable citations, allowing users to trace the origin of the information.

Conclusion

The video emphasizes that utilizing LLMs without connecting them to tools significantly limits their potential. Tools are essential for bridging the gap between an LLM's internal knowledge and the dynamic, real-world information and actions required for many applications. The demonstration with Google Search highlights how these integrations can provide real-time data and enhance the accuracy and trustworthiness of LLM responses. Future parts of the series will explore other tool integrations.

AI summaries can miss context or contain errors. Check important details against the original video.

MAKE IT YOURS

Read. Remember. Reuse.

Free tools

Go a little deeper.

Have a question about this video? Load its transcript to open the video chat.