Introduction to Building Agents and Tool Integrations
Agent fundamentals and the ReAct pattern, tool use with the Converse API, managed agents with Amazon Bedrock Agents, code-first agents with Strands Agents, and reliable tool design.
- 5 lessons
- Module quiz
A foundation model on its own can only produce text from what it already knows and what the prompt contains. An agent extends this by giving the model tools, such as APIs, databases and code execution, and running a loop in which the model decides which tool to call, the application runs it, and the result informs the model's next step until the task is complete. Agents can therefore use live data and take actions in other systems.
AWS supports several ways to build agents. The Converse API provides tool use directly, leaving the loop to the application. Amazon Bedrock Agents is a managed service that runs the loop, with action groups backed by Lambda functions or returned to the application, and knowledge bases attached. Strands Agents is an open-source, code-first framework that can be hosted on AgentCore Runtime, Lambda or containers. Whichever is used, the reliability of an agent depends heavily on how its tools are designed.
What the exam expects
Questions often describe an agent that chooses the wrong tool, which is fixed by improving tool names, descriptions and schemas, or one that acts on the wrong user's data, which is prevented by taking identity from the session context rather than from arguments the model supplies. Recognising the tool_use stop reason and the managed versus code-first choice are also common topics.
How this module is organised
Understanding Agents and the ReAct Pattern explains the agent loop and planning patterns. Implementing Tool Use with the Converse API explains how tools are defined and called. Configuring Agents with Amazon Bedrock Agents covers the managed agent service, and Building Agents in Code with Strands Agents covers the code-first framework. Designing Reliable Tools for Agents explains how to define, validate and guard tools so agents use them safely.
- Understanding Agents and the ReAct Pattern Lesson 1
- Implementing Tool Use with the Converse API Lesson 2
- Configuring Agents with Amazon Bedrock Agents Lesson 3
- Building Agents in Code with Strands Agents Lesson 4
- Designing Reliable Tools for Agents Lesson 5
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 4 questions