Skip to content

Commit

Permalink
feat(agent): propagate python file identifier to the system prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Sep 13, 2024
1 parent f38cee4 commit 334e90f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/agents/bee/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import { PromptTemplate } from "@/template.js";
import { BaseMessageMeta } from "@/llms/primitives/message.js";
import { z } from "zod";
import { PythonToolOutput } from "@/tools/python/output.js";

export const BeeSystemPrompt = new PromptTemplate({
schema: z.object({
Expand Down Expand Up @@ -76,7 +77,7 @@ Responses must always have the following structure:
- If enough information is available to provide the Final Answer, the following line will be:
- Line starting 'Final Answer: ' followed by a response to the original question and context, for example: 'Final Answer: Zblorg #178 is green.'
- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.
- To reference an internal file, use the markdown syntax [file_name.ext](urn:file_identifier).
- To reference an internal file, use the markdown syntax [file_name.ext](${PythonToolOutput.FILE_PREFIX}:file_identifier).
- The bracketed part must contain the file name, verbatim.
- The parenthesis part must contain the file URN, which can be obtained from the user or from tools.
- The agent does not, under any circumstances, reference a URN that was not provided by the user or a tool in the current conversation.
Expand Down

0 comments on commit 334e90f

Please sign in to comment.