forked from quarkiverse/quarkus-langchain4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...ts/ollama/src/main/java/org/acme/example/openai/chat/ollama/PropertyManagerAssistant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |