Package rocks.imsofa.ai.puppychatter
Interface PuppyChatter<T extends PromptParameters,S extends Response>
- All Known Implementing Classes:
AbstractPuppyChatter,GeminiAqaPuppyChatter,OpenAICompatibleInputStreamPuppyChatter,OpenAICompatiblePuppyChatter,OpenrouterPuppyChatter,OpenrouterPuppyChatterOld
public interface PuppyChatter<T extends PromptParameters,S extends Response>
- Author:
- lendle
-
Method Summary
Modifier and TypeMethodDescriptionbark with default PromptParameters using a block wayvoidbark(String sessionId, String prompt, BarkCallback<S> barkCallback) bark with default PromptParameters and use a streaming-if-possible waybark with the given PromptParametersvoidbark with the given PromptParameters and use a streaming-if-possible wayvoidcloseSession(String sessionId) close the session with the given sessionIdinitialize 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
bark with default PromptParameters using a block way- Parameters:
sessionId-prompt-- Returns:
- Throws:
BarkException
-
bark
bark with default PromptParameters and use a streaming-if-possible way- Parameters:
sessionId-prompt-barkCallback-parameters-- Throws:
BarkException
-
bark
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
close the session with the given sessionId- Parameters:
sessionId-
-