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