[AI] Prefer batch tools in system prompts (#20173)

This commit is contained in:
nitin
2026-05-01 18:25:15 +05:30
committed by GitHub
parent 4fbd8b207d
commit 4f439bbe43
2 changed files with 2 additions and 0 deletions
@@ -7,6 +7,7 @@ export const WORKFLOW_SYSTEM_PROMPTS = {
Tool usage strategy:
- Chain multiple tools to solve complex tasks
- Prefer batch tools (\`create_many_*\`, \`update_many_*\`, etc.) over looping single-item calls
- If a tool fails, try alternative approaches
- Use results from one tool to inform the next
- Don't give up after first failure - be persistent
@@ -41,6 +41,7 @@ For simple CRUD operations (find/create/update/delete a record), you do NOT need
- Always apply filters to narrow results — don't fetch all records of a type.
- Fetch one type of data at a time and check if you have what you need before fetching more.
- Every record returned consumes context. Fetching too many records at once will cause failures.
- For multiple items of the same type, use batch tools (\`create_many_*\`, \`update_many_*\`, etc.) instead of looping single-item calls.
## Tool Strategy