Azure.AI.AgentServer.Core Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
| Name | Description |
|---|---|
| AgentHost |
Static entry point for creating agent servers.
Use CreateBuilder(String[]) to compose protocols and build the server.
For one-line startup, use the protocol-specific |
| AgentHostApp |
Represents a configured and runnable agent server application. Wraps the underlying WebApplication and provides escape-hatch access for advanced scenarios. |
| AgentHostBuilder |
Composable builder for configuring and starting an agent server. Wraps WebApplicationBuilder (via CreateSlimBuilder(String[])) and exposes protocol registration, health checks, tracing, shutdown, and escape hatches. |
| AgentHostMiddlewareExtensions |
Extension methods for standalone (Tier 3) server setups that do not use AgentHostBuilder. Registers all Core middleware services and adds them to the pipeline in one call each. |
| AgentHostOptions |
Configuration options for the agent server host. |
| AgentRestoreContext |
Describes the session context supplied by the platform after restoring an agent process. |
| FoundryAgentRequestContext |
Request-scoped platform identity context, backed by an
AsyncLocal<T> so it flows across
|
| FoundryCallIdHandler |
A DelegatingHandler that echoes the per-request
|
| FoundryEnvironment |
Provides strongly-typed access to Foundry platform environment variables injected by the Azure AI Foundry hosting infrastructure. Values are cached when first accessed and refreshed after the platform applies snapshot restore environment overrides. |
| PlatformContext |
Carries the platform-injected identity context for a single request.
The Foundry platform sets |
| PlatformHeaders |
Defines the HTTP header names used across the AgentServer platform. These headers form the wire contract between the Foundry platform, agent containers, and downstream storage services. |
| ServerVersionRegistry |
Registry that collects version identity segments from protocol packages.
Each protocol registers its identity string (e.g., |
| SseKeepAliveSession |
Coordinates Server-Sent Events (SSE) writes to an output stream so that
long-running responses can periodically emit |
Interfaces
| Name | Description |
|---|---|
| IAgentSnapshotLifecycle |
Defines callbacks that prepare an agent process for snapshot capture and restore it for a session. |