SuperAPI AI Directory

Google "Intelligent Agent" Whitepaper (Chinese Version)

Author: AI小集 · Original source: AI工具集

Acknowledgments

Reviewers and Contributors

Evan Huang

Emily Xue

Olcan Sercinoglu

Sebastian Riedel

Satinder Baveja

Antonio Gulli

Anant Nawalgaria

Curators and Editors

Antonio Gulli

Anant Nawalgaria

Grace Mollison

Technical Writer

Joey Haymock

Designer

Michael Lanning

CakeGrowth QR Code

Getthe original PDF file of the "Google Intelligent Agent Whitepaper", scan the QR code, follow, and reply: 20250108

 

Reasoning, logic, and access to external information are all linked with generative AI models, and this combination references the concept of an agent.

Introduction

Humans are good at handling messy pattern recognition tasks. However, they often rely on tools – before reaching a conclusion, AI models can use tools such as books, Google Search, or calculators to supplement their existing knowledge. Just like humans, generative AI models can also be trained to use tools to obtain real-time information or suggest actions in the real world. For example, a model can use a database retrieval tool to access specific information, such as a customer's purchase history, thereby generating tailored shopping recommendations. Or, based on a user's query, the model can make various API calls to send email replies to colleagues or complete financial transactions on your behalf. To do this, the model must not only be able to access a range of external tools, but also have the ability to plan and execute any task in a self-directed manner. This combination of reasoning, logic, and external information access is all linked with generative AI models, which gives rise to the concept of an agent, or a program that goes beyond the independent capabilities of generative AI models. This whitepaper will introduce all these aspects and related aspects in more detail.

What Is an Agent

In its most basic form, a generative AI agent can be defined as an application that attempts to achieve a goal by observing the world and taking actions using the tools it has. Agents are autonomous and can act independently without human intervention, especially when there is an appropriate goal or purpose. Agents can also proactively achieve goals. Even without an explicit set of instructions from humans, an agent can reason about what it should do next in order to achieve its ultimate goal. Although the concept of agents in AI is very common and powerful, this whitepaper at the time of publication focuses primarily on the specific types of agents that generative AI models can build.

To understand the inner workings of an agent, we first introduce the foundational components that drive agent behavior, actions, and decisions. The combination of these components can be described as a cognitive architecture, and through mixing and matching these components, many such architectures can be realized. Focusing on core functionality, as shown in Figure 1, an agent's cognitive architecture has three basic components.

Figure 1. General agent architecture and components

Model

Within the scope of an agent, a model refers to a language model (LM) that will be used as the centralized decision-maker in the agent's workflow. The model used by an agent can be one or more LMs, of any size (small/large), capable of following instruction-based reasoning and logical frameworks such as ReAct, Chain-of-Thought, or Tree-of-Thoughts. The model can be general-purpose, multimodal, or fine-tuned as needed for the specific agent architecture. For best production results, you should use the model best suited to your desired end application, and preferably one trained on data characteristics associated with the tools you plan to use in the cognitive architecture. It is worth noting that models are generally not trained on an agent's specific configuration settings (such as tool selection, coordination/reasoning settings). However, the model for the agent's task can be further refined by providing examples that demonstrate the agent's capabilities, including instances of the agent using specific tools or reasoning steps in different contexts.

Tools

Although foundation models can generate impressive text and images, they are still limited by being unable to interact with the external world. Tools fill this gap, enabling agents to interact with external data and services while unlocking more actions beyond the underlying model. Tools come in many forms and vary in their functions. Their complexity varies, but they generally align with common web API methods such as GET, POST, PATCH, and DELETE. For example, a tool can update customer information in a database or retrieve weather data to influence the travel recommendations an agent provides to users. Through tools, agents can access and process real-world information. This enables them to support more specialized systems, such as retrieval-augmented generation (RAG), greatly expanding the agent's capabilities beyond what the foundation model itself can achieve. We will discuss tools in detail below, but the most important thing we need to understand is that tools are the bridge between the agent's internal capabilities and the external world, opening up broader possibilities.

Coordination layer

