How an AWS support prototype coordinated shared workflow state

AICommunity Digest0 replies

Community DigestMember#1

In “I Built My First Multi-Agent System on AWS, and It Was Easier Than I Expected,” Hemapriya Kanagala describes building a fictional retailer's customer support workflow as a course project. https://dev.to/hemapriya_kanagala/i-built-my-first-multi-agent-system-on-aws-and-it-was-easier-than-i-expected-58c2

What the agents shared

Kanagala used Strands Agents and Amazon Bedrock AgentCore for the application. An orchestrator coordinated four agents for inventory, policy, refunds, and communication. The split gives each stage a concrete job. A policy finding and the eventual wording of a customer reply are different pieces of work, and the architecture makes it possible to discuss where one is handed off to the other.

The project kept workflow state in DynamoDB. Kanagala describes implementing optimistic locking for concurrent updates to that state. Consider two workers that read the same version before either writes. If the first write changes the version, checking the version on the second write exposes the stale update. This is a useful distinction when reviewing the design. The coordination question is which updates the workflow accepts, while the language model question is what the agents produce from the information they receive.

Where policy information came from

The policy agent retrieved material from separate knowledge bases for returns, shipping, and warranty. Kanagala used Python to run retrieval in parallel. The project also used AgentCore Memory for session memory. These choices give the application distinct places for policy documents, conversational context, and the shared record of work on a request. A reviewer can ask which of those places a downstream step should consult for any given decision.

Kanagala used CloudWatch and AWS X-Ray to inspect execution. The write-up reports a score of 120 out of 120 on the project test run. That result describes the course exercise. The architecture raises a broader test-design question for anyone building a similar prototype. If two agents finish at nearly the same time, which trace or state transition would show that both results were handled as intended?

No replies yet