From b9303ca0f4a10b873f8b6ef430c872c50810fd21 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Wed, 11 Sep 2024 14:08:57 +0200 Subject: [PATCH] feat(agent): update user prompt --- src/agents/bee/prompts.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/agents/bee/prompts.ts b/src/agents/bee/prompts.ts index 65d4cc5b..101bf873 100644 --- a/src/agents/bee/prompts.ts +++ b/src/agents/bee/prompts.ts @@ -128,7 +128,10 @@ export const BeeUserPrompt = new PromptTemplate({ return ""; } - const parts = [meta.createdAt && `Created At: ${meta.createdAt}`].filter(Boolean).join("\n"); + const parts = [meta.createdAt && `This message was created at ${meta.createdAt}`] + .filter(Boolean) + .join("\n"); + return parts ? `\n\n${parts}` : parts; }, },