HumanInTheLoopExtentions.ToHumanInTheLoopFunctionCallItemResource 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.
Overloads
| Name | Description |
|---|---|
| ToHumanInTheLoopFunctionCallItemResource(FunctionApprovalRequestContent, String, CreatedBy) |
Convert a HITL request to an ItemResource |
| ToHumanInTheLoopFunctionCallItemResource(McpServerToolApprovalRequestContent, String, CreatedBy) |
Convert a MCP HITL request to an ItemResource |
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.