Interface ChatCompletionService

    • Method Detail

      • getChatMessageContentsAsync

        reactor.core.publisher.Mono<List<ChatMessageContent<?>>> getChatMessageContentsAsync​(ChatHistory chatHistory,
                                                                                             @Nullable
                                                                                             Kernel kernel,
                                                                                             @Nullable
                                                                                             InvocationContext invocationContext)
        Gets the chat message contents asynchronously using ChatHistory to support a turn-based conversation. Typically, the resulting chat message contents is appended to the chatHistory to continue the conversation.
        Parameters:
        chatHistory - the chat history
        kernel - the kernel
        invocationContext - the invocation context
        Returns:
        the chat message contents
      • getChatMessageContentsAsync

        reactor.core.publisher.Mono<List<ChatMessageContent<?>>> getChatMessageContentsAsync​(String prompt,
                                                                                             @Nullable
                                                                                             Kernel kernel,
                                                                                             @Nullable
                                                                                             InvocationContext invocationContext)
        Gets the chat message contents asynchronously using a prompt.
        Parameters:
        prompt - the prompt
        kernel - the kernel
        invocationContext - the invocation context
        Returns:
        the chat message contents