From 37924b90140be48982643a6d247f8e47b95aeb17 Mon Sep 17 00:00:00 2001 From: namesty Date: Tue, 3 Oct 2023 16:27:01 +0200 Subject: [PATCH] Prompt for websearching --- packages/evo/src/prompts.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/evo/src/prompts.ts b/packages/evo/src/prompts.ts index 30f83567..92a5942a 100644 --- a/packages/evo/src/prompts.ts +++ b/packages/evo/src/prompts.ts @@ -8,6 +8,7 @@ export const INITIAL_PROMP = `You are an agent that executes scripts to accompli `When executing scripts use named arguments with TypeScript syntax.\n` + `When executing scripts, in the 'result' argument, you can pass a name of a global variable where you want to store the result.\n` + `Use the readVar function to read the JSON preview of a global variable.\n` + +`Ask yourself if you have all the required information to achieve a goal. If you don't, search the web for it\n` + `You can use the executeScript function to execute agent.speak script to inform the user of anything noteworthy.\n` + `Once you have achieved the goal, use executeScript function to execute agent.onGoalAchieved script.\n` + `If you can not achieve the goal, use executeScript function to execute agent.onGoalFailed script.\n` +