Interface PuppyChatter<T extends PromptParameters,S extends Response>

All Known Subinterfaces:
RagPuppyChatter<T,S>
All Known Implementing Classes:
AbstractPuppyChatter, GeminiAqaPuppyChatter, OllamaPuppyChatter, OllamaRagPuppyChatter, OpenAICompatibleInputStreamPuppyChatter, OpenAICompatiblePuppyChatter, OpenrouterPuppyChatter, OpenrouterRagPuppyChatter

public interface PuppyChatter<T extends PromptParameters,S extends Response>
Author:
lendle
  • Method Summary

    Modifier and Type
    Method
    Description
    bark(String sessionId, String prompt)
    bark with default PromptParameters using a block way
    void
    bark(String sessionId, String prompt, BarkCallback<S> barkCallback)
    bark with default PromptParameters and use a streaming-if-possible way
    bark(String sessionId, String prompt, T parameters)
    bark with the given PromptParameters
    void
    bark(String sessionId, String prompt, T parameters, BarkCallback<S> barkCallback)
    bark with the given PromptParameters and use a streaming-if-possible way
    void
    closeSession(String sessionId)
    close the session with the given sessionId
    initialize a chat session with a default model and return a session id to be used in further chats
  • Method Details

    • createSession

      String createSession()
      initialize a chat session with a default model and return a session id to be used in further chats
      Returns:
    • bark

      S bark(String sessionId, String prompt) throws BarkException
      bark with default PromptParameters using a block way
      Parameters:
      sessionId -
      prompt -
      Returns:
      Throws:
      BarkException
    • bark

      void bark(String sessionId, String prompt, BarkCallback<S> barkCallback) throws BarkException
      bark with default PromptParameters and use a streaming-if-possible way
      Parameters:
      sessionId -
      prompt -
      barkCallback -
      parameters -
      Throws:
      BarkException
    • bark

      S bark(String sessionId, String prompt, T parameters) throws BarkException
      bark with the given PromptParameters
      Parameters:
      sessionId -
      prompt -
      parameters -
      Returns:
      Throws:
      BarkException
    • bark

      void bark(String sessionId, String prompt, T parameters, BarkCallback<S> barkCallback) throws BarkException
      bark with the given PromptParameters and use a streaming-if-possible way
      Parameters:
      sessionId -
      prompt -
      parameters -
      barkCallback -
      Throws:
      BarkException
    • closeSession

      void closeSession(String sessionId)
      close the session with the given sessionId
      Parameters:
      sessionId -