ResponseConverterExtensions.ToItemContent(AIContent) 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 AI content to an item content object.
public static Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent? ToItemContent(this Microsoft.Extensions.AI.AIContent content);
static member ToItemContent : Microsoft.Extensions.AI.AIContent -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent
<Extension()>
Public Function ToItemContent (content As AIContent) As ItemContent
Parameters
- content
- AIContent
The AI content to convert.
Returns
An item content object, or null if the content cannot be converted.