1.0.0-beta.1 (2026-11-04)
Features Added
- Initial release of
Azure.AI.AgentServer.Activity— a .NET library for hosting a Microsoft 365
Agents SDKAgentApplicationas an Azure AI Foundry hosted agent that speaks the activity
protocol (POST /activity/messages). ActivityServer.Run(...)one-liner startup that wires Kestrel, health probes, OpenTelemetry, and
the activity endpoint, with overloads for the way your agent is constructed:Run<TAgent>()— host anAgentApplicationsubclass by type.Run(app => ...)— register handlers inline on the builtAgentApplication(no agent class).Run(agentApp)— host a pre-builtAgentApplicationinstance.Run(Func<IServiceProvider, AgentApplication>)— factory registration with access to DI.Run(RequestDelegate)— own the raw request pipeline (the Microsoft 365 Agents SDK is not
initialized).
- Composition on the shared Core host builder via
AgentHostBuilder.AddActivity<TAgent>(),
AddActivity(agentApp), andAddActivity(Func<IServiceProvider, AgentApplication>). - Self-hosting on your own
WebApplicationviaAddFoundryActivity()/MapFoundryActivity()
(aliased asAddActivityServer()/MapActivityServer()), including aRequestDelegateoverload
ofMapFoundryActivityfor owning the request pipeline in a self-hosted app. This is also the
two-line conversion path for an existing Microsoft 365 Agents SDK application. ActivityServerOptionsfor configuring the built stack: outbound-auth model (DigitalWorker),
turn-stateStorage, the outboundConnectionsprovider, theConnections:*
ConnectionConfigurationmapping, and aConfigureServiceshook.- Foundry outbound-auth is configuration-driven:
ActivityEnvironmentderives the M365
Connections:*settings from the Foundry-native identity (managed identity for the simple
agent-instance model,IdentityProxyManagerfor the digital worker blueprint + FMI exchange
model) and the SDK-native connection provider mints the outbound reply token. No process
environment is mutated. - Session resolution (
agent_session_idquery /x-agent-session-idheader / environment /
generated), sanitized session-id response header,x-platform-error-sourceerror classification
(user/platform/upstream), and distributed tracing viaActivityProtocolActivitySource.