ResponsesBuilderExtensions Class
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.
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 |