feat: add sheet block (#743)

Co-authored-by: Nicolas <nicolascamara29@gmail.com>
This commit is contained in:
Jeremy 2025-02-03 13:33:48 +05:30 committed by GitHub
parent 93b02a85e1
commit 76804269c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 419 additions and 6 deletions

View file

@ -64,6 +64,10 @@ print(f"Factorial of 5 is: {factorial(5)}")
\`\`\`
`;
export const sheetPrompt = `
You are a spreadsheet creation assistant. Create a spreadsheet in csv format based on the given prompt. The spreadsheet should contain meaningful column headers and data.
`;
export const updateDocumentPrompt = (
currentContent: string | null,
type: BlockKind,
@ -80,4 +84,10 @@ Improve the following code snippet based on the given prompt.
${currentContent}
`
: '';
: type === 'sheet'
? `\
Improve the following spreadsheet based on the given prompt.
${currentContent}
`
: '';