iTranslated by AI
re:Invent 2025: Function calling vs. Agents - Selecting the Right AI Integration Approach
Introduction
By transcribing various overseas lectures into Japanese articles, we aim to make hidden, high-quality information more accessible. In this project, which operates under that concept, here is the presentation we are covering this time!
For transcription articles of re:Invent 2025, please check the information gathered in this Spreadsheet.
📖 re:Invent 2025: AWS re:Invent 2025 - Function calling vs agents: Choose the right AI approach (DEV204)
In this video, Guido Nebiolo, who leads the Generative AI group at Reply, explains the design choices enterprises face when integrating AI-powered workflows into real-world systems. He compares three approaches—function calling, single agent, and multi-agent systems—using a concrete example of planning a trip to Las Vegas. He presents selection criteria based on five perspectives: task complexity, predictability vs. adaptability, cost and latency, control of business logic, and autonomy. He explains that function calling is suitable for simple FAQ bots, single agents for multi-step adaptive reasoning, and multi-agents for complex workflows requiring expertise across different domains. He also touches on architectural patterns like the ReAct pattern, supervisors, and swarms, as well as the importance of observability and the use of tools like Amazon Bedrock.
Please note that this article was automatically generated while maintaining the content of the original lecture as much as possible. Please be aware that there may be typos or incorrect information.
Main Content
Design Choices in Generative AI Integration and the Fundamentals of Function Calling
Thank you. I believe you can hear my voice. Thank you all for joining this session. As announced, my name is Guido Nebiolo. I work at Reply. We are a systems integrator. I lead a group that is 100% focused on Generative AI and AI. However, I believe you are here not to hear me talk about myself, but to hear about the critical design choices many enterprises face when adopting Generative AI.
The question is, how do you choose the right approach when integrating AI-powered workflows into real-world systems? Depending on task complexity and requirements, we can design systems using several different paradigms. You can simply use function calling within an LLM, you can deploy a single autonomous agent, or you can orchestrate multiple agents to work together. Each approach has its own advantages and trade-offs, and as the adoption of Generative AI grows across the industry, making the right architectural choice becomes increasingly important for performance, security, and especially business value.
Let's start with the simplest approach, which is function calling. Modern LLMs, like the models available on Amazon Bedrock, can interface with external systems through function calling. This is a well-known feature that allows developers to define functions that the LLM can call or trigger when it needs to access external data, perform calculations, or execute something in code, rather than just generating free-form text like "The temperature tomorrow will be around 25 degrees." The model can call a function to retrieve the result and return an accurate value.
This is a game-changer for reliability because structured, deterministic output replaces unpredictable text generation. This makes it safer to integrate AI into real-world business workflows, such as retrieving live data, executing calculations, checking inventory, verifying customer balances, or validating reservation details—all through deterministic external function calls. For example, think of a banking assistant. When a customer asks, "What is my current balance?", you don't want the model to guess the answer; you simply want it to trigger a backend function to retrieve the exact value from the customer database. Function calling is, in essence, a bridge between the probabilistic reasoning typical of LLMs and the deterministic world of software APIs.
Now, let's apply this to a concrete travel scenario. Imagine you need to plan a trip to Las Vegas for re:Invent next week. I prompt the LLM, asking, "I am going to Las Vegas next week for a few days. What should I pack?" A standard LLM would provide a generic list of clothes, jackets, and sunglasses, but it wouldn't consider that by saying "next week," I have already provided information about the season and what I truly need or should bring during my stay.
Now, if we equip this model with function calling capabilities, we can enhance its response generation. The model recognizes that my request involves a location and dates, and it can trigger a function to retrieve something specific for that exact moment. Using this actual weather forecast data, it can then suggest exactly what I need. The result becomes much more accurate and personalized.
This is an example of performing function calling on Amazon Bedrock. It is very simple. Essentially, you include the tools that the LLM can access within your prompt definition. Function calling is highly efficient but only effective for known, simple interactions. As you scale up to real-world scenarios, you encounter enterprise workflows with dozens of tools, interdependent functions, and more dynamic requirements, which quickly become very difficult. The more functions you have, the more interaction between the LLM and your application. Therefore, your system must maintain business logic and handle this interaction with the LLM. At this point, you start using reasoning within the AI itself, which leads us to agents.
From ReAct Pattern to Agents: Autonomous Problem Solving and Multi-Agent Systems
The ReAct pattern, which stands for reasoning and acting, has shown that LLMs can do more than just predict text or directly call functions. LLMs can reason. For example, they might need to check a specific thing first, and based on that result, trigger something else—essentially the same way humans think about how to solve a problem. By integrating descriptions of these tools into the prompt, the model can dynamically choose which tool to use, plan several steps ahead, analyze intermediate results, and adjust its actions based on the outcomes. This allows us to build systems where AI is no longer a passive responder, but actively drives problem-solving, which leads directly to agentic architecture.
Agents go one step further than the function calling mentioned earlier. They are essentially autonomous AI processes that receive a goal, reason about how to solve it, break that task into multiple steps, and decide when to call functions, use tools, or retrieve external data. Let's see this in action. Let's take the scenario from earlier and try to extend it. In this scenario, we need a system capable of autonomously handling multiple aspects, not just calling a single get weather function.
For instance, it could retrieve weather forecasts, check hotel availability, confirm flights for getting here, or even suggest activities depending on the duration of the stay or the season. The agent is provided with multiple tools: a weather API, a flight search tool, a hotel booking tool, and perhaps integration with my calendar to check upcoming appointments. The key difference here is that you no longer need to manually orchestrate different steps. The agent can reason step-by-step, and as its understanding of the problem evolves, it can decide when to call each tool and what is needed.
For example, let's say you want to plan a trip to Las Vegas next week. The agent can decide to call various tools to get information about the weather, check flights and hotel availability, and query the weather forecast for those days, ultimately recommending what I should pack. Sometimes, one agent is not enough. Some business problems are more complex and need to be split into specialized roles to provide better results. This is where multi-agent systems come in.
Instead of a single agent juggling between different domains, we can create multiple agents that can collaborate. Each can focus on a specific area, with its own expertise, its own dedicated tools, and its own dedicated instructions. Continuing with the travel scenario, but developing it a bit further, we could have a weather agent focused purely on the forecast, a flight agent focused on flight searching, a hotel agent for accommodations, and an activity agent that suggests everything you can do during this period.
On top of that, we can place a coordinator agent that essentially orchestrates all of them. Each agent operates independently and efficiently, staying within the boundaries of its own domain, which improves accuracy and modularity. In this example, you could improve a single agent without touching the others and without the risk of breaking what is working. This is how human organizations function: different experts working together through managers.
Design Patterns and Operational Challenges of Multi-Agent Architectures
Before diving into the challenges, let's look at two basic multi-agent architectures you can choose. The first is the hierarchical pattern, also known as supervisor. In this pattern, there is a central orchestrator—which we can call a supervisor—that decomposes the overall goal into different subtasks and distributes them to specialized worker agents. Each worker focuses only on its own domain without calling other workers. The supervisor collects and consolidates all the results. This approach offers clear control over who is responsible for what, easy debugging, and a straightforward sequence of all the different actions.
The second is the network, also known as swarm. Here, multiple agents operate as peers in a mesh, with a shared blackboard. There is no single boss. Instead, agents communicate directly to share information and coordinate different tasks. This pattern clearly provides higher resilience, because if one agent fails, others can continue working. However, on the other hand, while it allows for parallel problem-solving, it can become very complex to manage.
As someone smarter than me once said, with great power comes great responsibility. There are several challenges with multi-agent architecture. The first is the complexity of orchestration, which involves deciding who can talk to whom, when, and in what order. The second is latency and cost. Multiple agents mean more LLM calls, and more LLM calls using more tools potentially lead to longer response times.
The third challenge is debugging. As a distributed system, when something goes wrong, you need detailed observability to trace the complete chain of agent decisions across different agents. Last but not least, there is security and safety. Each agent can have access to different sensitive data, and you need to carefully control permissions in a way that ensures every agent stays within its boundaries.
Imagine a real failure. Due to prompt misalignment or a tool API changed without notification, two agents could recursively and infinitely call each other, and the agent might fail to call that specific function. Nobody notices until the user complains. That is why powerful observability and monitoring, such as Strands using OpenTelemetry, is so crucial when deploying multi-agent architectures.
Selection Criteria for the Right Approach: Task Complexity, Cost, and Autonomy
Choosing between function calling and multi-agent architecture is not about picking the most advanced option just because it is hard to manage. It is about choosing the right level of intelligence and autonomy required for your use case. In my opinion, the first important factor to consider is task complexity. This refers to how many steps and moving parts are in your problem.
Is this a simple flow where the user asks and receives an answer, or is it a multi-step task that evolves using context? If the task is fairly straightforward, function calling is sufficient—it's faster and easier. If it involves multiple subtasks, context interpretation, and chained decision-making, such as in the travel booking example, an agent might be a good choice. On the other hand, if the task involves multiple parallel domains—for example, if legal compliance and finance are both needed to solve the same problem and coordination is required—a multi-agent system is usually more appropriate.
The second consideration is predictability versus adaptability. The question you want to answer here is how strictly you need to control the system's behavior versus preferring it to adapt in some open-ended way to solve the given problem. Function calling offers complete predictability. It is a one-shot process where the LLM proposes a function, the system executes it if needed, and returns the result for deterministic control.
Next, we have agents, which offer more adaptability. Essentially, they dynamically decide which tools need to be used based on the user's intent and the evolution of context and problem-solving. And there is the multi-agent system, which allows for emergent behavior. Basically, agents might solve sub-problems in different ways based on their domain knowledge. This is very powerful, but clearly, predictability is lower. And that is where excellent observability becomes important.
The third consideration is cost and latency. Do you prioritize performance or budget? Where are the constraints? Essentially, do you need a highly responsive system, or can you manage with a system that solves problems asynchronously? Function calls are cheaper and very fast, requiring minimal token usage and fewer model calls. Agents are more expensive because they often go through multiple steps of reasoning to solve a problem. And multi-agent systems multiply cost and latency.
Then there is control over business logic. Essentially, who defines how the system behaves—you, or the model itself?
With function calling, you control everything. With agents, part of the logic is built into the prompt and the reasoning steps the LLM executes. With multiple agents, you are basically delegating everything to them in the way they think is correct to solve the problem. Last but not least, regarding autonomy: how much initiative should the AI take?
Function calling is reactive; the user asks something and the model responds. On the other hand, agents are proactive; they decompose goals, decide on different steps to take, and can even ask follow-up questions if necessary to solve the problem. With multi-agents, you have a collaborative and autonomous perspective. Basically, they assign roles to each other, distribute tasks, and can solve problems with minimal or no human input required.
Here is a summary table to visualize this. Basically, for low complexity and low autonomy, you clearly use function calling. For moderate complexity and adaptive reasoning, you can use a single agent. For high complexity involving collaboration across multiple domains, you need multi-agent orchestration. For example, consider product price retrieval; retrieving product prices is a simple function calling task. Nothing more complex is needed. You use a single agent for vacation planning. This is a single domain where the agent can call different tools, different APIs, and decompose problems within the boundaries of the domain. On the other hand, building a corporate legal advisor involves multiple tasks across clearly different domains, which is where a multi-agent system comes into play.
Let's map out real-world use cases. For function calling, examples include FAQ bots, currency conversion, everything that can be solved very simply, or looking up order status. Next, there are agents. Single agents include travel planning assistants, personal research assistants, content summarizers, etc.—the typical assistants you might use in your daily work in a few years. For multi-agents, use cases include complex report generation, troubleshooting across the entire enterprise, etc. Even project management or legal due diligence can be performed by multiple agents placed in the same solution.
In short, the more ambiguity, specialization, or collaboration involved in the problem, the more agentic approaches help. The less specialization required, the more function calling helps. Let's summarize. First of all, always start simple. Do not overcomplicate the problem. Use function calling when deterministic output is sufficient, and you can use single agents for multi-step tasks that require adaptive reasoning. Use multi-agents when you need expertise in different domains and complex workflows.
Secondly, always plan for observability. When using LLMs, something will always break. Always plan for observability, cost management, and especially governance. And thirdly, last but not least, remember that AWS provides various end-to-end tools that can support users at every level. Amazon Bedrock, Lambda, Step Functions, and even agent orchestration exist. All these services can be used to build agentic AI solutions.
I hope this session has provided a clear model for how to apply AI to your projects. Here is my contact information. Please feel free to reach out. Don't forget to leave feedback for this session from the mobile app. Thank you for listening. Thank you very much.
- This article is automatically generated using Amazon Bedrock, maintaining the content of the original video as much as possible.








































Discussion