Share via


ResponseConverterExtensions.ToFunctionToolCallOutputItemResource Method

Definition

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

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

Parameters

functionResultContent
FunctionResultContent

The function result 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 output item resource.

Applies to