Package 

Class BaseMindClient

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public final class BaseMindClient
     implements Closeable
                        

    BaseMindClient is an API client that uses gRPC for communication with the BaseMind.AI API gateway.

    • Method Detail

      • close

         Unit close()

        closes the connection to the API gateway.

        Note: Existing calls are allowed to finish, but all new calls will be declined after close is called.

      • requestPrompt

         final PromptResponse requestPrompt(Map<String, String> templateVariables)

        Requests an AI prompt. The prompt is returned as a single response.

        Parameters:
        templateVariables - a map of template variables to use for the prompt request.
      • requestStream

         final Flow<StreamingPromptResponse> requestStream(Map<String, String> templateVariables)

        Requests an AI streaming prompt. The prompt is streamed from the API gateway in chunks.

        Parameters:
        templateVariables - a map of template variables to use for the prompt request.