ResponsesBuilderExtensions Class

Definition

Extension methods for AgentHostBuilder to register the Responses protocol for one-line startup.

public static class ResponsesBuilderExtensions
type ResponsesBuilderExtensions = class
Public Module ResponsesBuilderExtensions
Inheritance
ResponsesBuilderExtensions

Methods

Name Description
AddResponses(AgentHostBuilder, Func<IServiceProvider,ResponseHandler>, Action<ResponsesServerOptions>)

Registers the Responses protocol with a factory delegate that creates the handler. Use this overload when you need full control over handler construction while still having access to the IServiceProvider.

AddResponses(AgentHostBuilder, ResponseHandler, Action<ResponsesServerOptions>)

Registers the Responses protocol with a pre-constructed handler instance.

AddResponses<THandler>(AgentHostBuilder, Action<ResponsesServerOptions>)

Registers the Responses protocol with the agent server builder using the specified THandler as the response handler.

Applies to