AWS and Flightscape Reduce Agent Token Use by Up to 71%
AWS and Flightscape Reduce Agent Token Use by Up to 71%
AI Agents & Automation

AWS and Flightscape Reduce Agent Token Use by Up to 71%

AWS Machine LearningNov 18, 2026

AWS and Flightscape report that three changes to a large-JSON agent reduced tokens by up to 71% and average latency by nearly 80%.

AWS and airline-operations platform Flightscape describe three ways to reduce the context and response-time burden of an AI agent working with large JSON data. In a November 17, 2026, technical post, the teams report testing the techniques on Flightscape’s Training Schedule Optimization agent, which checks crew-training assignments against business rules and handles more than 40 tools.

The agent uses LangGraph with Amazon Bedrock AgentCore. Before optimization, requests often took more than 15 seconds, and repeatedly passing large payloads into the model consumed tokens and could fill the context window. The test workload included a representative 23 MB payload, within a system designed for inputs exceeding 20 MB.

The first change moves large request, response and validation artifacts into Amazon S3, leaving AgentCore memory to store references and lightweight session information. The second stores oversized tool-result lists and returns a small sample and handle; the agent can request specific pages when it needs more data. The third replaces large nested dictionaries with compact descriptions, such as counts and samples for lists and key counts for nested objects. Full data remains retrievable from storage.

In a five-question conversation, AWS reports token use fell from about 289,500 to 82,900, while average trace latency dropped from 15.4 seconds to 3.1 seconds. Across 100 sample questions, tokens declined from 23.6 million to 8.5 million and average trace latency from 7,930 to 2,461 milliseconds. For the heaviest single query, reported turn latency fell from about 165 seconds to 9.9 seconds.

These are results from the teams’ specific benchmarks, not a general performance guarantee. The approach is aimed at agents that repeatedly handle large structured data: it keeps full records available while sending the model only summaries or slices needed for a particular turn.

Industry Impact

Lower-cost, faster data-heavy agents

Airline operations and enterprise AI

Overview

Flightscape and AWS show how agents that repeatedly process large structured records can use fewer tokens and respond faster by storing full data outside the model context and retrieving summaries or selected pages as needed. For software developers and ML engineers, the techniques offer practical design patterns for agents with large payloads and many tools. Product managers and business leaders can weigh potential efficiency gains against the need to validate results on their own workloads. The reported benchmarks are specific to Flightscape’s agent, not a general performance guarantee.

Key Impact Points

In a 100-question test, token use fell from 23.6 million to 8.5 million and average trace latency from 7,930 to 2,461 milliseconds.

Keeping full artifacts in S3 while passing references, samples, and summaries can help avoid repeatedly filling model context with large JSON payloads.

The heaviest tested query’s reported turn latency dropped from about 165 seconds to 9.9 seconds, though results may vary by workload.

Opportunities

Optimize large-data agent workflows

Airline operations and enterprise AI

The article supports an implementation opportunity for organizations building agents that repeatedly process large JSON requests, tool results, or validation artifacts. Developers can move full records to storage, return compact summaries and handles, and retrieve specific pages only when needed. This pattern may reduce repeated token consumption and latency while keeping the underlying data available. Teams could apply it to existing workflows or use it when designing new agents, then compare token use, latency, and task quality against a baseline. The reported results come from Flightscape’s tests; the article does not establish general savings, a commercial offering, or quantified revenue potential.

  • Large-data agent optimization

    Problem: Agents that repeatedly pass large structured payloads to a model can consume substantial tokens, strain context limits, and increase latency.

    Solution: Store full artifacts externally, return compact summaries and references from tools, and fetch specific records or pages when needed.

    Target Users: Teams developing enterprise agents that process large JSON data and tool results.

    Business Value: Potentially lower token use and latency while preserving access to full records; validate against the team’s workload and quality requirements.

    Revenue Potential: No revenue estimate or commercial product is described; potential value is operational efficiency.

Reference link

https://aws.amazon.com/blogs/machine-learning/reducing-token-costs-and-latency-in-amazon-bedrock-agentcore-json-workloads

Image Source Link

https://docs.aws.amazon.com/images/prescriptive-guidance/latest/security-reference-architecture-generative-ai/images/guide-img/a349f18f-a9fd-43a3-9a48-27534bf6412a/images/062194d1-d580-4fa1-b650-7ee796052c27.png

Community Discussion (0)

No discussions yet. Be the first to start the conversation!