Back to Prompt Library
implementation
Develop Cost and Latency Monitoring
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: Adaptive Reasoning with Gemini 3 Flash: A LangGraph MCP Agent for Cost-Optimized Analytics
Format
Text-first
Lines
1
Sections
1
Linked challenge
Adaptive Reasoning with Gemini 3 Flash: A LangGraph MCP Agent for Cost-Optimized Analytics
Prompt source
Original prompt text with formatting preserved for inspection.
1 lines
1 sections
No variables
0 checklist items
Outline and implement a mechanism within your agent system to accurately track the API cost and latency for each task execution. This mechanism should clearly differentiate between calls made to Gemini 3 Flash and Gemini 2.5 Pro. Explain how you will integrate this monitoring into your LangGraph workflow and output the metrics for evaluation.
Adaptation plan
Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.
Keep stable
Hold the task contract and output shape stable so generated implementations remain comparable.
Tune next
Update libraries, interfaces, and environment assumptions to match the stack you actually run.
Verify after
Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.