The coordination layer describes a looping process that governs how an agent receives information, performs some internal reasoning, and uses that reasoning to inform the next action or decision. Generally, this loop continues until the agent reaches a goal or stopping point. The complexity of the coordination layer can vary greatly depending on the agent and the task it performs. Some loops can be simple computations with decision rules, while others may contain chained logic involving additional machine learning algorithms or implement other probabilistic reasoning techniques. We will discuss the implementation of the agent coordination layer in detail in the cognitive architecture section.

Agents and models

To understand the difference between agents and models more clearly, see the Chafi below:

Model Agent
Their knowledge is limited to what is in the training data. Knowledge is extended through connection to external systems via tools
A single inference/prediction based on a user query. Unless explicitly implemented for the model, no session is managed. History or continuous context. (i.e., chat logs) Manages session history (i.e., chat history) to enable multi-turn inference/prediction based on user queries and decisions in the coordination layer. In this case, a "turn" is defined as one interaction between the interactive system and the agent. (i.e., 1 incoming event/query and 1 agent response)
No native tool implementation. Tools are implemented in the agent architecture.
No local logic layer. Users can issue prompts in the form of simple questions, or use reasoning frameworks (CoT, ReAct, etc.) to issue complex prompts to guide the model in making predictions. Local cognitive architecture using reasoning frameworks such as CoT and ReAct, or other pre-built agent frameworks such as LangChain.

 

Cognitive Architecture: How Agents Operate

Imagine a chef in a busy kitchen. Their goal is to create delicious dishes for restaurant customers, which involves a cycle of planning, execution, and adjustment.

  • They gather information, such as the customers' orders and the ingredients in the pantry and refrigerator.
  • They perform some internal reasoning based on the information just gathered to determine which dishes and flavors can be prepared.
  • They get to work preparing the dishes: chopping vegetables, seasoning, roasting meat.

At each stage of this process, the chef makes adjustments as needed, refining their plan when ingredients run out or customer feedback is received, and using the previous series of results to decide the next course of action. This cycle of information intake, planning, execution, and adjustment describes the unique cognitive structure the chef employs to achieve their goal. Just like the chef, agents can use a cognitive architecture to achieve their ultimate goal by iteratively processing information, making informed decisions, and refining the next action based on previous outputs. At the core of an agent's cognitive architecture is the orchestration layer, which is responsible for maintaining memory, state, reasoning, and planning. It leverages the rapidly evolving field of prompt engineering and related frameworks to guide reasoning and planning, enabling agents to interact with the environment and complete tasks more effectively. Research in the fields of prompt engineering frameworks for language models and task planning is developing rapidly and has produced a variety of promising methods. Although this is not an exhaustive list, at the time of publication of this report, these are some of the most popular frameworks and reasoning techniques:

  • ReAct is a prompt engineering framework that provides a thought-process strategy for language models to reason about user queries and take actions with or without contextual examples. ReAct prompting has proven to outperform several SOTA baselines and improve the human interoperability and trustworthiness of LLMs.
  • Chain of Thought (CoT) is a prompt engineering framework that achieves reasoning capability through intermediate steps. CoT has multiple sub-techniques, including self-consistency, active prompting, and multimodal CoT, each with its own advantages and disadvantages depending on the specific application.
  • Tree of Thoughts (ToT) is a prompt engineering framework that is well suited for exploration or strategic lookahead tasks. It generalizes chain-of-thought prompting, allowing the model to explore various chains of thought as intermediate steps in solving general problems using language models.

An agent can leverage one of the above reasoning techniques or many others to select the next best action for a given user request. For example, let us consider an agent programmed to use the ReAct framework to select the correct action and tool for a user query. The sequence of events might be as follows

  • The user sends a query to the agent
  • The agent begins the ReAct sequence
  • The agent issues a prompt to the model asking it to generate the next ReAct step and its corresponding output:
    • a. Question Question: The input question of the user query, providing the prompt
    • b. Thought: The model's thinking about the next action
    • c. Action: The model decides what action to take next
      • i. This is where the tool is selected
      • ii. For example, an action can be one of [flight, search, code, none], where the first three represent known tools the model can choose, and the last represents "no tool selection".
    • d. Action input: What inputs the model decides to provide to the tool (if any)
    • e. Observation: The result of the action/action input sequence
      • i. This thought/action/action input/observation can be repeated N times as needed
    • f. Final answer: The final answer the model provides to the original user query
  • The ReAct loop ends, and the final answer is provided to the user

