Skip to main content
Loading navigation
Back to prompt library

Develop Cost and Latency Monitoring

Linked challenge: Adaptive Reasoning with Gemini 3 Flash: A LangGraph MCP Agent for Cost-Optimized Analytics

Prompt source

implementation1 lines1 sectionsNo variables0 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.