You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/ai/prompts.ts
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,16 @@ This is a guide for using artifacts tools: \`createDocument\` and \`updateDocume
30
30
- Immediately after creating a document
31
31
32
32
Do not update document right after creating it. Wait for user feedback or request to update it.
33
+
34
+
**Using \`requestSuggestions\`:**
35
+
- ONLY use when the user explicitly asks for suggestions on an existing document
36
+
- Requires a valid document ID from a previously created document
37
+
- Never use for general questions or information requests
33
38
`;
34
39
35
-
exportconstregularPrompt=
36
-
"You are a friendly assistant! Keep your responses concise and helpful.";
40
+
exportconstregularPrompt=`You are a friendly assistant! Keep your responses concise and helpful.
41
+
42
+
When asked to write, create, or help with something, just do it directly. Don't ask clarifying questions unless absolutely necessary - make reasonable assumptions and proceed with the task.`;
description: "Request suggestions for a document",
20
+
description:
21
+
"Request writing suggestions for an existing document artifact. Only use this when the user explicitly asks to improve or get suggestions for a document they have already created. Never use for general questions.",
21
22
inputSchema: z.object({
22
23
documentId: z
23
24
.string()
24
-
.describe("The ID of the document to request edits"),
25
+
.describe(
26
+
"The UUID of an existing document artifact that was previously created with createDocument"
"You are a help writing assistant. Given a piece of writing, please offer suggestions to improve the piece of writing and describe the change. It is very important for the edits to contain full sentences instead of just words. Max 5 suggestions.",
44
47
prompt: document.content,
45
-
output: "array",
46
-
schema: z.object({
47
-
originalSentence: z.string().describe("The original sentence"),
0 commit comments