Freigeben über


HumanInTheLoopExtentions.ValidateAndConvertResponse Method

Definition

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.

Applies to