OpenAIThreadCreationOptions.Messages Property
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.
Gets the optional messages to initialize the thread with.
[System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
public System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.ChatMessageContent>? Messages { get; init; }
[<System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)>]
member this.Messages : System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.ChatMessageContent> with get, set
Public Property Messages As IReadOnlyList(Of ChatMessageContent)
Property Value
- Attributes
Remarks
This property only supports messages with role = User or Assistant.