ResponsesServerServiceCollectionExtensions.AddResponsesServer Method
Definition
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.
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.