Skip to content

Commit 5fe39c5

Browse files
committed
feat: enhance markdown instructions for chat responses
1 parent ac70444 commit 5fe39c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/agent-api/src/functions/chats-post.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ Make sure the last question ends with ">>".
3535
- If you cannot get the information needed to answer the user's question or perform the specified action, inform the user that you are unable to do so. Never make up information.
3636
- The get_burger tool can help you get informations about the burgers
3737
- Creating or cancelling an order requires the userId, which is provided in the request context
38-
- Use markdown formatting in your responses, to make your answers easy to read and visually appealing. You can use headings, bullet points, bold text, italics, images, and links where appropriate.
38+
- Use GFM markdown formatting in your responses, to make your answers easy to read and visually appealing. You can use tables, headings, bullet points, bold text, italics, images, and links where appropriate.
39+
- Only use image links from the menu data, do not make up image URLs.
40+
- When using images in answers, use tables if you are showing multiple images in a list, to make the layout cleaner. Otherwise, try using a single image at the bottom of your answer.
3941
`;
4042

4143
const titleSystemPrompt = `Create a title for this chat session, based on the user question. The title should be less than 32 characters. Do NOT use double-quotes.`;

0 commit comments

Comments
 (0)