AIContent Class
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.
Provides a base class for all content used with AI services.
public ref class AIContent
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.DataContent), "data")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.FunctionCallContent), "functionCall")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.FunctionResultContent), "functionResult")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.TextContent), "text")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.UsageContent), "usage")]
[System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")]
public class AIContent
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.DataContent), "data")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.FunctionCallContent), "functionCall")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.FunctionResultContent), "functionResult")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.TextContent), "text")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.UsageContent), "usage")>]
[<System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")>]
type AIContent = class
Public Class AIContent
- Inheritance
-
AIContent
- Derived
- Attributes
Constructors
AIContent() |
Initializes a new instance of the AIContent class. |
Properties
AdditionalProperties |
Gets or sets additional properties for the content. |
RawRepresentation |
Gets or sets the raw representation of the content from an underlying implementation. |
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.