mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-08 16:14:24 +01:00
simple prompt addition to have goose reflect on start (#1059)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import React from 'react';
|
||||
|
||||
function SplashPill({ content, append, className = '' }) {
|
||||
function SplashPill({ content, append, className = '', longForm = '' }) {
|
||||
return (
|
||||
<div
|
||||
className={`px-4 py-2 text-sm text-center text-textSubtle dark:text-textStandard cursor-pointer border border-borderSubtle hover:bg-bgSubtle rounded-full transition-all duration-150 ${className}`}
|
||||
onClick={async () => {
|
||||
const message = {
|
||||
content,
|
||||
content: longForm || content,
|
||||
role: 'user',
|
||||
};
|
||||
await append(message);
|
||||
@@ -24,6 +24,7 @@ export default function SplashPills({ append }) {
|
||||
content="What can you do?"
|
||||
append={append}
|
||||
className="bg-black dark:bg-white dark:hover:bg-gray-200 text-white dark:!text-black border-none hover:bg-slate"
|
||||
longForm="Look around the users system, work out what capablities/apps there are there, what tools, and what sort user they are and suggest 3 serious and 3 fun tasks based on what you find that are likely to work (present fun markdown)."
|
||||
/>
|
||||
<SplashPill content="Demo writing and reading files" append={append} />
|
||||
<SplashPill content="Make a snake game in a new folder" append={append} />
|
||||
|
||||
Reference in New Issue
Block a user