ResponseConverterExtensions.ToFunctionToolCallOutputItemResource 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.
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.