Condividi tramite


HumanInTheLoopExtentions.ToHumanInTheLoopFunctionCallItemResource Method

Definition

Overloads

ToHumanInTheLoopFunctionCallItemResource(FunctionApprovalRequestContent, String, CreatedBy)

Source:
HumanInTheLoopExtentions.cs

Convert a HITL request to an ItemResource

public static Azure.AI.AgentServer.Contracts.Generated.OpenAI.FunctionToolCallItemResource ToHumanInTheLoopFunctionCallItemResource(this Microsoft.Extensions.AI.FunctionApprovalRequestContent content, string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy? createdBy = default);
static member ToHumanInTheLoopFunctionCallItemResource : Microsoft.Extensions.AI.FunctionApprovalRequestContent * string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.FunctionToolCallItemResource
<Extension()>
Public Function ToHumanInTheLoopFunctionCallItemResource (content As FunctionApprovalRequestContent, id As String, Optional createdBy As CreatedBy = Nothing) As FunctionToolCallItemResource

Parameters

content
Microsoft.Extensions.AI.FunctionApprovalRequestContent

The FunctionApprovalRequestContent to convert.

id
String

The ID for the resource.

createdBy
CreatedBy

Optional information about the creator of the item.

Returns

An ItemResource representing the HITL request.

Applies to

ToHumanInTheLoopFunctionCallItemResource(McpServerToolApprovalRequestContent, String, CreatedBy)

Source:
HumanInTheLoopExtentions.cs

Convert a MCP HITL request to an ItemResource

public static Azure.AI.AgentServer.Contracts.Generated.OpenAI.FunctionToolCallItemResource ToHumanInTheLoopFunctionCallItemResource(this Microsoft.Extensions.AI.McpServerToolApprovalRequestContent content, string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy? createdBy = default);
static member ToHumanInTheLoopFunctionCallItemResource : Microsoft.Extensions.AI.McpServerToolApprovalRequestContent * string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.FunctionToolCallItemResource
<Extension()>
Public Function ToHumanInTheLoopFunctionCallItemResource (content As McpServerToolApprovalRequestContent, id As String, Optional createdBy As CreatedBy = Nothing) As FunctionToolCallItemResource

Parameters

content
Microsoft.Extensions.AI.McpServerToolApprovalRequestContent

MCP Tool approval request

id
String

The ID for the resource.

createdBy
CreatedBy

Optional information about the creator of the item.

Returns

An ItemResource representing the HITL request.

Applies to