Uses of Class
com.microsoft.semantickernel.services.chatcompletion.ChatMessageContent
-
Packages that use ChatMessageContent Package Description com.microsoft.semantickernel.services.chatcompletion -
-
Uses of ChatMessageContent in com.microsoft.semantickernel.services.chatcompletion
Methods in com.microsoft.semantickernel.services.chatcompletion that return types with arguments of type ChatMessageContent Modifier and Type Method Description reactor.core.publisher.Mono<List<ChatMessageContent<?>>>ChatCompletionService. getChatMessageContentsAsync(ChatHistory chatHistory, Kernel kernel, InvocationContext invocationContext)Gets the chat message contents asynchronously usingChatHistoryto support a turn-based conversation.reactor.core.publisher.Mono<List<ChatMessageContent<?>>>ChatCompletionService. getChatMessageContentsAsync(String prompt, Kernel kernel, InvocationContext invocationContext)Gets the chat message contents asynchronously using a prompt.Optional<ChatMessageContent<?>>ChatHistory. getLastMessage()Get last messageList<ChatMessageContent<?>>ChatHistory. getMessages()Get the chat historyIterator<ChatMessageContent<?>>ChatHistory. iterator()Create anIteratorfrom the chat history.Spliterator<ChatMessageContent<?>>ChatHistory. spliterator()Create aSpliteratorfrom the chat historyMethods in com.microsoft.semantickernel.services.chatcompletion with parameters of type ChatMessageContent Modifier and Type Method Description voidChatHistory. addMessage(ChatMessageContent<?> content)Add a message to the chat historyMethod parameters in com.microsoft.semantickernel.services.chatcompletion with type arguments of type ChatMessageContent Modifier and Type Method Description voidChatHistory. addAll(List<ChatMessageContent<?>> messages)voidChatHistory. forEach(Consumer<? super ChatMessageContent<?>> action)Perform the given action for each message in the chat historyConstructor parameters in com.microsoft.semantickernel.services.chatcompletion with type arguments of type ChatMessageContent Constructor Description ChatHistory(List<? extends ChatMessageContent> chatMessageContents)Constructor that adds the given chat message contents to the chat history.
-