From 85a650c29f2dc7da63846c7e8f70050ad7ba0072 Mon Sep 17 00:00:00 2001 From: humberto Date: Sun, 30 Jun 2024 23:56:44 +0200 Subject: [PATCH] - Add Missing Class --- .../chat/ollama/PropertyManagerAssistant.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 integration-tests/ollama/src/main/java/org/acme/example/openai/chat/ollama/PropertyManagerAssistant.java diff --git a/integration-tests/ollama/src/main/java/org/acme/example/openai/chat/ollama/PropertyManagerAssistant.java b/integration-tests/ollama/src/main/java/org/acme/example/openai/chat/ollama/PropertyManagerAssistant.java new file mode 100644 index 000000000..a937dbe2f --- /dev/null +++ b/integration-tests/ollama/src/main/java/org/acme/example/openai/chat/ollama/PropertyManagerAssistant.java @@ -0,0 +1,19 @@ +package org.acme.example.openai.chat.ollama; + +import dev.langchain4j.service.SystemMessage; +import dev.langchain4j.service.UserMessage; +import io.quarkiverse.langchain4j.RegisterAiService; + +@RegisterAiService(tools = Tools.ExpenseService.class) +public interface PropertyManagerAssistant { + @SystemMessage(""" + You are a property manager assistant, answering to co-owners requests. + Format the date as YYYY-MM-DD and the time as HH:MM + Today is {{current_date_time}} use this date as date time reference + The co-owners is living in the following condominium: {condominium} + """) + @UserMessage(""" + {{request}} + """) + String answer(String condominium, String request); +}