Microsoft Foundry Agent Service: how to measure the cost per completed task
The platform bills per token, per session and per transaction, but the business pays per completed task. See how to add up every attempt and the measurement, divide only by the completed tasks and see what each decision does to the number, with a Python example run locally.
