Package rocks.imsofa.ai.puppychatter
Interface PuppyChatter<T extends PromptParameters,S extends Response>
- All Known Implementing Classes:
AbstractPuppyChatter,GeminiAqaPuppyChatter,OpenrouterPuppyChatter
public interface PuppyChatter<T extends PromptParameters,S extends Response>
- Author:
- lendle
-
Method Summary
Modifier and TypeMethodDescriptionbark with default PromptParameters, implementation should automatically providevoidbark(String sessionId, String prompt, BarkCallback barkCallback) async bark with default PromptParameters, implementation should automatically providebark(String sessionId, String prompt, ResponseVerifier verifier) bark with default PromptParameters, implementation should automatically providevoidbark(String sessionId, String prompt, T parameters, BarkCallback barkCallback) a asynchronous version of barkbark(String sessionId, String prompt, T parameters, ResponseVerifier verifier) voidcloseSession(String 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
void bark(String sessionId, String prompt, T parameters, BarkCallback barkCallback) throws BarkException a asynchronous version of bark- Parameters:
sessionId-prompt-parameters-barkCallback-- Throws:
BarkException
-
bark
- Throws:
BarkException
-
bark
S bark(String sessionId, String prompt, T parameters, ResponseVerifier verifier) throws BarkException - Throws:
BarkException
-
bark
async bark with default PromptParameters, implementation should automatically provide- Parameters:
sessionId-prompt-barkCallback-- Throws:
BarkException
-
bark
bark with default PromptParameters, implementation should automatically provide- Parameters:
sessionId-prompt-- Returns:
- Throws:
BarkException
-
bark
bark with default PromptParameters, implementation should automatically provide- Parameters:
sessionId-prompt-verifier-- Returns:
- Throws:
BarkException
-
closeSession
-