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); +}