FeedbackRouteBuilder.WithHandler(FeedbackLoopHandler) Method

Definition

Configures the route to handle feedback actions using the specified feedback loop handler.

public Microsoft.Agents.Builder.App.FeedbackRouteBuilder WithHandler(Microsoft.Agents.Builder.App.FeedbackLoopHandler handler);
member this.WithHandler : Microsoft.Agents.Builder.App.FeedbackLoopHandler -> Microsoft.Agents.Builder.App.FeedbackRouteBuilder
Public Function WithHandler (handler As FeedbackLoopHandler) As FeedbackRouteBuilder

Parameters

handler
FeedbackLoopHandler

A delegate that processes feedback data when a feedback action is received. Cannot be null.

Returns

The current FeedbackRouteBuilder instance for method chaining.

Remarks

This method sets up the route to invoke the provided handler when an incoming activity represents a feedback action (i.e., an invoke activity with the name "message/submitAction" and an actionName of "feedback"). Use this method to define custom logic for handling feedback submissions in the feedback loop.

Applies to