HumanInTheLoopExtentions.ValidateAndConvertResponse 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.
Validate a HITL response and convert it to a ChatMessage
public static System.Collections.Generic.List<Microsoft.Extensions.AI.ChatMessage>? ValidateAndConvertResponse(this Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequest request, System.Collections.Generic.Dictionary<string,Microsoft.Extensions.AI.UserInputRequestContent>? pendingRequests);
static member ValidateAndConvertResponse : Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequest * System.Collections.Generic.Dictionary<string, Microsoft.Extensions.AI.UserInputRequestContent> -> System.Collections.Generic.List<Microsoft.Extensions.AI.ChatMessage>
<Extension()>
Public Function ValidateAndConvertResponse (request As CreateResponseRequest, pendingRequests As Dictionary(Of String, UserInputRequestContent)) As List(Of ChatMessage)
Parameters
- request
- CreateResponseRequest
CreateResponse request payload
- pendingRequests
- Dictionary<String,Microsoft.Extensions.AI.UserInputRequestContent>
Dictionary of pending function approval requests
Returns
A ChatMessage representing the validated HITL response.