Agentic AI DevOps Bootcamp · Session 30 · Summary Notes
Recap of the previous session
- Installing the Plugin in Claude Code
- Using the Operations Agent
- Sharing the Agent and a Health Page
- Spec-Driven Development
In this session
- Amazon Bedrock and Bedrock AgentCore
- Ways to Build an Agent
- Ways to Call an LLM
- Ways to Run an Agent
In one sentence: an agent is a set of separate choices: how you build it, which LLM it calls, who hosts that LLM, and where the agent runs.
1. The agent and the LLM are two different things
| Part | What it is |
|---|---|
| Agent | Your application: the prompt, the memory (context), the agent loop, the tools, and the code that calls the LLM |
| LLM | A service the agent calls. It has to be hosted somewhere |
Because they are separate, you choose them separately. Changing where the LLM comes from does not decide where the agent runs.
Ask four questions, in this order:
- Which LLM? An open model or a commercial one.
- Who hosts it? You, a hosting provider or the model’s vendor.
- How do you build the agent? From scratch, with a framework, or with a ready-made agent.
- Where does the agent run? On your machine, on your own infrastructure or on a managed agent platform.
2. Ways to build an agent
| Way | What you write | Choose it when | Example |
|---|---|---|---|
| From scratch | Everything: prompt, memory, agent loop, tool calls and LLM calls | You want to learn how it works, or need full control | Plain Python with the Anthropic or Groq SDK and MCP tools |
| With a framework | The prompt and the settings. The loop and memory are built in | You want less code and your own application | LangChain (others include LangGraph, CrewAI and Strands Agents) |
| Ready-made agent | No agent code. You add MCP servers, skills and guardrails as a plugin | People will use it on their own machines | Claude Code Desktop |
A framework handles many internal steps for you. From scratch, you write each of them.
3. Open LLMs and commercial foundation LLMs
| Open LLMs | Commercial (enterprise) foundation LLMs | |
|---|---|---|
| Can you download the model? | Yes | No |
| Can you run it yourself? | Yes, with enough compute | No |
| How you reach it | Run it yourself, or use a hosting provider | The vendor, or a cloud provider such as Bedrock |
| Examples | Llama, Mistral, Qwen, gpt-oss |
Claude (Anthropic), GPT (OpenAI) |
Strictly, “foundation model” also covers open models, so Bedrock lists both kinds under that name. The real difference is whether you can download and run the model.
Which one?
- For agentic and generative AI work, most teams choose commercial models for the quality. Open models are used too.
- Agents do best with reasoning models, which are good at picking tools and deciding the next step.
- Open models suit narrower tasks, or cases where you must keep everything in your own infrastructure.
- Predicting a number or a category from table data (such as loan approval) needs a machine learning model, not an LLM.
4. Who hosts the LLM
A. You host it (open models only)
Ollama is a runtime that runs open models on your infrastructure and offers them as an API. Your agent calls that API.
- It runs on your laptop, on an EC2 server or in a Kubernetes pod. It is also available as a container image.
- You pay no provider per call, but you pay for the compute.
- High availability, scaling and capacity are your job.
B. A hosting provider runs it
You do not manage any model servers. The provider keeps the model available.
| Provider | What it hosts | How you sign in | Who bills you |
|---|---|---|---|
| Groq | Open models | Groq API key | Groq |
| Amazon Bedrock | Commercial models such as Claude, and open models | Your AWS credentials (IAM) | AWS |
With Bedrock you do not need a separate account or key with Anthropic to call Claude. When you run the agent on your machine, it uses your local AWS login. On EC2, ECS or EKS, give the application an IAM role instead of stored keys.
A model ID such as us.anthropic.claude-sonnet-4-6 starts with us., which means requests are served from US regions. Pick what suits your location and rules, and check that your account has access to the model.
C. You call the vendor directly
You create an API key with Anthropic or OpenAI, call their API and pay them. Choose this when you want the vendor’s own API with no cloud provider in between.
Model names to recognise
| How you get it | Example model IDs |
|---|---|
| Ollama (you host) | llama3.2:3b, qwen3:8b, gpt-oss:20b |
| Groq | openai/gpt-oss-20b, openai/gpt-oss-120b |
| Amazon Bedrock | us.anthropic.claude-sonnet-4-6, openai.gpt-oss-120b-1:0 |
| Anthropic directly | claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5 |
| OpenAI directly | gpt-6.2-astra, gpt-6.2-sol, gpt-6-luna |
Model names change often. Always check the provider’s model list before you use one.
When to choose which
| Your situation | A good choice |
|---|---|
| Your company already works in AWS and wants one bill and IAM control | Bedrock |
| You want to try open models quickly without any servers | Groq |
| You want the vendor’s API itself | Anthropic or OpenAI directly |
| Data and model must stay in your own infrastructure | Ollama with an open model |
5. How your code calls the LLM
The call depends on both choices: the provider and how you build the agent.
| Provider | From scratch | With LangChain |
|---|---|---|
| Anthropic | Anthropic SDK | ChatAnthropic |
| OpenAI | OpenAI SDK | ChatOpenAI |
| Groq | Groq SDK, or the OpenAI SDK pointed at Groq | ChatGroq |
| Amazon Bedrock | boto3 (the AWS SDK), converse call |
ChatBedrockConverse |
| Ollama | Its HTTP API | ChatOllama |
- Moving the LangChain agent to Bedrock is a small change: install
langchain-awsinstead oflangchain-anthropic, change the line that creates the model and use a Bedrock model ID. The rest of the agent stays the same. - From scratch on Bedrock, you use boto3, as you would for any AWS service: create a
bedrock-runtimeclient, send the messages and read the text from the response. - LangChain uses the AWS SDK underneath. You just do not see it.
6. Ways to run an agent
| Where it runs | How people reach it | Who manages the infrastructure | Choose it when |
|---|---|---|---|
| Local API | A port on your machine | You | Building and testing |
| Claude Code Desktop | Chat on each person’s machine | No server at all | One person or a team, used on demand |
| Your own infrastructure | Your API endpoint | You | Everyone must reach one agent, or it runs all the time, and you want control |
| Managed agent platform | The platform’s endpoint | The platform | The same, but you do not want to manage servers |
Your own infrastructure
| Option | In short | Fits when |
|---|---|---|
| EC2 | A virtual server you manage | One simple service |
| ECS | AWS’s container service | You use containers without Kubernetes |
| Kubernetes (EKS) | The agent as a Deployment | Your applications already run on Kubernetes |
Here you also set up logging, metrics, monitoring, resources and scaling, as for any other application, for example a Java service.
Managed agent platform: Amazon Bedrock AgentCore
You deploy your agent to AgentCore, it runs there, and you get an endpoint to call. AWS manages the infrastructure and provides much of the monitoring, such as dashboards and metrics.
7. Amazon Bedrock and Bedrock AgentCore are not the same
| Amazon Bedrock | Amazon Bedrock AgentCore | |
|---|---|---|
| What you get | LLMs you can call | A platform that runs your agent |
| Where your agent runs | Wherever you put it | On AgentCore |
| What you still do | Build, deploy and operate the agent | Build the agent and deploy it |
- Using Bedrock does not deploy your agent.
- AgentCore runs the agent, but the agent still calls an LLM, from Bedrock or elsewhere.
8. Which use case needs what
| Request | What to use | Why |
|---|---|---|
| A manager wants a status or numbers dashboard | Publish an Artifact and share the private link | No server needed. The page shows the data from when it was published, so publish again for new numbers |
| A manager wants to ask their own questions | Share the plugin repository. They run the setup commands in Claude Code | Still no central server. They also need their own access and credentials |
| Customers around the world chat with your support agent | A central agent: your own infrastructure or AgentCore | They cannot use your desktop setup, and many requests arrive at once |
| Check the platform every 15 minutes, raise tickets and fix issues | A central agent on a schedule | It must run day and night. A desktop task needs your machine awake and the app open |
| “Deploy the payment service, commit X” typed in Microsoft Teams | A central deployment agent called by a webhook | The agent reads the request, uses its skills and MCP tools to start the pipeline (Jenkins, Azure DevOps or AWS CodePipeline) and replies |
The more useful MCP tools and skills an agent has, the more it can do.
A central or managed deployment costs money, so have a real use case for it.
9. Example combinations
| Goal | Build | LLM | Run |
|---|---|---|---|
| Learn how agents work | From scratch | claude-sonnet-5-5 from Anthropic, or openai/gpt-oss-20b on Groq |
Local API |
| Helper for your own DevOps work | Ready-made | The Claude model in the app | Claude Code Desktop |
| Central operations agent in an AWS company | LangChain | Claude on Bedrock | EKS |
| Customer chatbot, no team for servers | Framework | A fast model such as claude-haiku-5-5 |
AgentCore |
| Everything inside your own infrastructure | Framework | qwen3:8b or gpt-oss:20b on Ollama |
Kubernetes or EC2 |
These are starting points, not rules. Larger open models need GPU servers, and your project’s architecture decisions come first.
Summary
Key takeaways
- The agent and the LLM are separate choices.
- Build from scratch, with a framework, or use a ready-made agent.
- Open models can be hosted by you or by a provider. Commercial models you can only call.
- Get an LLM by hosting it (Ollama), through a hosting provider (Groq, Bedrock) or directly from the vendor.
- Run the agent locally, in Claude Code, on your own infrastructure or on a managed platform.
- Bedrock gives you models. AgentCore runs your agent.
Quick revision
| Term | Meaning |
|---|---|
| Open LLM | A model you can download and run |
| Ollama | A runtime that serves open models from your own infrastructure |
| Groq | A provider that hosts open models behind an API |
| Amazon Bedrock | The AWS service for calling LLMs |
| boto3 | The AWS SDK for Python |
ChatBedrockConverse |
LangChain’s class for calling models on Bedrock |
| Bedrock AgentCore | The AWS managed platform that runs your agent |
| Managed agent platform | You deploy the agent; the provider runs the infrastructure |
