File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
samples/chatbot-web-search/src/main/java/io/quarkiverse/langchain4j/sample/chatbot Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11package io .quarkiverse .langchain4j .sample .chatbot ;
22
3+ import dev .langchain4j .service .SystemMessage ;
34import dev .langchain4j .service .UserMessage ;
45import dev .langchain4j .web .search .WebSearchTool ;
56import io .quarkiverse .langchain4j .RegisterAiService ;
910@ SessionScoped
1011public interface Bot {
1112
13+ @ SystemMessage ("""
14+ You have access to a function that looks up data using the Tavily web search engine.
15+ The web search engine doesn't understand the concept of 'today',
16+ so if the user asks something
17+ that requires the knowledge of today's date, use the getTodaysDate function before
18+ calling the search engine.
19+ """ )
1220 String chat (@ UserMessage String question );
1321
1422}
You can’t perform that action at this time.
0 commit comments