[AI] Prefer batch tools in system prompts (#20173)
This commit is contained in:
+1
@@ -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
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user