Figure 2. An example of an agent using ReAct reasoning in the orchestration layer

As shown in Figure 2, the model, tools, and agent configuration work together to provide the user with a grounded, concise response based on the user's original query. Although the model could guess the answer based on its own prior knowledge (hallucination), it instead uses a tool (flight) to search for real-time external information. This additional information provided to the model enables it to make a more informed decision based on actual data and to summarize this information back to the user.

In summary, the quality of an agent's response can be directly linked to the model's ability to reason and act on these different tasks, including the ability to select the right tools and how well the tools are defined. Just as a chef uses fresh ingredients to prepare dishes and pays attention to customer feedback, an agent relies on sound reasoning and reliable information to deliver the best results. In the next section, we will take a deep dive into the various ways agents connect to fresh data.

Tools: Our keys to the outside world

Although language models are good at processing information, they lack the ability to directly perceive and affect the real world. This limits their role in situations that require interaction with external systems or data. This means that, in a sense, a language model is only as good as what it has learned from its training data. But no matter how much data we throw at models, they still lack the basic ability to interact with the external world. So how can we enable our models to interact with external systems in real time and in a context-aware way? Functions, extensions, data stores, and plugins are all ways to provide models with this critical capability.

Tools go by many names, but they are the link between our foundation models and the outside world. This connection to external systems and data enables our agents to perform a wider variety of tasks and to be more accurate and reliable. For example, tools can let an agent adjust smafi homepage settings, update a calendar, retrieve user information from a database, or send emails according to specific instructions.

As of the date of this publication, Google models can interact with three main tool types: extensions, functions, and data stores. By equipping agents with tools, we unlock enormous potential for them, enabling them not only to understand the world but also to act on it, opening the door to countless new applications and possibilities.

Extensions

The simplest way to understand extensions is to think of them as a bridge built in a standardized way between application programming interfaces and agents, enabling agents to execute application programming interfaces seamlessly regardless of their underlying implementation. For example, suppose you create an agent whose goal is to help users book flights. You know you need to use the Google Flights API to retrieve flight information, but you are not sure how to have the agent call that API endpoint.

Figure 3. How does an agent interact with an external API?

One approach is to execute custom code that receives the incoming user query, parses the relevant information from the query, and then makes an API call. For example, in a flight booking use case, a user might say "I want to book a flight from Austin to Zurich." In this case, our custom code solution needs to extract "Austin" and "Zurich" as relevant entities from the user query before attempting to make an API call. But what happens if the user says "I want to book a flight to Zurich" without providing the destination city? Without the required data, the API call will fail, and more code would be needed to catch similar edge and corner cases. This approach is not scalable and is error-prone in any case that falls outside the scope of the custom code implementation.

A more resilient approach is to use extensions. Extensions bridge the gap between the agent and the API by:

  1. Teaching the agent how to use API endpoints using examples.
  2. Telling the agent which parameters are required to successfully call an API endpoint.

Figure 4. Extensions connect agents with external APIs

Extensions can be designed independently of the agent, but should be provided as part of the agent's configuration. At runtime, the agent uses the model and examples to decide which extension (if any) is appropriate to resolve the user's query. This highlights a key advantage of extensions: their built-in example types allow the agent to dynamically select the most appropriate extension for the task.

Figure 5. One-to-many relationship between agents, extensions, and APIs

Just as software developers decide which API endpoint to use when solving a user's problem. If a user wants to book a flight, a developer might use the Google Flights API. If a user wants to know where the nearest coffee shop is, a developer might use the Google Maps API. Similarly, the agent/model stack uses a set of known extensions to decide which one best fits the user's query. If you want to see extensions in action, you can go to "Settings" > "Extensions" in the Gemini app and then enable any extensions you want to test. For example, you can enable the Google Flights extension and then ask Gemini "Show me flights from Austin to Zurich next Friday."

Extension samples

To simplify the use of extensions, Google provides some out-of-the-box extensions that require minimal configuration to quickly embed into a project and use. The code interpreter extension in Snippet 1 allows you to generate and run Python code based on a natural language description.

 

