Azure Service Bus: decouple agents with business events

Separate the agent proposal, the backend-confirmed fact, and the consumer effect. An outbox, Service Bus, and inbox architecture — at-least-once delivery, delivery counts, lock duration, and DLQ — with a Python/SQLite example tested locally for lost acknowledgments, duplicates, and out-of-order events.

Continue ReadingAzure Service Bus: decouple agents with business events

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.

Continue ReadingMicrosoft Foundry Agent Service: how to measure the cost per completed task