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 で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET