Interface ChatCompletion<ChatHistoryType extends ChatHistory>

    • Method Detail

      • generateMessageAsync

        reactor.core.publisher.Mono<String> generateMessageAsync​(ChatHistoryType chat,
                                                                 @Nullable
                                                                 ChatRequestSettings requestSettings)
        Generate a new chat message
        Parameters:
        chat - Chat history
        requestSettings - AI request settings
        Returns:
        Generated chat message in string format
      • createNewChat

        ChatHistoryType createNewChat​(@Nullable
                                      String instructions)
        Create a new empty chat instance
        Parameters:
        instructions - Optional chat instructions for the AI service
        Returns:
        Chat object