AIToday
Large Language ModelsAI Business & IndustryAmazon AI BlogPublished: Jul 29, 2026, 04:00 JST

AWS shows market surveillance with LangGraph and Strands agents

AWS shows market surveillance with LangGraph and Strands agents

3 Key Points

  1. What happened

    Amazon published a technical guide demonstrating how to build a multi-agent market surveillance system using LangGraph for workflow orchestration and Strands Agent for reasoning within individual nodes. The architecture combines deterministic workflow routing with localized LLM intelligence, integrated on AWS infrastructure including the newly available Amazon Bedrock AgentCore.

  2. Why it matters

    Enterprise surveillance and compliance systems need both strict, predictable execution paths and flexible reasoning to handle real-world ambiguity. This pairing lets organizations ground AI workflows in predefined logic while retaining LLM intelligence only where it is needed—reducing hallucination risk and improving auditability for financial services and regulated industries.

  3. What to watch

    The complete solution is available on GitHub. LangGraph's checkpoint system enables human-in-the-loop review and recovery from failures, while Strands agents use Anthropic's Claude Sonnet 4.6 model on Bedrock with adaptive thinking (budget of 8000 tokens) and prompt caching to manage cost and context window overflow.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The post addresses a critical tension in enterprise AI: the need for deterministic, auditable workflows versus the flexibility of LLM reasoning. Traditional single-agent systems either lack the structure necessary for compliance and reliability, or they constrain reasoning too severely. LangGraph solves this by treating workflows as directed graphs with persistent state management and checkpoint-based recovery—features essential for production systems handling human-in-the-loop review and long-running investigations. Strands Agent, meanwhile, provides the reasoning engine within specific nodes, applying LLM intelligence only where ambiguity or dynamic analysis is required. This separation of concerns is particularly valuable for financial services, where workflows must follow regulatory logic (market surveillance, reporting, compliance gates) but still benefit from intelligent analysis of trading patterns and suspicious activity.

The architecture also addresses security and cost concerns. By having Strands agents explicitly retrieve data schemas before querying, the system avoids hallucinated SQL and injection attacks. The use of Anthropic's adaptive thinking (with a token budget) and prompt caching on Bedrock further controls cost and context management. The persistent state layer maintained by LangGraph ensures that if a node fails or a human analyst needs to review intermediate results, the system can resume from exactly where it left off—a critical capability for investigations that may span hours or days.

FAQ
What two frameworks are combined in this approach?
LangGraph (for macro-level workflow orchestration and state management) and Strands Agent (for model-agnostic reasoning and tool integration within individual workflow nodes).
How does the system prevent SQL injection and hallucination?
The surveillance agent separates discovery (get_report_list, get_report_schema) from retrieval (run_report). The run_report tool validates every filter against the report schema and builds a parameterized SQL query, so the LLM never writes raw SQL and filter values cannot be injected.
What model powers the Strands agent in this example?
Anthropic's Claude Sonnet 4.6, deployed via Amazon Bedrock in us-east-1 with a max token limit of 16000, adaptive thinking budget of 8000 tokens, and default prompt caching enabled.
Amazon AI BlogRead Original Article

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleGemini API Agents Now Default to 3.6 Flash, Add Budget Controls and Hooks