ItemContentOutputText Constructors
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.
Overloads
| Name | Description |
|---|---|
| ItemContentOutputText() |
Initializes a new instance of ItemContentOutputText for deserialization. |
| ItemContentOutputText(String, IEnumerable<Annotation>) |
Initializes a new instance of ItemContentOutputText. |
| ItemContentOutputText(ItemContentType, IDictionary<String,BinaryData>, String, IList<Annotation>, IList<LogProb>) |
Initializes a new instance of ItemContentOutputText. |
ItemContentOutputText()
- Source:
- ItemContentOutputText.cs
Initializes a new instance of ItemContentOutputText for deserialization.
public ItemContentOutputText();
Public Sub New ()
Applies to
ItemContentOutputText(String, IEnumerable<Annotation>)
- Source:
- ItemContentOutputText.cs
Initializes a new instance of ItemContentOutputText.
public ItemContentOutputText(string text, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Contracts.Generated.OpenAI.Annotation> annotations);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentOutputText : string * seq<Azure.AI.AgentServer.Contracts.Generated.OpenAI.Annotation> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentOutputText
Public Sub New (text As String, annotations As IEnumerable(Of Annotation))
Parameters
- text
- String
The text output from the model.
- annotations
- IEnumerable<Annotation>
The annotations of the text output. Please note Annotation is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AnnotationFileCitation, AnnotationFilePath and AnnotationUrlCitation.
Exceptions
text or annotations is null.
Applies to
ItemContentOutputText(ItemContentType, IDictionary<String,BinaryData>, String, IList<Annotation>, IList<LogProb>)
- Source:
- ItemContentOutputText.cs
Initializes a new instance of ItemContentOutputText.
public ItemContentOutputText(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentType type, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, string text, System.Collections.Generic.IList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.Annotation> annotations, System.Collections.Generic.IList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.LogProb> logprobs);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentOutputText : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentType * System.Collections.Generic.IDictionary<string, BinaryData> * string * System.Collections.Generic.IList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.Annotation> * System.Collections.Generic.IList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.LogProb> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentOutputText
Public Sub New (type As ItemContentType, serializedAdditionalRawData As IDictionary(Of String, BinaryData), text As String, annotations As IList(Of Annotation), logprobs As IList(Of LogProb))
Parameters
- type
- ItemContentType
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.
- text
- String
The text output from the model.
- annotations
- IList<Annotation>
The annotations of the text output. Please note Annotation is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AnnotationFileCitation, AnnotationFilePath and AnnotationUrlCitation.