TL;DR
I recently completed the final project of Udacity's Future AWS Agent Engineer Nanodegree Program, which I had the opportunity to pursue through the AWS AI & ML Scholarship. And just like that, I've officially graduated from the Nanodegree 🎓
This was my third project working with AI agent systems, but my first time building a multi-agent system using Strands Agents and Amazon Bedrock AgentCore.
The project was a fictional e-commerce customer support system for NovaMart. Instead of having one agent handle everything, it used an Orchestrator and four specialized agents: Inventory, Policy, Refund, and Communication. They coordinated their work, shared information through a common WorkflowState in DynamoDB, and retrieved information from three separate Knowledge Bases covering Returns, Shipping, and Warranty.
Along the way, I worked with Amazon Bedrock Guardrails, AgentCore Runtime and Memory, parallel retrieval using Python, CloudWatch, and AWS X-Ray. I also implemented optimistic locking to handle concurrent updates to the shared workflow state and configured logging and tracing to inspect the application's execution.
The project test run ended with 120/120 points, which was a pretty nice way to finish my final project!
When I first saw that this was a multi-agent project, I honestly expected it to be much harder than my previous two projects. But as I started working through it, I realized that some concepts that had confused me earlier were now familiar. That doesn't mean everything worked perfectly from the beginning, though! There was still plenty of figuring things out, debugging, and testing along the way.
This isn't a step-by-step tutorial. There are already many great resources explaining AWS, RAG, and multi-agent systems. I wanted to share what I built, how the different pieces came together, what I learned along the way, and why this project felt easier than I expected.
Table of Contents
- I Thought This Was Going to Be My Hardest Project
- So, What Was I Actually Building?
- Understanding the Architecture Through the Agents
- Here Is the Architecture I Put Together
- How Do Agents Share Information?
- Three Knowledge Bases, One Policy Agent
- Making Retrieval Happen in Parallel
- The Other Pieces Around the Agents
- Getting Everything to Work Together
- 120/120 Points!
- Looking Behind the Scenes With Observability
- And Yes, I Cleaned Up the AWS Resources Too
- Why This Project Felt Easier Than My Previous Two
- If You Are Also Starting Out
- Three Projects Later, I Finally Graduated!
- I Would Love to Hear From You
- Let's Stay Connected
I Thought This Was Going to Be My Hardest Project
I want to start with something I didn't expect to say when I first opened this project: I thought this was going to be the hardest one.
It was my third project in the Future AWS Agent Engineer Nanodegree Program, and this time, the requirement was to build a multi-agent system. I had already worked with AI agents in my previous two projects, but I hadn't built a system where multiple specialized agents had to coordinate their work.
And the first thing that came to my mind was:
"Okay, so now I have to make multiple agents work together?"
I started imagining all the things that could go wrong. What if one agent didn't have the information it needed? What if two agents needed to update the same information? How would they know what another agent had already done? And, probably the biggest question, how would all their work come together into one response?
It sounded like a lot!
But as I started working through the project, I noticed that I wasn't as lost as I had been during my first project. I already had some experience with agent instructions, tool interactions, Knowledge Bases, AWS services, and deployment. I had seen how an agent could use a tool to perform an operation and how a Knowledge Base could provide application-specific information.
There were still plenty of new things to learn, but at least I had some experience to build on.
So, what was I actually building this time? Let's take a look.
So, What Was I Actually Building?
The project was a fictional e-commerce customer support system for a company called NovaMart.
Think about an online store where customers might need help with all sorts of things. Someone might have a question about a product's warranty, another customer might want to understand the return policy, and someone else might need help with a refund or an order-related request.
The system needed to handle these different types of customer requests. But instead of giving one agent every responsibility, the project used multiple specialized agents.
There was an Orchestrator, which coordinated the workflow, along with four specialized agents: Inventory, Policy, Refund, and Communication.
All five agents had different responsibilities, but they needed to work together to handle a customer's request. They also needed a way to share information gathered along the way.
Once I understood the overall idea, I wanted to look at what each agent was actually responsible for.
Understanding the Architecture Through the Agents
The system was made up of five agents, each with a specific responsibility. Here's how they fit into the overall workflow.
The Orchestrator
Let's start with the Orchestrator. As the name suggests, it was responsible for coordinating the overall workflow. When a customer made a request, the Orchestrator helped determine which specialized agents were needed and coordinated the work involved in handling it.
If you've worked with a single-agent system before, you might have one agent handling a request and using different tools to get things done. In this project, those responsibilities were handled by separate agents, and the Orchestrator brought their work together.
The Inventory Agent and Refund Agent
Next, we have the Inventory Agent and the Refund Agent. The Inventory Agent retrieved information from the Orders and Customers tables in DynamoDB. This included details such as order status, product information, and customer details.
The Refund Agent used the information gathered by the Inventory Agent as context for handling refund-related requests. Before initiating a return, it also checked the order and customer records in DynamoDB to verify eligibility against the return policy.
In this project, the return window depended on the customer's tier. Standard customers had a 30-day return window, while Premium customers had 60 days. The order also needed to have been delivered.
If the order met the requirements, the Refund Agent could initiate the return by updating the order information in DynamoDB.
The Policy Agent
Then there's the Policy Agent. This agent handled policy-related questions using information retrieved from three Knowledge Bases: Returns, Shipping, and Warranty.
For example, if a customer wanted to understand the warranty conditions for a product, the Policy Agent needed to retrieve the relevant information from the policy documents rather than rely on what the model already knew.
I also had three smaller retriever agents, one for each policy area. They worked together to retrieve information for the Policy Agent.
This was one of the parts I spent more time implementing, especially when it came to retrieving information from multiple Knowledge Bases. I'll get into that a little later.
The Communication Agent
And finally, we have the Communication Agent. Think about what happens behind the scenes when a customer makes a request. Different agents may handle different tasks, information gets retrieved, and the workflow state gets updated.
But the customer doesn't need to know about every step that happened behind the scenes. They need a response that brings the relevant information together.
That's what the Communication Agent was responsible for. It was called at the end of the workflow, read the full WorkflowState, and used the available information to draft a response for the customer.
So, we now have an idea of what each agent does. But how do they actually work together when a customer sends a request?
Here Is the Architecture I Put Together
I put together a diagram to show how a customer request moves through the application and how the agents work together along the way.
The workflow of my NovaMart multi-agent customer support system.
The first thing to notice is that the Orchestrator doesn't send every request to every agent. It decides which agents are needed based on what the customer is asking.
For example, an order-related request might need the Inventory Agent. A refund request needs the order information first, so the Inventory Agent and Refund Agent work together. A policy question goes through the Policy Agent and its retrievers.
As the agents finish their work, the Orchestrator saves their findings in WorkflowState. The Communication Agent is then called at the end to prepare the customer-facing response.
There are two things I want you to keep in mind as we go further: the agents need a way to share the information they gather, and the Policy Agent needs a way to retrieve information from multiple sources.
Those were two parts I spent time working on, so let's look at them separately.
How Do Agents Share Information?
One thing I wanted to understand while working on this project was how the agents kept track of information gathered by other agents.
Let's take the refund example from earlier.
The Inventory Agent first retrieves the order details. The Refund Agent then needs those details to check whether the order is eligible for a return.
But how does it access the information gathered by the Inventory Agent?
This is where WorkflowState comes in.
For this project, I used a DynamoDB table to maintain a shared state for each customer session. Whenever the Orchestrator invokes a specialized agent, it saves that agent's result to WorkflowState. The next agent that needs the information can then read it from there.
Here's a look at the kind of information maintained in the table:
| Field | What it stores |
|---|---|
session_id |
Unique identifier for the customer session |
customer_id |
Customer associated with the session |
inventory_agent |
Order and customer information retrieved by the Inventory Agent |
policy_agent |
Policy information retrieved by the Policy Agent |
refund_agent |
Refund decision or processing result |
communication_agent |
Final customer-facing response |
version |
Current version of the workflow record |
For example, when the Inventory Agent finishes retrieving an order's details, the Orchestrator saves its findings under inventory_agent. The Refund Agent can then read that information from WorkflowState instead of having to repeat the same lookup.
The same idea applies to the other agents. Their results are maintained in the same record as the workflow progresses, and the Communication Agent reads the full WorkflowState when preparing the final response.
What Is Optimistic Locking, and Why Did I Need It?
There was another part of maintaining WorkflowState that I needed to get right: optimistic locking.
I hadn't worked with this concept much before, so let me explain it with a simple example.
Imagine two operations reading the same WorkflowState record at almost the same time. Both read version 1. The first operation updates the record successfully, and its version becomes 2. But the second operation is still working with the older version 1.
If the second operation saves its changes without checking the version, it could overwrite an update made by the first operation.
That's what optimistic locking helps prevent.
In my implementation, before saving an update, the code checks whether the record's current version still matches the version that was originally read.
If it matches, the update goes through and the version is incremented. If it doesn't, DynamoDB rejects the update through a conditional check.
I also added retry handling for these conflicts. When an update fails because the version has changed, the code reads the latest WorkflowState, gets the current version, and tries again. It makes up to three attempts before reporting an error.
So, the process looks something like this:
- Read the WorkflowState record and its current version.
- Prepare the update.
- Check whether the version is still the same.
- If it matches, save the update and increment the version.
- If it doesn't, read the latest record and retry.
Working through this made me think about something beyond just getting the agents to do their individual tasks. When multiple agents depend on information from the same workflow, it's equally important to make sure that information is maintained correctly.
That was one of the things I got to work through while implementing this project.
Three Knowledge Bases, One Policy Agent
Now that we've looked at how the agents share information, let's look at the other part I mentioned: how the Policy Agent retrieves information.
In my previous project, I had already worked with a Knowledge Base to give an agent access to application-specific information. This time, I had three separate Knowledge Bases: Returns, Shipping, and Warranty.
Each Knowledge Base contained documents related to its respective policy area. For example, information about return eligibility would be in the Returns Knowledge Base, while shipping-related information would be in the Shipping Knowledge Base.
Think about a customer asking:
"My order arrived late, and the product also has an issue. What are my options?"
This isn't necessarily a question about just one policy. The customer might need information about shipping as well as warranty coverage.
That's why the Policy Agent had to work with all three Knowledge Bases rather than depend on a single source of information.
For this project, I created the three Knowledge Bases using the existing S3 Vectors infrastructure and indexes provided in the starter environment. I also configured them with the relevant policy documents and synced the data so they were ready for retrieval.
A Quick Reminder: What Is RAG?
This is where Retrieval-Augmented Generation (RAG) comes in.
If you're new to RAG, the idea is quite simple. Instead of asking a model to answer a question based only on what it already knows, we first retrieve relevant information from an external source and provide it to the model as context.
For example, a general-purpose model might know how return policies usually work, but that doesn't mean it knows NovaMart's actual return window or warranty conditions.
With RAG, the application can retrieve information from NovaMart's policy documents and use it to generate an answer grounded in those documents.
The basic flow looks something like this:
Customer Question
|
v
Retrieve relevant information
|
v
Provide retrieved context
to the model
|
v
Generate a grounded response
In this project, the Policy Agent had three smaller retriever agents, one for each Knowledge Base.
Whenever it needed policy information, all three retrievers were run at the same time. Their results were then brought together for the Policy Agent to review and use in its final answer.
And this brings us to the next part: how did I get all three retrievers to run at the same time?
Making Retrieval Happen in Parallel
Since each retriever was searching a separate Knowledge Base, these operations were independent. There was no reason to wait for the Returns retriever to finish before starting the Shipping retriever, for example.
That's where parallel execution came in.
I used Python's ThreadPoolExecutor to run all three retrieval tasks concurrently.
Here's a simplified look at how it worked:
Policy Agent
|
Start all three searches
|
---------------------------
| | |
v v v
Returns Shipping Warranty
Retriever Retriever Retriever
| | |
v v v
Results Results Results
| | |
---------------------------
|
v
Collect all results
|
v
Combine the results
|
v
Policy Agent
|
v
Grounded policy answer
For the Python implementation, there were two pieces I used:
-
ThreadPoolExecutor(max_workers=3)creates a pool of three worker threads, allowing the three retrieval tasks to run concurrently. -
as_completed()lets the application collect each result as its corresponding task finishes, rather than waiting for them in the order they were started.
Once all three retrieval operations finished, I combined their results and passed them back to the Policy Agent, which used the retrieved information to prepare its answer.
Why does this matter? If we ran these operations one after another, the application would have to wait for each retrieval to finish before starting the next one. Running independent operations concurrently gives us a way to avoid that sequential waiting.
Of course, the actual time saved depends on how long each retrieval takes and how the underlying services respond. But for this particular workflow, parallel execution made sense.
While testing the implementation, I also ran into a small NameError because I hadn't defined the retrievers dictionary used by the parallel retrieval function. I added the missing dictionary, mapped Returns, Shipping, and Warranty to their respective retriever agents, and ran the test again. This time, the retrieval worked as expected!
The Other Pieces Around the Agents
So far, we've looked at the agents, how they shared information, and how the Policy Agent retrieved information from the Knowledge Bases.
But there were a few more AWS services and configurations supporting the application. I want to go through those too, because they helped me understand what was needed beyond the agent logic itself.
Strands Agents: Building the Agent System
I used the Strands Agents SDK to implement the agent system.
It was the framework I worked with to define the agents, their instructions, and the tools they could use. I also used it to put together the overall agent workflow.
What helped me was being able to work on each agent's responsibilities separately while still having the Orchestrator coordinate the overall workflow. It made the code easier to follow than trying to think about the entire application as one large agent handling every responsibility.
AgentCore Runtime: Deploying the Application
I used Amazon Bedrock AgentCore Runtime to deploy the agent application. This provided the environment in which the application could run beyond my local development setup.
One thing I had already learned from my previous project was that a successful deployment doesn't automatically mean every capability works correctly. The runtime can be deployed successfully while a particular agent, retrieval operation, or configuration still needs attention.
So, I treated deployment as another milestone, not the final proof that everything worked.
AgentCore Memory: Configuring Session Memory
Another TODO I worked on was configuring Amazon Bedrock AgentCore Memory.
I implemented the memory setup using agentcore_control.create_memory(), with the SESSION_SUMMARY strategy and a seven-day event expiry.
This was part of the deployment pipeline. After deploying the application to AgentCore Runtime, I created the Memory resource and waited for it to become active.
This gave me an opportunity to work with AgentCore's memory configuration and understand how session summaries and event expiry can be set up for an agent application.
WorkflowState, Memory, and Knowledge Bases: Where Does Each Fit?
While working on this project, I came across three components that might sound similar at first: WorkflowState, AgentCore Memory, and Knowledge Bases.
We've already looked at WorkflowState and Knowledge Bases, but I think it's worth putting them side by side because they serve different purposes.
| Component | What it is used for | In this project |
|---|---|---|
| WorkflowState | Stores information and progress associated with the current workflow | DynamoDB maintained the shared state that the agents could read and update |
| AgentCore Memory | Provides memory capabilities for retaining session context | Configured with a SESSION_SUMMARY strategy and seven-day event expiry |
| Knowledge Bases | Retrieve relevant information from a collection of documents | Provided the Returns, Shipping, and Warranty policy information |
A simple way to think about them is:
- WorkflowState keeps track of what's happening in the current workflow.
- Memory provides a way to retain useful context across interactions.
- Knowledge Bases give the application access to information stored in its documents.
They aren't interchangeable. Each has its own role, and understanding that helped me make sense of why the project used all three.
Guardrails: Giving the Application Boundaries
I also configured an Amazon Bedrock Guardrail and published the required version for the project.
An agent's instructions are important, but they're not the only thing to consider when building an application. You also need to think about the boundaries around its behavior.
Guardrails provide an additional layer of protection by applying configured policies to the model's inputs and outputs. For this project, I configured the guardrail to handle harmful content, certain types of personal information, and specific topics that the application should not engage with.
I applied the guardrail across all five agents. It wasn't a replacement for good agent instructions or application-level checks, but it added another layer of control to the system.
And with the agent logic and supporting services in place, it was time to see how everything behaved when I ran the complete application.
Getting Everything to Work Together
By this point, I had implemented the agent logic, worked on the shared workflow state, configured the Knowledge Bases, and set up the supporting services.
But there was still the AWS configuration and deployment side of things to bring together.
The starter environment already provided some of the foundational infrastructure, including the DynamoDB tables, S3 resources, IAM execution role, and CloudWatch log group. So I didn't have to create every resource from scratch.
My work involved implementing the required agent logic and project TODOs, configuring and syncing the three Knowledge Bases, setting up Guardrails and Memory, deploying the application, and configuring observability.
I think it's worth mentioning this because projects can start from different places. In this case, having some of the infrastructure already in place meant I could spend more time working on the agent implementation and understanding how the different services fit together.
With the implementation and configurations in place, I was ready to run the complete test suite.
120/120 Points!
This was one of my favourite moments in the project.
After implementing the agent system and working through the configurations, I ran the complete test suite:
python tests/test_agent.py all
And the result?
120/120 points. 100%!
I was really happy to see that, especially because this was the final project of the Nanodegree. After working through all the different pieces, seeing that result felt great.
The test run helped verify how the agents handled their responsibilities, how information was retrieved, how WorkflowState was maintained, and how the results came together.
A multi-agent system has several components that need to work together, so testing those interactions is just as important as testing the individual agents.
But I also wanted a way to look beyond the test results and understand what was happening during execution. That's where observability came in.
Looking Behind the Scenes With Observability
When an application has multiple agents and several AWS services involved, looking only at the final response doesn't tell you everything.
For example, if a customer receives an incomplete response, you need a way to investigate what happened. Was there an issue with the Orchestrator? Did one of the agents fail? Was retrieval taking longer than expected? These are the kinds of questions that become important when you're working with an application made up of several components.
For this project, I configured Amazon CloudWatch and AWS X-Ray. I set up INFO-level logging for the AgentCore Runtime and configured X-Ray tracing with 100% sampling.
The X-Ray Trace Map from my project.
I also ran the project scenarios and published traces so I could inspect the execution.
Looking at the traces gave me another perspective. I could see how the different components of my application appeared in the execution trace, rather than just looking at the response returned to the customer.
It made me realise that building an application that works is one part of the job. Being able to understand what's happening when something doesn't work as expected is just as important.
And I think that's something worth learning early, even when you're working on a project rather than a production application.
And Yes, I Cleaned Up the AWS Resources Too
After taking the required screenshots and submitting the project, I cleaned up the AWS resources I had created. I didn't want to leave things running unnecessarily and risk incurring additional charges.
I also checked the cleanup results to make sure the project-specific resources had been removed.
I think this is something worth remembering when working with cloud services. Finishing a cloud project also means knowing what you created and cleaning up what you no longer need.
It's a small step, but an important one, especially when you're learning with a limited cloud budget.
Why This Project Felt Easier Than My Previous Two
This is probably the part I didn't expect to write when I started the project.
I thought building a multi-agent system would be much harder than my earlier projects. But as I worked through it, I started realizing that I wasn't approaching everything as something completely new anymore.
In my first project, I was trying to understand how an agent could follow instructions, decide what to do, call a tool, and interact with a backend. I also learned something important from the evaluation: an agent understanding what a customer means doesn't necessarily mean it has enough information to take an action.
In my second project, I spent more time understanding how different AWS services fit together. I worked with AgentCore, Strands, Knowledge Bases, Memory, Gateway, permissions, deployment, and monitoring. There were quite a few unfamiliar things, and I remember trying to understand how all those pieces were supposed to connect.
This time, I had something to build on.
When I came across AgentCore Runtime, it wasn't a completely new concept. When I worked with Knowledge Bases, I already had some experience with retrieval. And when I needed to think about agent instructions, tool interactions, or AWS permissions, I had come across similar ideas in my previous projects.
Of course, there were still new things to learn. Shared workflow state, optimistic locking, and coordinating multiple agents were concepts I had to spend time understanding. But I wasn't starting from zero.
And I think that's what made the difference.
Maybe the project itself wasn't necessarily easier. Maybe I had become a little more comfortable with the concepts and the process of figuring things out.
I also think there's something nice about learning through a series of projects. With your first project, you spend a lot of time getting familiar with the basics. When you move to the next one, some of those concepts start to make more sense. And by the time you reach another project, you can spend more time thinking about the new problems instead of trying to understand everything from the beginning.
You might not notice that progress while you're making it. Sometimes, you only realise how much you've learned when you look back.
And that was probably one of my favourite things about completing these three projects.
If You Are Also Starting Out
I wanted to include this because I remember how unfamiliar some of these concepts felt when I started working on my first project.
If you're learning about AI agents or AWS and come across a multi-agent architecture for the first time, it can look like a lot. You might see several agents, databases, Knowledge Bases, and AWS services and immediately think that you need to understand all of them before you can even begin.
At least, that's how I approached things initially!
Something that helped me across these three projects was changing the questions I asked myself. Instead of thinking, "How am I supposed to understand this entire architecture?", I started asking:
"What does my application need to do, and what is the next piece I need to understand?"
If you're building a multi-agent system, I'd start by understanding the responsibilities. Don't begin by deciding how many agents you need. First, understand what the application needs to accomplish. Then think about whether those responsibilities should be handled by separate agents.
Having more agents doesn't automatically make a system better. More agents also mean more coordination, more communication, and more things to test. The goal isn't to have as many agents as possible. It's to have an architecture that makes sense for the problem you're trying to solve.
I'd also suggest not trying to learn every AWS service in depth before starting a project. When I came across something unfamiliar, I found it much more useful to ask:
"What problem is this service solving in my application?"
That question helped me more than trying to memorize a long list of AWS services.
And one more thing: don't expect everything to work on the first attempt. Sometimes you'll understand something by reading about it, sometimes by implementing it, and sometimes by fixing something that broke. Give yourself room to work through all of that.
You don't have to understand the entire system before you begin. Start with the problem, understand what the application needs to do, and work through one piece at a time.
Three Projects Later, I Finally Graduated!
And now for the part I'm especially happy to share!
With this project, I completed the Future AWS Agent Engineer Nanodegree Program.
My Future AWS Agent Engineer Nanodegree certificate!
I also wanted to take a moment to thank everyone who made this experience possible.
Thank you to Udacity, everyone involved in the Future AWS Agent Engineer Nanodegree Program, and especially the AWS AI & ML Scholarship for giving me this opportunity.
To everyone from my cohort, especially La Shara (@earlgreyhot1701d), thank you for sharing your experiences, helping one another, and being part of this journey. I'm glad I got to learn alongside you!
And to everyone here on DEV, I have a special thank-you for you too! I shared my first two projects here, and so many of you took the time to read them, leave comments, share your thoughts, and show me so much love. It genuinely meant a lot. I'm really happy I get to share the final project and this little milestone with you all as well 💙
I Would Love to Hear From You
I'd love to hear about your experiences too!
Have you ever worked on something that seemed intimidating at first but turned out to be much easier once you got started? Or perhaps the other way around?
Tell me about it in the comments. I'd love to hear your stories!
🤝 Let's Stay Connected
| Place | Find me here |
|---|---|
| GitHub | building things → hemapriya-kanagala |
| resources & updates → hemapriya-kanagala | |
| X | random dev thoughts → @KanagalaHema |






Top comments (16)
Congratulations, Hema! 🎉 Really happy to see you complete this project. I liked what you said about the project feeling easier because you had become more comfortable with the concepts. That's so true in development. The more we build and experiment, the less intimidating things start to feel. Also, getting multiple agents to work together while thinking about things like optimistic locking and observability is no small achievement. Well done! ❤️
Thank you so much, di 😀
This is so cool!! 😸🚀
I really like how you separated the agents' responsibilities and managed their shared state with optimistic locking.
And 120/120 points! Huge congratulations on graduating too! 🎉💚
Thank you so much, Nyaomaru 😀 means a lot.
Congratulations akka 🎊
You said the last project is simpler than the other 2. By just looking at the diagrams my mind is blown 😄
It takes a lot of patience and effort to do a course with hands on projects, that to ai agents 🫡
Thank you so much ra 😀 It looks complicated, but once you start working on it, you slowly get the hang of it 😄
Also, you should definitely apply for the scholarship when it opens next time. I think you'll love the program!
I'm curious, has this ever happened to you? You start working on something thinking, "This is going to be so difficult!" But as you spend more time with it, you slowly start figuring things out, and it doesn't seem quite as intimidating anymore.
I'd love to hear what that was for you. Maybe it was a project, a new language, or something you had been putting off learning. Share your experience below. I'm sure many of us can relate 😀
Also, if anyone wants another take on this project, my classmate La Shara (@earlgreyhot1701d) wrote about her experience with it too! We worked on the same project, but our articles ended up being pretty different, so I thought some of you might enjoy reading hers as well 😄
From One Chatbot to Five Agents: My AWS Agent Engineer Nanodegree
The version 1 to version 2 walk-through is a clear way to explain optimistic locking. Your retry reads the latest WorkflowState and saves again, so does the agent's result get re-checked against what changed in between, or is the same result written onto the newer version? I'd expect that to matter most for the Refund Agent, since its decision depends on what the Inventory Agent already saved.
Hey Kartik, good question! So, the retry itself doesn't make the agent run its decision again. It just reads the latest WorkflowState and tries to save the update against that version.
But in the Refund Agent's case, there's another check too. It uses the Inventory Agent's findings as context, but before initiating a refund request, it fetches the order and customer details from DynamoDB again and checks whether the order is eligible. So it doesn't rely only on what the Inventory Agent had found earlier.
that's a nice idea project looks like agent is built on supervisor achitecture . but all test case pass is actually blessing 😍
Yes, exactly Abhisek! It took me 2 attempts to get everything right, so when it finally passed, it felt like such a blessing for sure 😀
Interesting topic, great write-up, bookmarked this!
Thank you so much, Leob 😃
It's really good, Didi! ❤️
Thank you so much, Tara 😀