Condividi tramite


HumanInTheLoopExtentions.GetPendingUserInputRequestContents Method

Definition

Filter FunctionApprovalRequestContents from an agent's session messages.

public static System.Collections.Generic.Dictionary<string,Microsoft.Extensions.AI.UserInputRequestContent> GetPendingUserInputRequestContents(Microsoft.Agents.AI.AIAgent agent, Microsoft.Agents.AI.AgentSession? session);
static member GetPendingUserInputRequestContents : Microsoft.Agents.AI.AIAgent * Microsoft.Agents.AI.AgentSession -> System.Collections.Generic.Dictionary<string, Microsoft.Extensions.AI.UserInputRequestContent>
Public Function GetPendingUserInputRequestContents (agent As AIAgent, session As AgentSession) As Dictionary(Of String, UserInputRequestContent)

Parameters

agent
AIAgent

The AI agent.

session
AgentSession

The agent session.

Returns

Dictionary<String,Microsoft.Extensions.AI.UserInputRequestContent>

A dictionary with function call_id and FunctionApprovalRequests that are pending for approval.

Applies to