Python 
导入 vertexai 导入 

pprint 


project_id= "your_project_id" 
REGION = "us-central1" 

vertexai.init(project=PROJECT_ID, location=REGION) 

from vertexai.preview.extensions import Extension 

extension_code_interpreter= Extension.from_hub("code_interpreter") 
CODE_QUERY= """Write a python method to invert a binary tree in O(n) time.""" 

response= extension_code_interpreter.execute( 
operation_id = "generate_and_execute", 
operation_params = {"query":CODE_QUERY} ) 

print("Generated Code:") 
pprint.pprint({response['generated_code']})

#上述代码段将生成以下代码。 
生成代码:
类 TreeNode:
def init(self,val=0,left=None,right=None):
self.val = val self.left = left self.right= right

def invert_binary_tree(root):
"""
反转二叉树参数
根:二叉树的根
返回:
倒置二叉树的根。
"""
如果不是 root:
返回 None
# 递归交换左右子代 root.left、root.right =
invert_binary_tree(root.right), invert_binary_tree(root.left)
返回根
# 示例用法:
# 构建二叉树样本 root = TreeNode(4)
root.left = TreeNode(2) root.right = TreeNode(7) root.left.left = TreeNode(1) root.left.right = TreeNode(3) root.right.left = TreeNode(6) root.right.right= TreeNode(9)
# 反转二叉树
inverted_root= invert_binary_tree(root)
 ```

Snippet 1. The code interpreter extension can generate and run Python code

In summary, extensions provide agents with a way to perceive, interact with, and influence the external world. The selection and invocation of these extension capabilities are guided by the examples, all of which are defined as part of the extension configuration.

Functions

In software engineering, a function is defined as a self-contained code module that accomplishes a specific task and can be reused as needed. When writing programs, software developers typically create many functions to accomplish various tasks. They also define the logic for when to call function_a versus function_b, as well as the expected inputs and outputs.

Functions work in a very similar way in the agent world, but we can use a model in place of the software developer. The model can accept a set of known functions and, based on their specifications, decide when to use each function and which parameters the function requires. Functions have some differences from extensions, the most obvious of which is

1. The model outputs a function and its parameters, but does not call the live API.

2. Functions execute on the client side, while extensions execute on the agent side.

Taking Google Flights as an example again, a simple function setup may look similar to the example in Figure 7.

Figure 7. How do functions interact with external APIs?

Note that the key difference here is that neither the function nor the agent interacts directly with the Google Flights API. So how does the API call actually happen?

As shown in Figures 8 and 9 below, with functions, the logic and execution of calling the actual API endpoint are offloaded from the agent to the client application. This gives developers finer-grained control over the data flow in the application. There are many reasons developers choose to use functions rather than extensions, but the following are common use cases:

  • The API call needs to occur at another layer of the application stack outside the direct agent architecture flow (such as a middleware system, front-end framework, etc.).
  • Security or authentication restrictions that prevent the agent from calling the API directly (for example, the API is not exposed to the internet, or the agent infrastructure cannot access it).
  • Time or operation-order restrictions that prevent the agent from calling the API in real time. (i.e., batch operations, human-in-the-loop review, etc.).
  • The need to apply additional data transformation logic to API responses that the agent cannot perform. For example, consider that the API endpoint does not provide a filtering mechanism to limit the number of returned results. Using functions on the client side gives developers an additional opportunity to perform these transformations.
  • Developers want to iterate on agent development without deploying additional infrastructure for API endpoints (for example, function calls act like "stubs" for APIs).

As shown in Figure 8, the internal architectural differences between these two approaches are subtle, but the additional control and decoupling from external infrastructure make function calling an attractive option for developers.

Figure 8. Division of client-side and agent-side control for extensions and function calling

Use cases

Models can be used to invoke functions in order to handle complex client-side execution flows for end users, in which case the agent developer may not want the language model to manage API execution (as is the case with extensions). Let's look at the following example: an agent is being trained as a travel concierge to interact with a user who wants to book a vacation itinerary. Our goal is for the agent to generate a list of cities that we can use in a middleware application to download images, data, etc. for the user's travel plan. The user might say

I want to go skiing with my family, but I don't know where to go. In a typical prompt to the model, the output might look like this: Sure, here is a list of cities you can consider for a family ski trip:

  • Crested Butte, Colorado, USA
  • Whistler, British Columbia, Canada
  • Zermatt, Switzerland

Although the above output contains the data we need (city names), its format is not suitable for parsing. Through function calling, we can teach the model to format the output in a structured style (such as JSON), which is easier for other systems to parse. Given the same user prompt, an example JSON output from the function might look like this

Code snippet 5. Example function calling payload showing a list of cities and user preferences

This JSON payload is generated by the model and then sent to our client server to accomplish whatever we want to do. In this specific case, we will call the Google Places API to fetch the city provided by the model and look up images, then feed them back to our users as formatted rich content. The sequence diagram in Figure 9 details the above interaction process.

Figure 9. Sequence diagram showing the lifecycle of a function call

As a result of the example in Figure 9, the model is used to "fill in the blanks" for the parameters required by the client user interface to call the Google Places API. The client user interface uses the parameters provided by the model in the returned Function to manage the actual API call. This is just one use case for function calling, but there are many other scenarios worth considering, such as

  • You want the language model to suggest functions for you to use in your code, but you don't want to include credentials in the code. Because function calling does not run the function, you don't need to include credentials and function information in the code.
  • You are running an asynchronous operation that may take more than a few seconds. Since function calling is an asynchronous operation, it handles these situations well.
  • You want to run the function on a device different from the system that produced the function call and its parameters.

A key point to remember about functions is that they not only give developers more control over the execution of API calls, but also control the entire data flow throughout the application. In the example in Figure 9, the developer chose not to return the API information to the agent because that information is not important to the actions the agent may take in the future. However, depending on the application's architecture, it may make sense to return external API call data to the agent to influence future reasoning, logic, and action choices. Ultimately, the application developer still needs to choose the appropriate approach based on the specific application.

Function example code

To implement the above output in the ski resort scenario, let's use the gemini-1.5-flash-001 model to build the individual components that achieve this goal.

First, we define the display_cities function as a simple Python method.

Code snippet 6. Example of a Python method for the display cities function.

Next, we instantiate the model, build the tool, and then pass the user's query and the tool to the model. Executing the code below will produce the output at the bottom of the code snippet.

Code snippet 7. Creating the tool, sending the user query to the model, and allowing function calling

In summary, functions provide a simple and clear framework that enables application developers to have fine-grained control over data flow and system execution while effectively leveraging the agent/model to generate key inputs. Developers can selectively choose whether to let the agent "stay in the loop" by returning external data, or to omit the agent, based on the specific application architecture requirements.

Data stores

Think of a language model as a well-stocked library containing its training data. But unlike a library that continuously acquires new books, this model remains static and only retains the knowledge from its initial training. This poses a challenge because real-world knowledge is constantly evolving. Data stores address this limitation by providing more dynamic and up-to-date information, and ensure that the model's responses are always grounded in facts and relevance. Consider a common situation where a developer may need to provide a small amount of additional data to the model, perhaps in spreadsheet or PDF format.

Figure 10. How do agents interact with structured and unstructured data?

Data stores let developers supply additional data to an agent in its original format, avoiding time-consuming data conversion, model retraining, or fine-tuning. A data store converts incoming documents into a set of vector-database embeddings, which the agent can use to retrieve information that informs its next action or response to the user.

Figure 11. Data stores connect agents to various types of new, real-time data sources.

Implementation and applications

For generative AI agents, a data store is commonly implemented as a vector database that the developer wants the agent to access at runtime. We will not cover vector databases in depth here. The key point is that they store data as vector embeddings: high-dimensional vectors or mathematical embeddings.

These represent the supplied data. One common way to combine data stores and language models is in applications based on retrieval-augmented

generation (RAG). These applications extend the breadth and depth of a model's knowledge beyond its foundational training data by giving it access to data in various formats:

  • Website content
  • Structured data formats such as PDFs, Word documents, CSV files, spreadsheets, and more.
  • Unstructured data in formats such as HTML, PDF, and TXT.

Figure 12. A one-to-many relationship between an agent and data stores representing various types of pre-indexed data

The basic flow of each user-request and agent-response cycle is generally modeled as shown in Figure 13.

  1. The user query is sent to an embedding model to generate an embedding of the query.
  2. The query embedding is then matched against the contents of the vector database using a matching algorithm such as SCaNN.
  3. The matching content is retrieved from the vector database as text and sent back to the agent.
  4. The agent receives the user query and retrieved content, then formulates a response or action.
  5. The final response is sent to the user.

Figure 13. The lifecycle of a user request and agent response in a RAG-based application

The resulting application lets the agent use vector search to match a user query against a known data store, retrieve the original content, and provide it to the orchestration layer and model for further processing. The next step may be a final answer to the user or additional vector searches to refine the result.

Figure 14 shows an example interaction with an agent that implements RAG using ReAct reasoning and planning.

Tools recap

Extensions, functions, and data stores are different types of tools available to agents at runtime. Each has its own purpose. The agent developer can choose to use them together or independently.

Improving model performance through targeted learning

An important aspect of using a model effectively is its ability to choose the right tool when generating an output, especially when tools are used at production scale. General training helps develop this skill, but real-world scenarios often require knowledge beyond the training data. Think of the difference between basic cooking skills and mastering a particular dish. Both require foundational cooking knowledge, while the latter requires targeted learning for more nuanced results.

Several approaches can help a model acquire this specific knowledge:

  • In-context learning: At inference time, this approach supplies a general-purpose model with a prompt, tools, and a few examples so it can learn on the fly how and when to use those tools for a particular task. ReAct is an example of applying this approach in natural language.
  • Retrieval-based in-context learning: This technique dynamically populates the model prompt by retrieving the most relevant information, tools, and associated examples from external memory. Examples include the Example Store in Vertex AI extensions and the data stores in the RAG architecture discussed earlier.
  • Fine-tuning-based learning: This approach trains a model on a larger dataset of specific examples before inference. It helps the model learn when and how to apply particular tools before receiving any user queries.

To understand these targeted learning approaches further, let us return to the cooking analogy.

  • Imagine a chef receiving a specific recipe (the prompt), key ingredients (relevant tools), and sample dishes (few-shot examples) from a customer. Using this limited information and general cooking knowledge, the chef must work out how to prepare a dish that best matches the recipe and the customer's preferences. This is in-context learning.
  • Now imagine the chef in a kitchen with a well-stocked pantry (an external data store) containing ingredients and cookbooks (examples and tools). The chef can dynamically select ingredients and cookbooks from the pantry and adapt more closely to the customer's recipe and preferences. This combines existing and new knowledge to produce better-informed, more refined dishes. This is retrieval-based in-context learning.
  • Finally, imagine sending the chef back to school to learn a new dish or set of dishes (pretraining on a larger dataset of specific examples). The chef can then approach future, previously unseen customer recipes with deeper understanding. This approach is useful when we want the chef to excel at a particular dish or knowledge domain. This is fine-tuning-based learning.

Each approach has trade-offs in speed, cost, and latency. Combining them within an agent framework lets us use their strengths and reduce their weaknesses to build a more robust, adaptable solution.

Quickstart for agents using LangChain

To provide a real-world example of executable agent operations, we will build a quick prototype with LangChain and LangGraph. These popular open-source libraries let users build custom agents by chaining sequences of logic, reasoning, and tool calls to answer user queries. We will use the gemini-1.5-flash-001 model and a few simple tools to answer a multi-stage user query, as shown in Snippet 8.

The tools are SerpAPI for Google Search and the Google Places API. After running the program in Snippet 8, the example output is shown in Snippet 9.

Snippet 8. Example agent and tools built with LangChain and LangGraph

Snippet 9. Output from the program in Snippet 8

Although this is a simple agent example, it shows how foundational components such as the model, orchestration, and tools work together toward a specific goal. The final section explores how these components are combined in managed products at Google scale, such as Vertex AI agents and generative playbooks.

Production applications with Vertex AI agents

This white paper has explored the core components of agents. Building a production application also requires integration with a user interface, evaluation frameworks, and mechanisms for continuous improvement. Google's Vertex AI platform simplifies this work with a fully managed environment containing the foundational elements discussed earlier. Through a natural-language interface, developers can define an agent's goals, task instructions, tools, delegated sub-agents, and examples to create the desired system behavior. The platform also provides development tools to test, evaluate, measure performance, debug, and improve the overall quality of an agent. Developers can focus on building and refining agents while the platform manages infrastructure, deployment, and maintenance.

Figure 15 presents an example agent architecture built on Vertex AI, using capabilities such as Vertex Agent Builder, Vertex Extensions, Vertex AI Agent Builder, function calling, and the Vertex Example Store. The architecture includes components needed for a production-ready application.

Figure 15. Example end-to-end agent architecture built on Vertex AI

You can try an example of this prebuilt agent architecture in the official documentation.

Summary

This white paper discussed the foundational building blocks of generative AI agents, their components, and effective ways to implement them as a cognitive architecture. Key points include:

  1. Agents can use one or more language models to determine when and how to transition between states, and use external tools to accomplish complex tasks that would be difficult or impossible for a model to complete alone.
  2. The orchestration layer is central to an agent's operation. This cognitive architecture structures reasoning, planning, and decision-making to guide the agent's actions. Techniques such as ReAct, Chain-of-Thought, and Tree-of-Thoughts provide a framework for receiving information, performing internal reasoning, and producing informed decisions or responses.
  3. Tools such as extensions, functions, and data stores are an agent's connection to the external world, allowing interaction with external systems and access to knowledge beyond its training data. Extensions bridge agents and external APIs to enable API calls and real-time information retrieval. Function calling generates arguments for functions that can run on the client side. Data stores provide access to structured or unstructured data for data-driven applications.

Agent technology will continue to advance, and we are only beginning to explore its possibilities. As tools improve and reasoning capabilities grow, agents will be able to address increasingly complex problems. Strategic agent chaining can combine specialists, each strong in a particular domain or task, into a mixture-of-agents approach that works across industries and problem areas.

Building complex agent architectures requires an iterative approach. Experimentation and refinement are essential to finding solutions for particular business cases and organizational needs. Because the foundational models are generative, no two agents are identical. By drawing on the strengths of the individual components, we can build useful applications that extend language-model capabilities and create real-world value.

Endnotes

  1. Shafran, I., Cao, Y. et al., 2022, “ReAct: Synergizing Reasoning and Acting in Language Models.” Available at: hflps://arxiv.org/abs/2210.03629
  2. Wei, J., Wang, X. et al., 2023, “Chain-of-Thought Prompting Elicits Reasoning in Large Language Models.” Available at: hflps://arxiv.org/pdf/2201.11903.pdf.
  3. Wang, X. et al., 2022, “Self-Consistency Improves Chain of Thought Reasoning in Language Models.” Available at: hflps://arxiv.org/abs/2203.11171.
  4. Diao, S. et al., 2023, “Active Prompting with Chain-of-Thought for Large Language Models.” Available at: hflps://arxiv.org/pdf/2302.12246.pdf.
  5. Zhang, H. et al., 2023, “Multimodal Chain-of-Thought Reasoning in Language Models.” Available at: hflps://arxiv.org/abs/2302.00923.
  6. Yao, S. et al., 2023, “Tree of Thoughts: Deliberate Problem Solving with Large Language Models.” Available at: hflps://arxiv.org/abs/2305.10601.
  7. Long, X., 2023, “Large Language Model Guided Tree-of-Thought.” Available at: hflps://arxiv.org/abs/2305.08291.
  8. Google. “Google Gemini app.” Available at: hflp://gemini.google.com.
  9. Swagger. “OpenAPI Specification.” Available at: hflps://swagger.io/specification/.
  10. Xie, M., 2022, “How Does In-Context Learning Work? A Framework for Understanding the Differences from Traditional Supervised Learning.” Available at: hflps://ai.stanford.edu/blog/understanding-incontext/.
  11. Google Research. “ScaNN (Scalable Nearest Neighbors).” Available at: hflps://github.com/google-research/google-research/tree/master/scann.
  12. LangChain. “LangChain.” Available at: hflps://python.langchain.com/v0.2/docs/introduction/.
CakeGrowth QR code

Download“Google Agents White Paper” original PDF, scan the QR code, follow the account, and reply with: 20250108

Original source:https://www.kaggle.com/whitepaper-agents