Observe and improve agents bui... Note

Observe and improve agents built outside Foundry

Microsoft Foundry now offers general availability for external agents, allowing them to be registered and observed without migration. Agents running outside Foundry can send OpenTelemetry traces to Application Insights for monitoring and evaluation. This enables users to observe production scenarios that weren't accounted for during testing, as demonstrated by the Contoso Travel example. Connecting an external agent requires an Application Insights resource, an agent emitting OpenTelemetry traces with specific attributes, and appropriate Foundry user roles. Traces are sent to Application Insights, and the agent is then registered in Foundry using its OpenTelemetry ID. The trace view allows for step-by-step investigation of agent runs, while the Insights feature analyzes traces to identify recurring issues and suggest next steps. Human expert review can be captured through Foundry's "human in the loop" process, where annotations of traces can be converted into reusable test cases for a golden dataset. Shared quality criteria can be defined to standardize evaluation across an agent's performance. This enables consistent measurement before and after changes, with continuous evaluation of production traces. Issues can be fixed either directly by updating agent instructions or indirectly through tools like Agent Optimizer, which proposes updated skills based on trace analysis. Ultimately, this process creates a loop from detecting issues to shipping fixes and ongoing monitoring.