Share via


ResponseConverterExtensions.ToFunctionToolCallItemResource Method

Definition

Converts a function call content to a function tool call item resource.

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

Parameters

functionCallContent
FunctionCallContent

The function call content to convert.

id
String

The ID for the resource.

createdBy
CreatedBy

Optional information about the creator of the item.

Returns

A function tool call item resource.

Applies to