mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 09:46:25 +02:00
68 lines
1.9 KiB
TypeScript
68 lines
1.9 KiB
TypeScript
import type { QuickAskAction } from "@/contracts/types/quick-ask-actions.types";
|
|
|
|
export const DEFAULT_ACTIONS: QuickAskAction[] = [
|
|
{
|
|
id: "fix-grammar",
|
|
name: "Fix grammar",
|
|
prompt: "Fix the grammar and spelling in the following text. Return only the corrected text, nothing else.\n\n{selection}",
|
|
mode: "transform",
|
|
icon: "check",
|
|
group: "transform",
|
|
},
|
|
{
|
|
id: "make-shorter",
|
|
name: "Make shorter",
|
|
prompt: "Make the following text more concise while preserving its meaning. Return only the shortened text, nothing else.\n\n{selection}",
|
|
mode: "transform",
|
|
icon: "minimize",
|
|
group: "transform",
|
|
},
|
|
{
|
|
id: "translate",
|
|
name: "Translate",
|
|
prompt: "Translate the following text to English. If it is already in English, translate it to French. Return only the translation, nothing else.\n\n{selection}",
|
|
mode: "transform",
|
|
icon: "languages",
|
|
group: "transform",
|
|
},
|
|
{
|
|
id: "rewrite",
|
|
name: "Rewrite",
|
|
prompt: "Rewrite the following text to improve clarity and readability. Return only the rewritten text, nothing else.\n\n{selection}",
|
|
mode: "transform",
|
|
icon: "pen-line",
|
|
group: "transform",
|
|
},
|
|
{
|
|
id: "summarize",
|
|
name: "Summarize",
|
|
prompt: "Summarize the following text concisely. Return only the summary, nothing else.\n\n{selection}",
|
|
mode: "transform",
|
|
icon: "list",
|
|
group: "transform",
|
|
},
|
|
{
|
|
id: "explain",
|
|
name: "Explain",
|
|
prompt: "Explain the following text in simple terms:\n\n{selection}",
|
|
mode: "explore",
|
|
icon: "book-open",
|
|
group: "explore",
|
|
},
|
|
{
|
|
id: "ask-knowledge-base",
|
|
name: "Ask my knowledge base",
|
|
prompt: "Search my knowledge base for information related to:\n\n{selection}",
|
|
mode: "explore",
|
|
icon: "search",
|
|
group: "explore",
|
|
},
|
|
{
|
|
id: "look-up-web",
|
|
name: "Look up on the web",
|
|
prompt: "Search the web for information about:\n\n{selection}",
|
|
mode: "explore",
|
|
icon: "globe",
|
|
group: "explore",
|
|
},
|
|
];
|