Gets the chat completion message. C# [System.Text.Json.Serialization.JsonIgnore]publicMicrosoft.Extensions.AI.ChatMessage Message {get; } Property Value ChatMessage Attributes JsonIgnoreAttribute Remarks If there are multiple choices, this property returns the first choice. IfChoicesis empty, this will...
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.ChatMessageContent>> GetChatMessageContentsAsync (this Microsoft.SemanticKernel.ChatCompletion.IChatCompletionService chatCompletionService, string prompt, Microsoft.SemanticKernel...
2 changes: 1 addition & 1 deletion 2 src/openai-chat-completion.ts Original file line numberDiff line numberDiff line change @@ -1,6 +1,6 @@ import OpenAI from 'openai'; import { RetortConfiguration } from './agent'; import { RetortMessage, RetortMessage as RetortMessage } from '....
ChatCompletion Assembly: Microsoft.SemanticKernel.Abstractions.dll Package: Microsoft.SemanticKernel.Abstractions v1.20.0 Important Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with ...
Microsoft.SemanticKernel.ChatCompletion Assembly: Microsoft.SemanticKernel.Abstractions.dll Package: Microsoft.SemanticKernel.Abstractions v1.20.0 Important Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied,...
AddUserMessage(ChatMessageContentItemCollection) Add a user message to the chat history C# Copy public void AddUserMessage (Microsoft.SemanticKernel.ChatCompletion.ChatMessageContentItemCollection contentItems); Parameters contentItems ChatMessageContentItemCollection Instance of ChatMessageContent...
Microsoft.SemanticKernel.ChatCompletion Assembly: Microsoft.SemanticKernel.Abstractions.dll Package: Microsoft.SemanticKernel.Abstractions v1.20.0 Important Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, expres...
ChatCompletion Assembly: Microsoft.SemanticKernel.Abstractions.dll Package: Microsoft.SemanticKernel.Abstractions v1.20.0 Important Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, w...
ChatCompletion Assembly: Microsoft.SemanticKernel.Abstractions.dll Package: Microsoft.SemanticKernel.Abstractions v1.20.0 Important Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with resp...
AddMessage(AuthorRole, ChatMessageContentItemCollection, Encoding, IReadOnlyDictionary<String,Object>) C# publicvoidAddMessage(Microsoft.SemanticKernel.ChatCompletion.AuthorRole authorRole, Microsoft.SemanticKernel.ChatCompletion.ChatMessageContentItemCollection contentItems, System.Text.Encoding? encoding =d...