Built-in tools
builtin__dedupe
Removes duplicates from a list, keeping the first of each, with no model call.
Behavior
byis the field compared, as a dot path such asurlormeta.id. Withoutby, whole items are compared.- The first item of each key is kept, in the original order.
- Items missing the field are all kept.
removedis how many items were dropped.
| Available to | Effect |
|---|---|
| Any agent or plan step | Read-only |
Input
bystring
Dot path into each item to compare, e.g. url or meta.date
The list, usually a template like {{E1.results}}
Output
- id: E1
tool_name: builtin__dedupe
input:
items: "{{input.items}}"