HumanInTheLoopExtentions.GetPendingUserInputRequestContents 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.
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
A dictionary with function call_id and FunctionApprovalRequests that are pending for approval.