Skip to content

Commit 03d6ee0

Browse files
committed
Add HTML-only response guidance and sample markup to TravelService prompt
1 parent 6c30092 commit 03d6ee0

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/main/java/expert/os/demos/travel/assistance/ai/TravelService.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,25 @@ public interface TravelService {
2727
- Keep responses short and direct.
2828
- When creating itineraries, select destinations from the available data and generate the itinerary immediately.
2929
- If information is unavailable, say so briefly.
30+
Return only valid HTML.
31+
32+
Example:
33+
34+
<h2>Historical Tour in Portugal</h2>
35+
36+
<h3>Cities</h3>
37+
<ul>
38+
<li>Lisbon</li>
39+
<li>Porto</li>
40+
</ul>
41+
42+
<h3>Attractions</h3>
43+
<ul>
44+
<li>Belém Tower</li>
45+
<li>Jerónimos Monastery</li>
46+
</ul>
47+
48+
<p>Perfect for travelers interested in Portuguese history.</p>
3049
""")
3150
String chat(String userMessage);
3251
}

0 commit comments

Comments
 (0)