Dive

Built-in tools

Built-in tools

Model calls, list processing and JSON reshaping that every agent and plan step can use, with no pack to enable.

  • Always in the catalog, called as builtin__<name>.
  • infer and decide need a configured model: a chat model for infer, a decision model for decide. rank needs a decision model too, and is listed only when one is configured.
  • reshape, flatten, dedupe, sort and take make no model call.
  • To replace infer, decide or reshape, put a tool file with the same name in <tools dir>/builtin/, such as .dive/tools/builtin/reshape.yaml. The list tools can't be replaced.
NameDescription
builtin__inferRuns one model call over an instruction and returns text or structured JSON.
builtin__decideAsks a decision model typed questions about one state, in one call.
builtin__reshapeBuilds a value in a new JSON shape from earlier step results.
builtin__generate_imageGenerates images with the image model, or edits the images it's given, and returns each as a file reference.
builtin__flattenFlattens a list of lists into one list, with no model call.
builtin__dedupeRemoves duplicates from a list, keeping the first of each, with no model call.
builtin__sortSorts a list by a field, with no model call.
builtin__takeKeeps the first n items of a list, with no model call.
builtin__rankRanks a whole list against a question in one decision-model call.
builtin__save_fileStores text or JSON you already have as a file and returns its ref, with no model call.
builtin__read_fileReads a text file's content from its ref, with no model call.