Skip to content

Commit 96ad66a

Browse files
committed
fix(algolia): correct batch_operations body requirement wording
Verified against Algolia's actual batchWriteParams schema (specs/common/schemas/Batch.yml): body is a required property on every batch request item, including index-level delete/clear actions — it isn't omittable. The tool's param description previously said to omit it; corrected to say use an empty object instead.
1 parent 08c5f7f commit 96ad66a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/tools/algolia/batch_operations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const batchOperationsTool: ToolConfig<
3838
required: true,
3939
visibility: 'user-or-llm',
4040
description:
41-
'Array of batch operations. Each item has "action" (addObject, updateObject, partialUpdateObject, partialUpdateObjectNoCreate, deleteObject, delete, clear) and "body" (the record data, must include objectID for update/delete; omit body for delete/clear)',
41+
'Array of batch operations. Each item has "action" (addObject, updateObject, partialUpdateObject, partialUpdateObjectNoCreate, deleteObject, delete, clear) and "body" (the record data; must include objectID for update/delete; use an empty object {} for the index-level delete/clear actions)',
4242
},
4343
},
4444

0 commit comments

Comments
 (0)