ResponsesServerServiceCollectionExtensions.AddResponsesServer Method

Definition

Registers the Responses API server SDK services into the dependency injection container.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResponsesServer(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Azure.AI.AgentServer.Responses.ResponsesServerOptions>? configure = default);
static member AddResponsesServer : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Azure.AI.AgentServer.Responses.ResponsesServerOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddResponsesServer (services As IServiceCollection, Optional configure As Action(Of ResponsesServerOptions) = Nothing) As IServiceCollection

Parameters

services
IServiceCollection

The service collection to add services to.

configure
Action<ResponsesServerOptions>

Optional callback to configure ResponsesServerOptions.

Returns

The service collection for chaining.

Applies to