Language

SlackFeedbackLoopHandler Delegate

Definition

Represents a Slack-aware feedback loop handler for an AgentApplication route.

public delegate System.Threading.Tasks.Task SlackFeedbackLoopHandler(ISlackTurnContext turnContext, ITurnState turnState, FeedbackData feedbackData, CancellationToken cancellationToken);
type SlackFeedbackLoopHandler = delegate of ISlackTurnContext * ITurnState * FeedbackData * CancellationToken -> Task
Public Delegate Function SlackFeedbackLoopHandler(turnContext As ISlackTurnContext, turnState As ITurnState, feedbackData As FeedbackData, cancellationToken As CancellationToken) As Task 

Parameters

turnContext
ISlackTurnContext

A Slack-specific turn context for the current turn.

turnState
ITurnState

The turn state object that stores arbitrary data for this turn.

feedbackData
FeedbackData

The feedback loop data.

cancellationToken
CancellationToken

A cancellation token that can be used to observe cancellation.

Return Value

A task that represents the asynchronous handler operation.

Applies to