Class OpenrouterRagPuppyChatter
java.lang.Object
rocks.imsofa.ai.puppychatter.AbstractPuppyChatter<OpenAICompatiblePromptParameters,Response>
rocks.imsofa.ai.puppychatter.openai.OpenAICompatiblePuppyChatter<OpenAICompatiblePromptParameters,Response>
rocks.imsofa.ai.puppychatter.openai.OpenAICompatibleInputStreamPuppyChatter<OpenAICompatiblePromptParameters,Response>
rocks.imsofa.ai.puppychatter.openrouter.OpenrouterPuppyChatter
rocks.imsofa.ai.puppychatter.openrouter.OpenrouterRagPuppyChatter
- All Implemented Interfaces:
PuppyChatter<OpenAICompatiblePromptParameters,,Response> RagPuppyChatter<OpenAICompatiblePromptParameters,Response>
public class OpenrouterRagPuppyChatter
extends OpenrouterPuppyChatter
implements RagPuppyChatter<OpenAICompatiblePromptParameters,Response>
-
Nested Class Summary
Nested classes/interfaces inherited from class rocks.imsofa.ai.puppychatter.openai.OpenAICompatibleInputStreamPuppyChatter
OpenAICompatibleInputStreamPuppyChatter.RequestParameters, OpenAICompatibleInputStreamPuppyChatter.StreamResultIterator -
Field Summary
Fields inherited from class rocks.imsofa.ai.puppychatter.openai.OpenAICompatiblePuppyChatter
toolCallProcessor, toolCallRequestsFields inherited from class rocks.imsofa.ai.puppychatter.AbstractPuppyChatter
cacheService, replyRole, sessionHistory -
Constructor Summary
ConstructorsConstructorDescriptionOpenrouterRagPuppyChatter(String apiKey) OpenrouterRagPuppyChatter(String apiKey, String defaultModel, CacheService cacheService) OpenrouterRagPuppyChatter(String apiKey, CacheService cacheService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpreprocessMessages(OpenAICompatibleInputStreamPuppyChatter.RequestParameters requestParameters) inject rag workflow herevoidsetRagHandler(RagHandler ragHandler) Methods inherited from class rocks.imsofa.ai.puppychatter.openrouter.OpenrouterPuppyChatter
getRequestParameters, getStreamResultIterator, mainMethods inherited from class rocks.imsofa.ai.puppychatter.openai.OpenAICompatibleInputStreamPuppyChatter
_bark, _bark, constructPayloadAndSend, processResponseStreamFromLLMProvidersMethods inherited from class rocks.imsofa.ai.puppychatter.openai.OpenAICompatiblePuppyChatter
createDefaultPromptParameter, createResponseFromConversation, getToolCallProcessor, isCacheable, setToolCallProcessorMethods inherited from class rocks.imsofa.ai.puppychatter.AbstractPuppyChatter
bark, bark, bark, bark, closeSession, createConversationFromPrompt, createSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface rocks.imsofa.ai.puppychatter.PuppyChatter
bark, bark, bark, bark, closeSession, createSession
-
Constructor Details
-
OpenrouterRagPuppyChatter
-
OpenrouterRagPuppyChatter
-
OpenrouterRagPuppyChatter
-
-
Method Details
-
setRagHandler
- Specified by:
setRagHandlerin interfaceRagPuppyChatter<OpenAICompatiblePromptParameters,Response>
-
getRagHandler
- Specified by:
getRagHandlerin interfaceRagPuppyChatter<OpenAICompatiblePromptParameters,Response>
-
preprocessMessages
protected void preprocessMessages(OpenAICompatibleInputStreamPuppyChatter.RequestParameters requestParameters) throws Exception inject rag workflow here- Overrides:
preprocessMessagesin classOpenAICompatibleInputStreamPuppyChatter<OpenAICompatiblePromptParameters,Response> - Throws:
Exception
-