Microsoft Foundry Agent Service introduces the Copilot harness, a managed execution system for building AI agents that reason, use tools, and complete complex, long-running tasks. It abstracts away common orchestration machinery, allowing developers to focus on an agent's expertise and evaluation. The service also offers general availability of long-running resilience for hosted agents, providing recovery foundations for workflows that may span hours or days.
Read original on Azure Architecture BlogBuilding robust AI agents often requires implementing complex orchestration logic for coordinating model and tool calls, managing context, and handling multi-step tasks. Microsoft's Copilot harness in Foundry Agent Service provides a managed execution system that abstracts these complexities. This allows developers to define agents declaratively, focusing on the agent's core logic, skills, and tools rather than the underlying infrastructure. The service manages the agent loop, sandboxing, and coordination of steps toward a desired outcome.
The harness is designed to manage working context dynamically as tasks evolve and to coordinate model and tool interactions within configured limits and policies. This approach enables teams to focus on improving agent expertise and evaluating results, leading to faster development cycles.
For workflows that require custom frameworks or execution logic, Foundry Agent Service offers hosted agents. A significant enhancement is the general availability of long-running resilience, which allows hosted agents to recover from interruptions during tasks that can last hours or days. Foundry detects interruptions and restarts the work with the original input. Developers are responsible for saving progress and intermediate results so the agent can resume from the last checkpoint. This also implies careful consideration of idempotency for external system updates to prevent duplicate actions upon restart.