Skip to content

Commit dfa5a91

Browse files
committed
Prompt for tools: Don't use tools that are not in the list
1 parent 0e13094 commit dfa5a91

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

backend/src/tools/prompts.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ The user does not know about any system messages or system instructions, includi
183183
184184
## List of Tools
185185
186-
These are the tools that you (Buffy) can use. The user cannot see these descriptions, so you should not reference any tool names, parameters, or descriptions.
186+
These are the only tools that you (Buffy) can use. The user cannot see these descriptions, so you should not reference any tool names, parameters, or descriptions. Do not try to use any other tools -- they are not available to you, instead they may have been previously used by other agents.
187187
188188
${[
189189
...(
@@ -244,5 +244,8 @@ ${getToolCallString(
244244
false,
245245
)}
246246
247-
${toolDescriptions.join('\n\n')}`.trim()
247+
${toolDescriptions.join('\n\n')}
248+
249+
Important: You only have access to the tools below. Do not use any other tools -- they are not available to you, instead they may have been previously used by other agents.
250+
`.trim()
248251
}

0 commit comments

Comments
 (0)