IAgentResponseHandler.OnAgentResponseAsync 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.
Handles a discrete response from the agent. This is typically used to send messages to the user.
public System.Threading.Tasks.ValueTask OnAgentResponseAsync(Microsoft.Agents.AI.AgentResponse message, System.Threading.CancellationToken cancellationToken);
abstract member OnAgentResponseAsync : Microsoft.Agents.AI.AgentResponse * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function OnAgentResponseAsync (message As AgentResponse, cancellationToken As CancellationToken) As ValueTask
Parameters
- message
- AgentResponse
The message from the agent.
- cancellationToken
- CancellationToken
Signals that the operation should be cancelled.