Package com.deusto.coffeestack.service
Class ChatbotServiceImpl
java.lang.Object
com.deusto.coffeestack.service.ChatbotServiceImpl
- All Implemented Interfaces:
ChatbotService
-
Constructor Summary
ConstructorsConstructorDescriptionChatbotServiceImpl(OllamaInvoker ollamaInvoker, ContextoNegocioService contextoNegocioService, org.springframework.core.io.Resource systemPromptResource) -
Method Summary
-
Constructor Details
-
ChatbotServiceImpl
public ChatbotServiceImpl(OllamaInvoker ollamaInvoker, ContextoNegocioService contextoNegocioService, @Value("classpath:prompts/system-chatbot.st") org.springframework.core.io.Resource systemPromptResource) throws IOException - Throws:
IOException
-
-
Method Details
-
responder
Description copied from interface:ChatbotServiceResponde a una pregunta del usuario.- Specified by:
responderin interfaceChatbotService- Parameters:
pregunta- texto de la pregunta (no nulo, no vacĂo)- Returns:
- respuesta generada por el modelo
-