Develop Cost and Latency Monitoring

implementationChallenge

Prompt Content

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.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations